[FFmpeg-user] Generate .ts file parallel, resume option, offset HLS

Diogo Serrano diogopmserrano at gmail.com
Wed Aug 20 16:23:17 CEST 2014


I have a mp4 file or other file (non mp4 format) and i need generate ts
files and m3u8 playlist.

I am using this command and works fine:

> ffmpeg -i foo.mp4 -codec copy -vbsf h264_mp4toannexb -map 0 -f segment
-segment_list out.m3u8 -segment_time 10 out%03d.ts

Now I need to generate many ts simultaneous so i need a "resume option".

Please see the example below:

One thread (first 20 seconds (0-20))

> ffmpeg -i foo.mp4 -codec copy -vbsf h264_mp4toannexb ................

Seconds thread (20 seconds to 40 seconds)

> ffmpeg -i foo.mp4 ......

Third thread (40 seconds to 60 seconds)

> ffmpeg -i foo.mp4 ......

I have lots of core processor to do this jobs.

In resume i need generate .ts files and m3u8 fastest way possible

I need help or advises to resolve my problem.

Thanks for your help


More information about the ffmpeg-user mailing list