Skip to content

Fix YouTube HLS smear with MPEG-TS continuity rewrite - #27

Closed
serezhka wants to merge 2 commits into
mainfrom
fix/hls-mpegts-continuity
Closed

serezhka wants to merge 2 commits into
mainfrom
fix/hls-mpegts-continuity

Conversation

@serezhka

Copy link
Copy Markdown
Owner

Summary

  • Add payload-aware MPEG-TS continuity rewrite on tsdemux (YouTube fragment CC resets + empty afc=3 stuffing) so GST 1.28 stops mid-GOP drops / smear.
  • Autoplug install + rate-limited CONTINUITY bus logging; related HLS helper/test polish (EndListDuration, FCUP debug gating, volume clamp consistency).
  • Kali offline ythls: stock CONT=9 → fix CONT=0 (more frames); unit/LiveSeg/smoke green.

Test plan

  • ./gradlew test
  • CI on this PR (unit + integration/bench where configured)
  • Kali offline HLS battery (ythls CONT/REF)
  • Re-check CI failures and fix if needed
  • Do not merge yet — more commits will land on this PR

Made with Cursor

serezhka and others added 2 commits November 15, 2026 00:29
Install a tsdemux sink probe that keeps demuxer CC continuous across
fragment resets and empty afc=3 stuffing, with set_buffer only when
bytes change. Rate-limit CONTINUITY bus spam and tighten related HLS
helpers/tests so short VOD ads and YouTube cuts stay clear on GST 1.28.

Co-authored-by: Cursor <cursoragent@cursor.com>
Unit CI has partial GStreamer without mpegtsdemux; ElementFactory.make
throws instead of returning null, which failed the suite before playback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@serezhka

Copy link
Copy Markdown
Owner Author

Moved the HLS continuity commits onto release/1.1.2 (wrong head branch was opened by mistake). Continuing work there; this PR is obsolete.

@serezhka serezhka closed this Nov 15, 2026
@serezhka
serezhka deleted the fix/hls-mpegts-continuity branch November 15, 2026 08:09
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