I am creating a HLS live streaming event playlist (m3u8 file and the ts segments) via FFmpeg. The segments at the beginning must not be removed from the playlist (it should contain all the segments). The HTML5 video element should start playing the video at the very beginning (by default it starts somewhere in the middle if the playlist contains several segments and the end tag is not contained at the end of the playlist file). To achieve that the video starts playing at the very beginning I need to add #EXT-X-START:TIME-OFFSET=0
to the playlist file.
Currently my FFmpeg command is the following: ffmpeg -i videoSrc -map 0 -f hls -hls_time 10 -hls_list_size 0 -hls_playlist_type event -hls_allow_cache 0 -hls_segment_filename testSegmented%03d.ts testSegmentedHls.m3u8
.
So my question is: How do I add #EXT-X-START:TIME-OFFSET=0
to my HLS m3u8 playlist file using FFmpeg?
1
votes
Not implemented, feel free to add it.
– aergistal
1 Answers
0
votes
As aergistal mentioned in his comment, it's not implemented (yet?). I am now using this patch: https://patchwork.ffmpeg.org/patch/522/