Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement static preamble #43

Merged
merged 6 commits into from
Jun 29, 2023
Merged

Implement static preamble #43

merged 6 commits into from
Jun 29, 2023

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