support Dolby Vision in HLS/TS streams#3280
Open
CharmingCheung wants to merge 1 commit into
Open
Conversation
Route HEVC-based Dolby Vision elementary streams in MPEG-TS to the Dolby Vision decoder instead of decoding the HEVC base layer as plain HEVC, which produced a green/magenta tint for non-cross-compatible profiles (e.g. profile 5). - TsExtractor: detect the "DOVI" registration descriptor and the 0xB0 Dolby Vision video descriptor in the PMT, parsing profile/level via DolbyVisionConfig and carrying it through EsInfo. - DefaultTsPayloadReaderFactory: pass the DV config to H265Reader. - H265Reader: when DV is signalled, emit a video/dolby-vision Format with the dvhe codec string; for profile 5 (proprietary IPT-PQ base layer whose SPS omits colour signalling) synthesize BT.2020/PQ/limited colour info, leaving cross-compatible profiles to use their SPS VUI. - H265Reader/NalUnitUtil: keep Dolby Vision RPU (NAL type 62) and enhancement-layer (type 63) NAL units within the current access unit so the per-frame RPU metadata reaches the decoder instead of being dropped at the sample boundary. Verified on a OnePlus 12 with DV profile 5 and profile 8.1 HLS streams: both select c2.qti.dv.decoder and render correctly.
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.
Route HEVC-based Dolby Vision elementary streams in MPEG-TS to the Dolby Vision decoder instead of decoding the HEVC base layer as plain HEVC, which produced a green/magenta tint for non-cross-compatible profiles (e.g. profile 5).
Verified on a OnePlus 12 with DV profile 5 and profile 8.1 HLS streams: both select c2.qti.dv.decoder and render correctly.