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

Claudiu Rad jazzman at misalpina.net
Mon Aug 25 15:08:26 CEST 2014


On 8/25/2014 1:30 PM, Diogo Serrano wrote:

> Basicaly i want to create a single .ts giving in the arguments the range of
> time, after that i need to join all .ts files and generate the m3u8
> playlist.
>
> The ffmpeg command list bellow are a prove of concept to resolve my
> problem, but when a generate the m3u8 playlist the video is not fluid,
> because the cut is not very precise
>
>> fmpeg -ss 0.000 -i "/home/USER/vagrant/files/rod.mp4" -t 10.000 -c:v copy
> -bsf h264_mp4toannexb -flags -global_header -map 0 -f segment -segment_time
> 10 -segment_start_number 1 -segment_list 0001_test.m3u8 -segment_format
> mpegts 1stream%05d.ts
>
> ...........
> .........................
> ....................................
> (the list continue depending the time of the video)

i think that in order for this to work you should have keyframes in the 
input video at each 10s exactly if you use -c:v copy.
cut should be done at keyframe.

-- 
Claudiu


More information about the ffmpeg-user mailing list