FFMPEG Command to Convert MP4 Video File to HLS (m3u8) Live Video Streaming File in Command Line

 

Default list size while converting to HLS is 5. So, you are getting the last 5 .ts files. You must set -hls_list_size 0 to include all the generated .ts files.

ffmpeg -i input.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls index.m3u8 More here

 

 

At last I fixed this issue by setting the hls size in the FFOutputFile.m using the following code.

 

 

 

Leave a Reply