Skip to content

Release 0.10.2: threaded streaming, cache auto-scaling, high-RTT tuning & webOS audio sync - #13

Open
sachk wants to merge 40 commits into
masterfrom
release/0.10.2
Open

sachk wants to merge 40 commits into
masterfrom
release/0.10.2

Conversation

@sachk

@sachk sachk commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Integrates everything missing on master for Spool 0.10.2, superseding #12 and incorporating the unpushed webOS audio-sync/milestones work plus our streaming transport & memory auto-scaling improvements:

  • 0.10.2 integration baseline (from release/integrate-0.10.2 / Integrate Spool 0.10.2 and repair release CI #12): threaded stream_curl transport, HTTP/3-capable libcurl/OpenSSL/nghttp2/nghttp3/ngtcp2 build closure, curl policy/controller/budget modules, updated Qt/FFmpeg/mpv dependencies, and cross-platform packaging fixes.
  • webOS audio sync & playback milestones (from release/prepare-0.10.2-tv / big-refactor): PulseAudio Starfish clock sync default, configurable ALSA buffer setting, and Developer Mode playback milestones.
  • Memory-budgeted demuxer cache auto-scaling (ON by default): 1:2 behind:forward auto-scaling up to 128 MiB / 512 MiB (StreamingCacheScaler, playback/streamingMemoryLoan = true by default across all platforms).
  • High-RTT startup, HTTPS H1 escape & curl_policy wiring (spool-player/mpv@d029fd1ea8, fast-forwarding universal past spool-player/mpv#1):
    • Physics-based startup/seek lane sizing (mp_curl_controller_startup_requests) to clear TCP IW10 slow-start on high-RTT links while staying at 1 lane on proven fast low-RTT paths.
    • Automatic HTTPS multi-socket HTTP/1.1 escape via an isolated non-multiplexed pool when single-TCP HTTP/2 bottlenecks high-RTT streaming, plus curl_policy HTTP/3 Alt-Svc eligibility/revert and measured SO_RCVBUF overrides.
    • Upgraded streaming profiles to 8 lanes and expanded pre-playback speed probes.
    • Thread-safe NULL-parent talloc allocations for worker-thread metadata/warm requests (fixes the ta_dbg_check_header crash in test_cores_share_tls_sessions on Linux CI).
    • Removed the temporary Android vo_libmpv backport patch now carried natively in mpv.
  • Testing: Added real Jellyfin 12.2 latency/slow-start E2E harness (jellyfin-latency-e2e, auto-skips when no local Jellyfin instance is present).

Local Verification

  • tools/check-submodule-flake-sync.sh, tools/check-version-sync.sh, tools/check-release-version.sh 0.10.2, tools/check-module-seam.sh: all pass.
  • mpv/test/curl_transport.py: 23/23 passed.
  • ctest (traditional-native, gui-e2e-native, streaming-dependencies, transport-protocols, curl-budget, curl-controller, curl-policy, webos-tooling, package-audit, etc.): 21/21 passed; jellyfin-latency-e2e skips cleanly when offline.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 15:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

sachk added 15 commits November 27, 2026 02:50
…diagnostics

Consolidate the release milestone ending at aac4e89.
Original starting snapshot: 116a82e.
…ndencies

Consolidate the release milestone ending at 738ae12.
Original starting snapshot: aac4e89.
…otocol contracts

Consolidate the release milestone ending at b01df00.
Original starting snapshot: 738ae12.
…ptance

Consolidate the release milestone ending at aa9d311.
Original starting snapshot: b01df00.
Consolidate the release milestone ending at 3b7debf.
Original starting snapshot: aa9d311.
Consolidate the release milestone ending at 1fe7a21.
Original starting snapshot: 3b7debf.
…est setup

Consolidate the release milestone ending at 626034b.
Original starting snapshot: 1fe7a21.
…sertions

Consolidate the release milestone ending at 368a7e9.
Original starting snapshot: 626034b.
Consolidate the release milestone ending at f6200d4.
Original starting snapshot: 368a7e9.
Consolidate the release milestone ending at 163ed1e.
Original starting snapshot: f6200d4.
… controls

Consolidate the release milestone ending at 2d08aa6.
Original starting snapshot: 163ed1e.
Consolidate the release milestone ending at fbae66c.
Original starting snapshot: 2d08aa6.
Consolidate the release milestone ending at a27cb5c.
Original starting snapshot: fbae66c.
…e redraw

Consolidate the release milestone ending at 39272ac.
Original starting snapshot: a27cb5c.
…y policy

Consolidate the release milestone ending at 17fbd5f.
Original starting snapshot: 39272ac.
sachk added 16 commits November 27, 2026 23:12
(cherry picked from commit 79c9eaca4a81bca3aa2e03395b8cdec44d08cc34)
(cherry picked from commit 64c2c1470cb95461a8c3c520b5759b1015c37be0)
(cherry picked from commit cdad353d4f367c1f44a3f2b01f51345df8ecd041)
(cherry picked from commit 3995525dd9b06f7bfd9aef0370658aa6dd52f231)
Crop the active details page primary caption before running single-line OCR so the accent fill and focus outline cannot hide Resume from page segmentation. Click the recognized caption when resuming and keep the provider and decoded-frame checks.

(cherry picked from commit 9992d8ab7fcaec678a0c21161360be10d529d370)
Request pause as soon as the saved movie has an active session. Require renderer readiness and observed pause before seeking. Use the Fast picture profile for this phase to reduce rendering load and keep adaptive quality changes out of Apple startup.

Verify both paused positions and decoded frames, clock advancement after resume, and the local stop position with the provider unavailable. Retain numeric mpv end reason and error values for early playback failures.

(cherry picked from commit 8cb46564882afe5d6d40f62564a56a451d774492)
The running UI estimate can cross the advance threshold before mpv reports that position. Check a settled mpv sample for progress, refresh it asynchronously on pause, and wait for a fresh paused position before comparing it with the saved stop.

(cherry picked from commit b6586535cbde95f29b8a5d36879c16a52a2bd912)
Keep the isolated journey on one picture profile across the offline to online transition. Pause the initial episode as soon as the negotiated file is loaded, and still require the Jellyfin catalogue and playback start receipts before seeking.

Export numeric mpv end diagnostics for startup and pause failures while keeping uncontrolled log content private.

(cherry picked from commit 42efd7649265c3273ef890bb610becb2f1a3653a)

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.

2 participants