[FFmpeg-user] How can I join video files?

Nicolas George nicolas.george at normalesup.org
Thu Feb 16 09:41:36 CET 2012

L'octidi 28 pluviôse, an CCXX, Peter B. a écrit :
> If I read this example correctly, it is necessary to transcode the
> to-be-joined files to an MPEG transport stream, and

No, remuxing should be enough, provided the files are encoded with the same
settings, or at least settings similar enough (same codec).

> "concat:file-01.mpeg.ts|file-02.mpeg.ts" is equivalent to:
> "cat file-01.mpeg.ts file-01.mpeg.ts > full_length.mpeg.ts"
> right?

Except it takes less disk space.

> If so, does this mean that FFmpeg is not able to concat arbitrary
> input formats?

Indeed. Most formats have global headers and/or indexes, concatenating them
naïvely will just produce an invalid stream.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120216/526a4d8a/attachment.asc>

More information about the ffmpeg-user mailing list