CarlEdman
11th November 2011, 23:32
Is there a tool which nicely concatenates MP4s?
By nicely, I mean not just taking each track and spitting out a concatenated output, but which deals properly with issues like certain audio or video tracks not being exactly the same length in each component. These differences are usually small (a second or less), but if you just concatenate the tracks individually you will often get noticeable de-sync on subsequent component parts. To avoid that, such a tool would have to be able to either (1) mix audio/video at the boundary (presumably difficult, in particular for video without recoding), (2) insert silence and black frames as needed (presumably easier, but not entirely trivial), or (3), perhaps, deal with time codes cleverly.
A perfect tool would also do the right thing with respect to other types of tracks like chapters (perhaps even inserting a chapter mark at each merge point) and subtitles in the various formats.
MP4box, last time I tested it, did not deal with these issues gracefully.
A CLI tool would be fine (in fact, preferred).:thanks:
By nicely, I mean not just taking each track and spitting out a concatenated output, but which deals properly with issues like certain audio or video tracks not being exactly the same length in each component. These differences are usually small (a second or less), but if you just concatenate the tracks individually you will often get noticeable de-sync on subsequent component parts. To avoid that, such a tool would have to be able to either (1) mix audio/video at the boundary (presumably difficult, in particular for video without recoding), (2) insert silence and black frames as needed (presumably easier, but not entirely trivial), or (3), perhaps, deal with time codes cleverly.
A perfect tool would also do the right thing with respect to other types of tracks like chapters (perhaps even inserting a chapter mark at each merge point) and subtitles in the various formats.
MP4box, last time I tested it, did not deal with these issues gracefully.
A CLI tool would be fine (in fact, preferred).:thanks: