View Issue Details

IDProjectCategoryView StatusLast Update
0000655madVRbugpublic2022-06-03 12:21
Reporterhuhn Assigned Tomadshi  
Status assignedResolutionreopened 
Platformx64OSwin 10OS Version19041
Summary0000655: madVR trys to use HDR with HLG metadata
Descriptionthe internal mpc-be filter send HDR HLG metadata to madVR and madVR actually try to use it as HDR10:

dwInterlaceFlags: 0x00000081
dwCopyProtectFlags: 0x00000000
dwPictAspectRatioX: 16
dwPictAspectRatioY: 9
dwControlFlags: 0x82422581
- VideoChromaSubsampling: 5 (MPEG-2)
- NominalRange : 2 (16-235)
- VideoTransferMatrix : 4 (BT.2020)
- VideoLighting : 0
- VideoPrimaries : 9 (BT.2020)
- VideoTransferFunction : 16 (ARIB STD-B67 (HLG))
dwReserved2: 0x00000000

the result is a very very bright image which i highly doubt is correct.
Steps To Reproduceplay an HLG file with MPC-BE internal filter.
done that'S all it will even trigger HDR->SDR conversation.
Additional Informationi currently have the stable 0.92.17 but there are reports of 114 with the same "issue".
TagsNo tags attached.
madVR Version92.17 with madvrhdrmeasure159
Media Player (with version info)mpc-be
Splitter (with version info)
Decoder (with version info)
DecodingDXVA2 Native
Deinterlacingnone (progressive)
DXVA2 Scaling Activeyes
Aero / Desktop CompositionOn
Problem occurs with modeall modes
GPU ManufacturerNVidia
GPU Model1650
GPU Driver Version2020.12.1



2020-12-26 00:08

administrator   ~0002762

Should be fixed in the latest test builds (see AVSForum).


2020-12-26 00:45

reporter   ~0002763

fixed thanks.

if you didn't notice mpc-be mpcVR added HLG to HDR10 with great success:

i will inform nev that your renderer now excepts HLG metadata correctly so he doesn't have to block it for madVR anymore.


2022-06-03 03:22

reporter   ~0002908

Issue: MadVR plays HLG files by converting it to an SDR image meant for 100 nits (I assume)

Desired behaviour: Tonemap HLG to display with consideration of target peak nits

My display is a 500 nit SDR OLED DCI P3 (XPS 7590), and PQ tonemaps beautifully to give an HDR effect with 500 nits target.
The HLG tonemapping is overly bright for 500 nits, and there is a lack of HDR pop and contrast. (I compared with an iPhone X. madVR PQ matches iPhone X in terms of brightness).

I also compared madVR with mpv (target 500 nits) on the same display. With PQ, madVR matches mpv. However, in HLG madVR is overly bright while mpv matches the iPhone X.

Therefore I assume the HLG tonemapping is targetting a peak brightness of 100 nits.


2022-06-03 12:21

reporter   ~0002909

HLG in madVR is not tonemapped at all. madVR uses the official fallback of HLG where the image is taken as is and instead of hlg gamma is used without any math. if you like to say it's for "120 nits".

it looks bad but is working as intended to the HLG spec.
the bug report here is about something different that was related to meta data with was used for something different in the past and now for HLG and madVR wasn't updated to the new correct meta data so was doing weird things.

Issue History

Date Modified Username Field Change
2020-12-10 18:26 huhn New Issue
2020-12-14 09:17 madshi Assigned To => madshi
2020-12-14 09:17 madshi Status new => assigned
2020-12-26 00:08 madshi Note Added: 0002762
2020-12-26 00:08 madshi Status assigned => resolved
2020-12-26 00:08 madshi Resolution open => fixed
2020-12-26 00:45 huhn Note Added: 0002763
2020-12-26 00:45 huhn Status resolved => closed
2022-06-03 03:22 metamerism Status closed => feedback
2022-06-03 03:22 metamerism Resolution fixed => reopened
2022-06-03 03:22 metamerism madVR Version 92.17 => 92.17 with madvrhdrmeasure159
2022-06-03 03:22 metamerism GPU Manufacturer AMD => NVidia
2022-06-03 03:22 metamerism GPU Model 5700 XT => 1650
2022-06-03 03:22 metamerism Note Added: 0002908
2022-06-03 12:21 huhn Note Added: 0002909
2022-06-03 12:21 huhn Status feedback => assigned