Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3667 closed enhancement (invalid)

Enhancement: concat can not directly work with mks or mp4

Reported by: artofit Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


For the sake of standardisation, would welcome to allow

ffmpeg -i "concat:part1.mkv|part2.mkv" -c copy output.mkv

This synthax already applies to other containers such as ogv,vob, mpg.

Change History (4)

comment:1 by Carl Eugen Hoyos, 8 years ago

Keywords: mp4 mkv concat removed
Resolution: invalid
Status: newclosed

This is not possible, the specification of some containers do not allow concatenation on file level.

comment:2 by artofit, 8 years ago,%20merge)%20media%20files
"While the demuxer works at the stream level, the concat protocol works at the file level. Certain files (mpg and mpeg transport streams, possibly others) can be concatenated. This is analogous to using cat on UNIX-like systems or copy on Windows. In general, the demuxer is the better option."

So why this method is not deprecated??

Indeed, if I compare the 2 concat methods on a opus files, that I split, the orginal and the version of concate have differend MD5 signatures, eventhough opus like other support lossless concat.

comment:3 by Carl Eugen Hoyos, 8 years ago

Assuming you have two input files input1 and input2, the following two commands are completely equivalent:

$ cat input1 input2 >input
$ ffmpeg -i input
$ ffmpeg -i "concat:input1|input2"

The advantage of using the concat protocol is that it saves you one line and the space for input on your harddrive. If the first command does not work because the container does not support concatenation, the second will also fail.

Please understand that this is a bug tracker, not a support forum, see and and

in reply to:  2 comment:4 by Carl Eugen Hoyos, 8 years ago

Replying to artofit:

So why this method is not deprecated??

As you found out, there are file formats for which the concat protocol works fine.

Note: See TracTickets for help on using tickets.