Skip to content

Improves HLS discontinuity sequence handling#291

Open
elementzonline wants to merge 4 commits into
DDVTECH:masterfrom
elementzonline:linux-master
Open

Improves HLS discontinuity sequence handling#291
elementzonline wants to merge 4 commits into
DDVTECH:masterfrom
elementzonline:linux-master

Conversation

@elementzonline

Copy link
Copy Markdown

Enhances HLS classic playlist generation and parsing to correctly manage media sequence and discontinuity sequences.

  • Introduces dedicated structures (ClassicSegment, ClassicPlaylistWindow, MediaPlaylistState) and helper functions to encapsulate HLS playlist logic, ensuring proper segment handling, duration calculations, and live trimming.
  • Updates HLS input parsing to accurately detect and store #EXT-X-DISCONTINUITY and #EXT-X-DISCONTINUITY-SEQUENCE tags, allowing for correct timeline resets and remapping.
  • Refactors HLS output generation to utilize the new playlist building utilities, which correctly apply discontinuity logic and media sequence numbering, especially in live streaming scenarios.
  • Improves playlist appending functionality by using inspectMediaPlaylist to accurately determine segment counts and media sequences in existing playlists.
  • Removes the HEVC HLS blacklist, allowing HEVC streams to be offered in HLS.

Inavada Deploy and others added 4 commits July 8, 2026 15:59
Enables clients to request an HLS live playlist that starts at an earlier, specified point in time. When `catchup=1` and a negative `startunix` are provided, the playlist generation prioritizes retaining segments from the beginning of the requested window, trimming newer segments from the end to respect the `listlimit`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant