0
I am with a simple application that performs the download of a video + audio and ' concatenate ' ( Join ) the same with the tool Ffmpeg, the problem is that most of the time the user will download a song larger than the video in question and then it gets a video of 10 seconds and the rest is a screen locked with background sound ... someone would know to inform me the parameters + explanation so that I concaten the song exactly on video length ?
Current code :
ffmpeg -i {0}.{1} -i {2}.{3} -vcodec copy -acodec copy {4}.{5} && rm -rf {0}.{1} {2}.{3}
Research : Video and Audio file format