MediaCodec: VP9 Profile 2 HDR does not play in HDR / fails with HW decoding
Description
VLC for android seems to have a Problem playing VP9 HDR content correctly
Expected behavior
The video opens and plays the content in HDR mode. Hardware decoding is used if available, software otherwise.
Actual behavior
The video opens (with HW decode disabled) and plays back in SDR. Hardware decoding is automatically chosen, but either not capable of decoding the content or has a flaw in the implementation.
Steps to reproduce
- Download the sample below
- Play it in some Gallery app (I've tested "OnePlus Gallery" and "Files by Google" for example), UI elements fade in color: HDR is playing correctly
- Play file in VLC with Hardware acceleration set to anything besides disabled: Weird artifacts, if you can still call seeing basically nothing and a lot of stutter artifacts (might be device dependent)
- Play file in VLC with Hardware acceleration disabled: Plays fine, but doesn't activate HDR (UI does not fade, content does not look like HDR)
Screenshot / video
Sample Video: https://storage.googleapis.com/media.webmproject.org/devsite/vp9/output/hdr/HDR_strobe_scientist_18Mbps.mkv
Screenshots impossible, because you can't see HDR on them.
Context
App version
3.3.4
Android version
10
Device model
OnePlus 7T (HD1903)
VP9 Profile 2 decoding seems to be available.
App mode
Smartphone
Edited by Thomas Guillem