Skip to content

release/1.1.2: FairPlay AES reuse + YouTube HLS continuity - #28

Open
serezhka wants to merge 7 commits into
mainfrom
release/1.1.2
Open

serezhka wants to merge 7 commits into
mainfrom
release/1.1.2

Conversation

@serezhka

Copy link
Copy Markdown
Owner

Summary

  • Reuse FairPlay audio AES key/IV objects across CBC packets.
  • Fix YouTube HLS smear with payload-aware MPEG-TS continuity rewrite on GStreamer (tsdemux sink probe / set_buffer only when bytes change).
  • Skip Autoplug unit tests when tsdemux factory is missing (partial GST on unit CI).

Test plan

  • PR CI unit + playback (Ubuntu/Windows × ffmpeg/gstreamer/mse)
  • workflow_dispatch 5-minute benches (ffmpeg + gstreamer)
  • Kali: GST jar deployed; offline ythls CONT stock→0 with fix probe
  • Phone YouTube cast smoke on Kali receiver (when continuing the release)

Made with Cursor

serezhka and others added 7 commits November 13, 2026 15:21
Avoid allocating SecretKeySpec/IvParameterSpec on every decrypt while still
re-initing the cipher so each packet starts from the stream IV.

Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Reuse process-lifetime boss/worker groups for server and cast clients
instead of creating and shutting down a MultiThreadIoEventLoopGroup per
media port; bump the library version to 1.1.2.

Co-authored-by: Cursor <cursoragent@cursor.com>
Rewrite absolute https mediadata URIs onto /playlist/cdn so native
IPv6-first HTTP stacks never open googlevideo themselves; JDK fetch
prefers IPv4 like the existing MSE /hls path.

Co-authored-by: Cursor <cursoragent@cursor.com>
vah264dec READY-probes OK but periodically hits vaSyncSurface internal
decode errors on fragmented YouTube TS; demote it for playbin3 HLS so
avdec_h264 autoplugs (mirror already uses software). Rate-limit the
matching bus warn storm.

Co-authored-by: Cursor <cursoragent@cursor.com>
Live HTTP often splits mid-188-byte packet; the probe dropped the tail and
desynced PES, so CONTINUITY/libav MB errors (smear) returned even after
software decode. Unify live and test paths on pending-aware framing and
roll back CC state if buffer replace fails.

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

This branch has not been deployed

No deployments
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