Skip to content

Update mpv to 0.42.0 - #91

Merged
seaweeduk merged 1 commit into
masterfrom
build/mpv-0.42
Nov 22, 2026
Merged

seaweeduk merged 1 commit into
masterfrom
build/mpv-0.42

Conversation

@seaweeduk

@seaweeduk seaweeduk commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner
  • mpv goes from 0.41.0 to 0.42.0 in both release builds.
  • The six mpv patches are regenerated against 0.42.0 with the same changes. The 3D Blu-ray patch no longer changes f_decoder_wrapper.c, because mpv 0.42 keeps a decoder's own stereo mode itself.
  • mpv 0.42 needs libplacebo 7.387 or newer, and Debian 13 has 7.349, so the release builds libplacebo 7.387.0 from source. mpv's OpenGL renderer uses only its colour and tone-mapping code, so it is built without a graphics backend or shader compiler. Debian's glslang and SPIRV-Tools, which its libplacebo linked in, leave the release.
flowchart LR
  subgraph Before
    D1["Debian libplacebo 7.349<br>+ glslang, SPIRV-Tools"] --> M1["mpv 0.41.0"]
  end
  subgraph After
    S2["libplacebo 7.387.0, built here<br>colour code only"] --> M2["mpv 0.42.0"]
  end
Loading

Two 0.42 changes are kept out, so playback stays as it was:

  • Tracks in MPEG-TS files with several programs. 0.42 lists only one program's audio and subtitle tracks, and the player has no program picker. Both of the app's mpv instances list every track again:

    mpv_set_option_string(mpv_, "flatten-editions", "yes");
  • Dolby Vision enhancement layers. 0.42 decodes the layer with a second decoder, but only mpv's gpu-next renderer draws it, and the app uses gpu. FFmpeg is built with --disable-bsf=dovi_split, so in a file with both layers in one track the layer goes to the base decoder, which skips it, as in 0.41.

Other 0.42 changes don't reach the app:

  • Vulkan decoding leaving auto-safe: the app names its hardware decoders.
  • Disc menus and .iso detection: they need mpv's Blu-ray and DVD support, which the build leaves out; the app reads discs itself.
  • The new decoder pool sizing: the app sets the desktop's NVDEC pool, and the Frame's decoder sizes its own.
  • HTTPS certificate checks, now on by default: media server streams use the app's own connection, which keeps a certificate accepted in setup.

The release notices gain Glumpy's BSD licence (filter code in mpv and libplacebo), the MIT licence of the Fluent icons in mpv 0.42's on-screen font, and libplacebo's zlib and public-domain parts.

Steam Frame, 3780 px eyes at 120 Hz, means of two launches each:

master (mpv 0.41.0, FFmpeg 9.0.2) This PR (mpv 0.42.0, FFmpeg 9.1)
8K HEVC, hardware: frames/s, drops 59.95, 0 59.98, 0
8K HEVC, hardware: app CPU (% of a core) 13.4 13.2
8K HEVC, hardware: GPU (ms per second) 136.7 136.7
8K HEVC, hardware: headset power (W) 14.2 14.2
4K VP9, software: app CPU (% of a core) 119.5 120.6

Known and left as is

  • A Dolby Vision Profile 7 file with the enhancement layer in a track of its own is paired by 0.42's MKV and MP4 readers, which dovi_split doesn't cover. mpv then decodes the layer with a second decoder and the app never draws it. The video plays as before, with the extra decoding. Keeping that out would take a seventh mpv patch.

Important

AI disclosure

Model Variant Role
anthropic/claude-opus-5-5 high Investigation, patch regeneration, libplacebo build, verification and Steam Frame measurements
openai/gpt-6.2-astra high Independent review

Agent harness OpenCode 2.3.2

@seaweeduk seaweeduk added the dependencies Bundled library updates (release notes: Other changes) label Nov 22, 2026
@opencode-agent

Copy link
Copy Markdown
  1. Medium — Dual-track Dolby Vision still opens a second decoder (packaging/release/build-sdk.sh:176–180). Disabling dovi_split covers files where both layers share one HEVC track. In a dual-track Profile 7 remux, the enhancement layer is already a separate track: mpv 0.42 pairs it with the base track in both the Matroska demuxer and the lavf demuxer, without consulting dovi_split. Playing that file therefore opens an enhancement-layer decoder and queues frames for matching, even though the app’s renderer never draws that layer. Keep the FFmpeg flag for single-track files, and patch the two dual-track paths to leave the enhancement track unselected rather than pairing it with the base track.

github run

@seaweeduk

Copy link
Copy Markdown
Owner Author

Thanks, confirmed in mpv 0.42's pair_dovi_tracks() and lavf's stream groups. Declined: keeping a separate-track enhancement layer unpaired needs a seventh mpv patch, and these files still play correctly; only the decoding is wasted. The description now limits the dovi_split claim to single-track files and lists this under "Known and left as is".

@seaweeduk
seaweeduk changed the base branch from build/ffmpeg-9.1 to master November 22, 2026 20:58
@seaweeduk
seaweeduk merged commit e82e7ea into master Nov 22, 2026
@seaweeduk
seaweeduk deleted the build/mpv-0.42 branch November 22, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Bundled library updates (release notes: Other changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant