Opened 3 years ago
#9357 new enhancement
HLS live seek support
Reported by: | SuRGeoNix | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
The current API (hls demuxer) doesn't seem to provide/expose required information to implement HLS live seek as the playlists/segments are not known (HLSContext). Even if you just re-opening the format context to accomplish this with the 'live_start_index' avdict option you don't have the information of the segments/durations.
Additionally, it seems that the hls demuxer sets AVFMTCTX_UNSEEKABLE flag always. Can't see the reason why it applies it for example in this HLS live stream (https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/level_3.m3u8)
It has been also seen even after seeking on HLS live stream that the timestamps are not related to the previous ones (before seeking) or to the first_timestamp or ic->start_time.