This is an example of muxing Audio and Video of same length and Quality With this library we can mux videos and audios. Example youtube video at 480p provide video slone and audio alone urls. So we can download both and mux them.
Step1. Just add these lines to build.gradle
.
dependencies {
compile 'com.github.GitEliteNovice:Muxing:1.0.0'
{
transitive =true;
}
}
}
Step2. Add it in your root build.gradle
at the end of repositories:
allprojects
{
repositories
{
...
maven
{
url 'https://jitpack.io'
}
}
}
If your App is Providing a Fuctionality of downloding Videos from some where ... and your Server Provide two seprate Url one is for audio(Alone) and one is for Video(Without audio). Then this Would be life save for your app.Your do not have to write lots of bipolar code so just .. pass the path of downloaded audio and video in this libarary and boom. Congrats! You will get a Complete Video just in Few Seconds.
- [Mp4Parser]
It is important to emphasize that you cannot append any two tracks with:
- Different resolutions
- Different frame-rates