Repository navigation
Description
What happened
Silo tone-maps a Dolby Vision 7, 8.1, or 8.4 source differently depending on which executor runs it.
- The software (
tonemapx) and QSV (tonemap_opencl) graphs don't setapply_dovi. jellyfin-ffmpeg defaults it to on, so those graphs reshape the picture through the stream's RPU. - The NVENC graph (
tonemap_cuda) setsapply_dovi=0and converts the HDR10 or HLG base layer as declared.
So the same frozen recipe produces a different picture on NVENC than on QSV or the CPU, and a session that moves between executors (a hardware start that falls back to software, or a node failover in a mixed pool) can change colour mid-stream. For an 8.4 source declared as HLG, the software and QSV graphs output the RPU-reshaped picture whatever the declared HLG transfer says.
Steps to reproduce
Not reproduced on a deployment; found in code review and checked with a local FFmpeg.
- Run
ffmpeg -h filter=tonemapx,-h filter=tonemap_opencl, and-h filter=tonemap_cudawith jellyfin-ffmpeg 8.1.3. Each listsapply_doviwithdefault true. - Compare the filter graphs Silo builds for a
pqorhlgsource:SoftwareFilterandopenCLToneMapFilterininternal/tonemap/tonemap.goemit noapply_dovi, whileCUDAFilteremitsapply_dovi=0. - On a frame that carries Dolby Vision metadata, the software graph with no option gives the same output as
apply_dovi=1and a different output fromapply_dovi=0. That holds with the source declared PQ and with it declared HLG.
Expected behavior
Every executor applies the same rule to the same recipe. CUDAFilter's comment says the base layer is converted as validated, which suggests apply_dovi=0 for the standard source kinds on all three filters. Which picture is intended for these profiles is a maintainer decision.
Silo version / commit
cae87c893 (origin/main), source reading.
Deployment
Local dev build
Area
Playback and transcoding
Clients affected
- Web UI
- Android
- iOS/tvOS/macOS
- Jellyfin-compat client (Infuse, Findroid, ...)
- Other/not client-specific
Media and playback details
Dolby Vision 7, 8.1, and 8.4 sources that are transcoded to SDR. Profile 5 and compatibility ID 0 sources are a separate source kind that always sets apply_dovi=1, so they are not affected.
Relevant logs
No logs available.
Technical notes
- A likely fix is to make the shared option helper in
internal/tonemap/tonemap.goemit:apply_dovi=0for every kind except the Dolby Vision kind, sotonemapx,tonemap_opencl, andtonemap_cudaagree. - Changing the software and QSV output for these profiles could affect validated playback cases. Check the v1.0 board before changing it.
- How large the visible difference is on real 8.1 and 8.4 content wasn't measured.
AI harness
Claude Code in T3 Code
AI tool(s)
Claude Code, GitHub CLI
AI model(s)
claude-opus-5-5
AI involvement
AI-drafted at the maintainer's direction, from code review of the Dolby Vision Profile 5 tone-mapping change and a local FFmpeg check.
Independent or adversarial review
n/a
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Activity
Quick104 commentedon Nov 13, 2026
🤖 AI agent claim. Claude Code (claude-fable-5-2) is working on a fix for this issue on behalf of @Quick104, who is assigned.
A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.
Planning to work on this, or have context to add? Reply here and mention @Quick104.
fix(tonemap): tone-map Dolby Vision 8 from its base layer on QSV and …