Source video: h264 mp4, 45 seconds, 30 fps, keyint 30, min keyint 16
I am trying to create an m3u8 playlist where the first chunk is smaller (2 seconds) and the rest are 10 seconds.
when using this command:
ffmpeg.exe -i test4_c.mp4 -codec copy -bsf:v h264_mp4toannexb -start_number 0 -hls_init_time 2 -hls_time 10 -f hls -hls_list_size 0 test4_hls.m3u8
result is 4 10 second ts chunks
when using this command:
ffmpeg.exe -i test4_c.mp4 -codec copy -bsf:v h264_mp4toannexb -start_number 0 -hls_init_time 2 -hls_time 10 -f hls -hls_list_size 100 test4_hls.m3u8
result is 23 2 second ts chunks
what's the issue here?
I have already read this: https://stackoverflow.com/questions/43489097/ffmpeg-hls-init-time-hls-time-not-working-together and it doesn't work