Skip to content

Play Dolby Vision Profile 7 in HW+ and SW - #244

Merged
anilbeesetti merged 1 commit into
mainfrom
fix/dolby-vision-profile7-playback
Nov 26, 2026
Merged

anilbeesetti merged 1 commit into
mainfrom
fix/dolby-vision-profile7-playback

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

Summary

HDR10-compatible Dolby Vision Profile 7 videos could fail in HW+ and SW. In the FFmpeg reader, laced TrueHD packets without individual timestamps could also be dropped, stalling playback after it started.

HW+ → FFmpeg reader → HDR10 base layer → Android HEVC decoder
SW  → FFmpeg HEVC decoder → SDR tone mapping

The reader reconstructs timestamps for laced TrueHD access units from the block timestamp and sample rate. SW caps PQ Surface output at 1280 pixels on the long edge to keep tone mapping fast enough for playback.

Evidence

  • The laced TrueHD regression delivered 3 of 360 access units before the fix and all 360 afterward.
  • The native video suite, NextLib unit tests, and 13 targeted Android tests passed on a Pixel 6a emulator running Android 15 (API 35). The tests cover HDR10 extraction, SW rendering from the standard reader, and TrueHD packet timing.
  • The original 4K Dune MKV advanced past the previous stall on an OPPO CPH2689 running Android 16 (API 36), in both HW+ and SW. The decoder logs confirmed hardware HEVC in HW+ and FFmpeg HEVC in SW.
  • Next Player's debug build and player unit tests passed with the local NextLib build.

Merge Danger

The change is reversible. It affects NextLib's FFmpeg reader and software video renderer. Large PQ videos use reduced-resolution SDR output in SW.

Created with GPT-6.2 in Codex through T3 Code.

Expose the HDR10-compatible HEVC base layer and tone map software Surface output. Reconstruct timestamps for laced TrueHD access units so they reach the decoder and keep playback advancing.
@anilbeesetti
anilbeesetti merged commit 809ee3d into main Nov 26, 2026
1 check passed
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