Skip to content

[bug] Dolby Vision 7 and 8.x tone-map differently on NVENC than on software and QSV #2268

Closed

Description

@Quick104

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 set apply_dovi. jellyfin-ffmpeg defaults it to on, so those graphs reshape the picture through the stream's RPU.
  • The NVENC graph (tonemap_cuda) sets apply_dovi=0 and 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.

  1. Run ffmpeg -h filter=tonemapx, -h filter=tonemap_opencl, and -h filter=tonemap_cuda with jellyfin-ffmpeg 8.1.3. Each lists apply_dovi with default true.
  2. Compare the filter graphs Silo builds for a pq or hlg source: SoftwareFilter and openCLToneMapFilter in internal/tonemap/tonemap.go emit no apply_dovi, while CUDAFilter emits apply_dovi=0.
  3. On a frame that carries Dolby Vision metadata, the software graph with no option gives the same output as apply_dovi=1 and a different output from apply_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.go emit :apply_dovi=0 for every kind except the Dolby Vision kind, so tonemapx, tonemap_opencl, and tonemap_cuda agree.
  • 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

Source: found in code review of #2267 (the fix for #1999).

Activity

  1. added
    bug
    on Oct 11, 2026
  2. added
    impact: playback
    needs-review
    priority: P2
    on Oct 11, 2026
  3. self-assigned this
    on Nov 13, 2026
  4. Quick104 commented on Nov 13, 2026

    @Quick104
    ContributorAuthor

    🤖 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.

  5. added a commit that references this issue on Nov 13, 2026
    aa9684d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugimpact: playbackneeds-reviewpriority: P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions