[FFmpeg-user] hls_init_time problem

? ? closezling at outlook.com
Fri Apr 14 11:46:30 EEST 2017


I’m record a stream from ip camera with H264 video encoding & PCMA audio encoding to m3u8
Ffmpeg version:3.2.4

Here is my command:

ffmpeg -rtsp_transport tcp -i rtsp:// -vcodec copy -acodec aac -hls_init_time 2 -hls_time 60
-hls_list_size 0 -hls_flags +single_file+round_durations -hls_segment_filename test.ts -t 3600 test.m3u8

But in the m3u8 file,every segment entry’s duration is 2 seconds

Which part did I do wrong?

Thx in advance!

More information about the ffmpeg-user mailing list