[FFmpeg-user] How to concatenate multiple mp4 files without re-encoding to an intermediate format

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Aug 31 12:33:49 CEST 2012

Rares Pop <raresp <at> axz.ro> writes:

> ffmpeg -i concat:'file1.mp4|file2.mp4' -vcodec copy -acodec copy  -y asset.mp4

> Result: asset.mp4 file is the same as file1.mp4.It behaves 
> like it ignores file2.mp4

So it seems that this is unsupported.
You can try to concatenate the raw h264 and the raw aac streams 
and mux the resulting streams but this may lead to A/V desync 
(that you can try to eliminate by cutting the streams or inserting 
silence but this will have to be done manually).

Please do not top-post here, Carl Eugen

More information about the ffmpeg-user mailing list