Mp4 to HLS using ffmpeg

℡╲_俬逩灬. 提交于 2019-12-02 17:38:41

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.

av_opt_set_int(formatContext->priv_data, "hls_list_size", list_size, 0);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!