[FFmpeg-user] How to concatenate mp4 files using ffmpeg?

Fernando Martinelli fernando.martinelli at gmail.com
Thu Jul 26 12:12:45 CEST 2012


What I want to do is concatenate several mp4 files with the same fps,
resolution and other characteristics into an output file whose length is
the sum of the lengths of the input files (that is, it plays all input
files one after the other). I should be something simple, but I only
managed to do it with mencoder:

mencoder file1.mp4 file2.mp4 file3.mp4 ... -ovc copy -oac faac -o output.mp4

However sometimes mencoder is crashing without any apparent reason. So my
question: *how to do the same with ffmpeg?*

Thanks a lot for your help!


More information about the ffmpeg-user mailing list