[FFmpeg-user] HLS segment time question

Gabor Alsecz alseczg at gmail.com
Wed Nov 9 15:08:22 EET 2016


Dear All,

I have facing issues with HLS segmenting time.

Here is my command (i am piping input from memory bitmap):
ffmpeg -y -loglevel info  -f rawvideo  -pix_fmt bgr24 -video_size 1920x1080
-framerate 25   -i "-"   -pix_fmt yuv420p -profile:v baseline -hls_time 3
-hls_list_size 0 -hls_segment_filename file%03d.ts -f hls out.m3u8


The content output of m3u8 file looks like:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.000000,
file000.ts
#EXTINF:10.000000,
file001.ts
#EXTINF:10.000000,
file002.ts
#EXTINF:10.000000,
file003.ts
#EXTINF:10.000000,
file004.ts
#EXTINF:10.000000,
file005.ts
#EXTINF:10.000000,
file006.ts
#EXTINF:10.000000,
file007.ts
#EXTINF:10.000000,
file008.ts
...

As you have seen the segments are not 3 seconds long but 10. Any idea why?
Thanks!

br,
Gabor


More information about the ffmpeg-user mailing list