How to join video files from terminal?

Posted by Leon Vitanos on Ask Ubuntu See other posts from Ask Ubuntu or by Leon Vitanos
Published on 2012-07-08T16:41:04Z Indexed on 2014/08/23 16:33 UTC
Read the original article Hit count: 407

Filed under:

I have tried avidemux2_cli, mencoder, ffmpeg, cat.. But this doesn't always work (With the most of the times the error is that the audio codec is not the same) Maybe i put wrong options in the commands.

So the commands:

cat Sample.avi rrr.avi > complete.avi
ffmpeg -i Sample.avi -i output.avi -vcodec copy -acodec copy complete.avi
mencoder -ovc lavc -oac copy Sample.avi rrr.avi -o complete.avi
avidemux2_cli --audio-codec copy --video-codec copy --output-format avi --load Sample.avi -append output.avi --save video.avi

The cat problem is that it doesn't show error but it doesn't work always..Like the complete.avi will be exactly the same with Sample.avi

Fmmpeg does nothing. The complete.avi is always the same with Sample.avi

Mencoder error: All files must have identical audio codec and format for -oac copy. So the complete.avi is the same with Sample.avi

avidemux2_cli there is no error but the complete.avi is again the same with Sample.avi..

So to sum up, all complete.avi are the same with Sample.avi.. And the problem is that they don't have the same audio codec ( i quess ).. Any ideas?

© Ask Ubuntu or respective owner

Related posts about video