On Fri, Mar 09, 2018 at 15:59:07 +0800, xyzero wrote:
> Hi all:
> I use the lastest ffmpeg 3.4.2 to transcode a HLS live streaming with the 
> command :
> "ffmpeg -i /2011/03/17/20110311090142995200.wmv -c:v h264 -flags +cgop -g 25 
> -hls_init_time 1 -hls_time 10 -hls_list_size 0 -hls_flags temp_file -b:v 800K 
> /hls_tmp/out.m3u8"
> and the m3u8 file was written as
> #EXTM3U
> #EXT-X-VERSION:3
> #EXT-X-TARGETDURATION:2
> #EXT-X-MEDIA-SEQUENCE:0
> #EXTINF:1.000000,
> out0.ts
> #EXTINF:1.000000,
> out1.ts
> #EXTINF:1.000000,
> out2.ts
> #EXTINF:1.000000,
> out3.ts
> #EXTINF:1.000000,
> out4.ts
> #EXTINF:1.000000,
> out5.ts
> 
> It seems that "-hls_time 10" has no effect with the option "-hls_init_time" 
> at the same time.
> Does anyone meet the same problem before?

I'm no HLS expert, but possibly, you need to set the flag
"split_by_time" for "hls_time" to take effect. (Just guessing.)

$ ffmpeg -h muxer=hls
[...]
  -hls_flags         <flags>      E....... set flags affecting HLS playlist and 
media file generation (default 0)
[...]
     split_by_time                E....... split the hls segment by time which 
user set by hls_time


Moritz
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to