[FFmpeg-user] Converting MPEG-2 TS segments into MP4 fragments

Andrey Utkin andrey.krieger.utkin at gmail.com
Mon May 13 21:04:04 CEST 2013

2013/5/13 Tom Distler <tom.distler at gmail.com>:
> Hi,
> I have a series of ts segments (seg001.ts, seg002.ts, etc) that I want to
> convert into mp4 fragment files... i.e. files w/ a 'moof' box instead of a
> 'moov' box.
> I've tried ` ffmpeg -i seg001.ts -codec copy seg001.m4v`, but that
> generates files w/ independent "movies"... each w/ it's own 'moov' box.
> Is the segment muxer able to do what I want? I've been able to use it to
> create a single file w/ multiple 'moof' boxes inside, but I really need
> separate files for each segment (they are created live on-the-fly).

I guess concat demuxer does what you need.
Below are links to official docs and usage examples.

Andrey Utkin

More information about the ffmpeg-user mailing list