N
N
nezzard2020-01-03 15:52:36
fmpeg
nezzard, 2020-01-03 15:52:36

How to convert stream to m3u8 playlist?

Good afternoon, I have an flv stream, I need to convert it to m3u8 playlist.
Now I do it like this

ffmpeg('http://localhost:8001/live/dd2.flv').addOptions([
            '-t ' + endInSec,
            '-acodec copy',
            '-vcodec copy',
            '-start_number 0',
            '-hls_time 10',
            '-hls_list_size 0',
            '-g 30',
            '-f hls'
          ])

But in the end, when playing this m3u8, I have an incorrect video length and rewind does not work correctly. Please tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question