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).

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.