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

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Sep 29 20:24:20 EEST 2017


2017-09-29 11:34 GMT+02:00 Sinan Aksu <sinanksu at gmail.com>:

> 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

(Complete, uncut console output missing.)

Your command line does not match your question.

Carl Eugen


More information about the ffmpeg-user mailing list