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

Stefano Sabatini stefasab at gmail.com
Fri Aug 31 14:05:28 CEST 2012

On date Friday 2012-08-31 13:37:13 +0300, Andrey Utkin encoded:
> AFAIR there's no straight way to do it by ffmpeg utility (but is
> possible by libavformat API), if concatenating demuxer is not invented
> yet.

Yes also read this:

Keep in mind that *physically* concatenating two media files won't
always result in a valid files, but only for a limited number of
formats (stream based formats). That's the same as concatenating two
PDFs files, you won't get a file which contains the two documents

It would be a good idea to expose that information to the user, and
maybe we should make more clear the documentation (not that it matters
much, since most users usually don't read docs).

ffmpeg-user random tip #12
One minute of video noise with ffmpeg:
ffmpeg -t 60 -s qcif -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/urandom \
    -y noise.mpeg

More information about the ffmpeg-user mailing list