Skip to content

fix(playability): treat a PQ or HLG transfer as HDR, read in-band when the header states no colour - #31

Merged
gravity-zero merged 1 commit into
masterfrom
fix/playability-hdr-transfer
Nov 19, 2026
Merged

gravity-zero merged 1 commit into
masterfrom
fix/playability-hdr-transfer

Conversation

@gravity-zero

Copy link
Copy Markdown
Owner

Playability and Ingest now send a PQ or HLG video with no mastering metadata or MaxCLL to transcode on a target without HDR. Before, it was judged direct-play. The reason given is HDR (PQ transfer) is unsupported on target.

Both also read the first sample of a video track whose header states no colour (in-band fallback), so a PQ stated only in the SPS counts as well. RecommendLadderFor is unchanged.

Verification:

  • New tests: TestPlayability_HDRTransferWithoutStaticMetadata, and TestPlayability_PQInBandOnly, which is red without the in-band read.
  • 339 real 2160p files checked against ffprobe:
    • before: 223 PQ files judged direct-play on a non-HDR target;
    • after: 0 mismatches.
  • An independent check on 526 files of a media server: 0 false HDR, Dolby Vision unchanged.
  • The full gate is green, the media server's test suite passes, and cross builds (linux/windows/darwin/wasm/arm) are OK.

@gravity-zero gravity-zero mentioned this pull request Nov 19, 2026
@gravity-zero
gravity-zero merged commit 7c2dd44 into master Nov 19, 2026
13 checks passed
@gravity-zero
gravity-zero deleted the fix/playability-hdr-transfer branch November 19, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant