Repository navigation
Description
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.
- In
internal/tonemap/preflight.go,sourceConversionPreflightFilterprefixes the VAAPI filter withformat=nv12,hwupload,wheneverSoftwareVideoDecodeis set, for every source kind. - The QSV branch just below it, and the runtime graph (
softwareToneMapUploadFilterininternal/playback/transcode.go), usep010lefor every kind except SDR. TestSourceConversionPreflightMirrorsSoftwareDecodeForVAAPIininternal/tonemap/preflight_test.goasserts thenv12form.
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
Activity