[FFmpeg-user] How to create m3u8 file before 0.ts?

Sinan Aksu sinanksu at gmail.com
Fri Sep 29 12:34:48 EEST 2017


Hi,

I am broadcasting live with nginx rtmp module. I am using ffmpeg to convert
MP4 file to hls live. The system is running. There is no problem.

But when the process starts, the first 0.ts file is generated. After the
second (1.ts) file is created, m3u8 file is created.

I want m3us8 first.

How can I do that.

The running command I use is:

ffmpeg -re -i 1234.mp4 -acodec copy -vcodec copy -preset veryfast -vsync
cfr -b:v 400k -bufsize 400k -threads 0 -r 25 -f flv rtmp://
127.0.0.1:1935/mobile/1234


More information about the ffmpeg-user mailing list