Page 1 of 1

forcing ffmpeg's file level concatenation demuxer

PostPosted: Tue Mar 25, 2014 5:27 pm
by jules
Hey all,

I'm currently trying to write/test a plugin for comedy central and I've got the writing part down, however, in order to comfortably view the episodes, which are cut into several mp4(h264/aac) segments, i'd need to have "-f concat" appended to ffmpeg's command line (outside of the url parameter).

See this post for more information/syntax: http://stackoverflow.com/a/11175851.
  • the concat protocol won't work because mp4 can't be concatenated at file level,
  • the video filter would require adding a lot of other parameters, and
  • the concat demuxer is probably the cleanest solution with the lowest overhead/error-proneness.

Any way of making this happen? Segmented video is pretty common on the internet for advertising/storage reasons.


On a sidenote: My solution would have been to have the plugin create temporary files using File.createTempFile() containing the "file '<url>'" syntax. If someone happens to have a better, portable solution, I'd be quite happy to hear it.

Re: forcing ffmpeg's file level concatenation demuxer

PostPosted: Tue Mar 25, 2014 7:21 pm
by zip
It's currently not possible. I'm going to be working on some concat tickets for local files for 1.5, maybe it could be reused there.

Re: forcing ffmpeg's file level concatenation demuxer

PostPosted: Tue Mar 25, 2014 10:55 pm
by jules
would be great. are these tickets public so i can subscribe to updates?

Re: forcing ffmpeg's file level concatenation demuxer

PostPosted: Thu Mar 27, 2014 9:49 am
by zip
yes, on bitbucket. viewtopic.php?f=5&t=2