Repository navigation
feat(probe): detect HDR Vivid (CUVA) carriage (#699) - #701
Merged
Merged
Conversation
ProbeDetail.hdrVivid scans HEVC packets for the CUVA T/UWA 005.1 T.35 SEI and sets SourceProbe.carriesHDRVividMetadata. It shares the HDR10+ packet pass and its HDR10PlusDetectionOptions budget, so asking for both opens one connection, and a cap after one confirmation keeps it. libavcodec's CUVA parser is internal, so HDRVividMetadataScan walks the body with the same field widths over the shared NAL/SEI walk and counts only a complete message with a defined system_start_code and zero bits after its last field. videoFormat does not move: Vivid rides an HLG or PQ base, which stays the label. Playback is unchanged. aetherctl probe gains --detect-hdr-vivid; make-hdr10plus-fixture.py gains --vivid, verified against ffprobe's CUVA side data. Measured: the CUVA conformance stream B.1-04 and the new fixture report Vivid, the HDR10+ fixture reports HDR10+ only, a plain HEVC file neither. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The follow-up promised in #699: HDR Vivid detection in the opt-in probe, analogous to HDR10+.
ProbeDetail.hdrVivid(new) andSourceProbe.carriesHDRVividMetadata(new, same contract ascarriesHDR10PlusMetadata: only ever set,falseis never "proven absent")..hdr10Plus, under the sameHDR10PlusDetectionOptionsbudget. The pass now stops once every requested target is confirmed; a cap that ends it after one of two keeps that confirmation (HDR10PlusDetectionOutcome.found).HDRVividMetadataScan: libavcodec's CUVA parser is internal (ff_parse_itu_t_t35_to_dynamic_hdr_vivid), so the body is walked here with the same field widths, on top of the existing NAL/SEI walk (now parameterized by the T.35 payload validator). It counts only a complete message withsystem_start_code1 to 7 and zero bits after the last field. HEVC only, like libavcodec.videoFormatdoes not move: Vivid rides an HLG or PQ base, which stays the label. No playback change, the SEI was already stream-copied.aetherctl probe --detect-hdr-vivid, andScripts/make-hdr10plus-fixture.py --vivid(self-verifies against ffprobe'sHDR Dynamic Metadata CUVAside data).Verification
aetherctl probe --detect-hdr10plus --detect-hdr-vivid: the reporter's CUVA conformance streamB.1-04.mp4and the new fixture report Vivid withformat: hlg; the HDR10+ fixture reports HDR10+ only (format: hdr10Plus); a plain HEVC file reports neither.HDRVividProbeTests: validator (complete, truncated, set padding bit, start-code range), outcome partial-finding semantics, base probe stays opt-in,.hdrVividend to end, both targets on both fixtures.swift test: 4073 swift-testing + 17 XCTest, exit 0. Strict concurrency clean on the touched files.check-doc-links.pyclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS