How can I convert the stream in m3u8 playlist?

Good day, a flv stream, I need it to convert in m3u8 playlist.
Now make it so
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',
 the '-f hls'
 ])


But in the end when playing the m3u8 I have the incorrect length of the video and rewind is not working properly. Please tell me, what am I doing wrong?
April 4th 20 at 00:39
0 answer

Find more questions by tags FFmpeg