Skip to content

Implement static preamble#43

Merged
onitake merged 6 commits intomainfrom
feature/preamble
Jun 29, 2023
Merged

Implement static preamble#43
onitake merged 6 commits intomainfrom
feature/preamble

Conversation

@onitake
Copy link
Owner

@onitake onitake commented Jun 28, 2023

This is a hackish workaround for clients that can't manage to synchronize with a stream correctly when receiving packets in the middle of a unit, without getting the PAT and PMTs as well as H.264 SPS and PPS first.

It allows sending a static TS preamble with every client connection, that should allow immediate initialization of the decoder.

Warning: When sending a preamble that doesn't match the data follows, this can lead to even worse results.

Potential problems:

  • Demuxer and/or decoder will crash (when unexpected data is received)
  • Decoding artifacts
  • A/V desync (due to PTS mismatch)
  • Freeze after preamble

@onitake onitake changed the base branch from master to main June 28, 2023 17:15
@onitake onitake force-pushed the feature/preamble branch 3 times, most recently from a3ef9f9 to cff078d Compare June 28, 2023 17:22
@onitake onitake added this to the 0.10.0 milestone Jun 28, 2023
@onitake onitake force-pushed the feature/preamble branch from cff078d to 50a4926 Compare June 29, 2023 16:26
@onitake onitake merged commit 6a701ca into main Jun 29, 2023
@onitake onitake deleted the feature/preamble branch June 29, 2023 16:34
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.

2 participants