Skip to content

[bug] VAAPI tone-map preflight tests an 8-bit upload that playback never uses #2269

Closed

Description

@Quick104

What happened

On a VAAPI executor with software video decode, the tone-map source preflight uploads HDR frames to the GPU as 8-bit nv12, but playback uploads them as 10-bit p010le. The preflight is meant to prove that the frozen recipe works before the first manifest is published, so it is checking a different conversion from the one that runs.

Depending on the driver, that can reject a source that playback would convert correctly, or pass a source without testing the 10-bit path. Which of the two happens on real hardware hasn't been checked.

Steps to reproduce

Not reproduced on a deployment; found in code review.

  1. In internal/tonemap/preflight.go, sourceConversionPreflightFilter prefixes the VAAPI filter with format=nv12,hwupload, whenever SoftwareVideoDecode is set, for every source kind.
  2. The QSV branch just below it, and the runtime graph (softwareToneMapUploadFilter in internal/playback/transcode.go), use p010le for every kind except SDR.
  3. TestSourceConversionPreflightMirrorsSoftwareDecodeForVAAPI in internal/tonemap/preflight_test.go asserts the nv12 form.

Expected behavior

The preflight builds the same upload as playback: nv12 for SDR kinds and p010le for the rest.

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

HDR sources whose tone-map classification needs a preflight (missing, reserved, or contradictory colour signalling), on a VAAPI executor that decodes in software.

Relevant logs

No logs available.

Technical notes

Choosing the upload format once, as the QSV branch does (nv12 when IsSDRSource(request.Kind), otherwise p010le), and using it for both branches would fix it. The VAAPI test then expects format=p010le,hwupload for a PQ source. The lines date from b4e94e4af.

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.

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
    priority: P2
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: playbackpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions