View Issue Details

IDProjectCategoryView StatusLast Update
0000656madVRbugpublic2021-01-13 13:16
Reporterfoobar Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionnot fixable 
Platformx64OSWindowsOS Version10
Summary0000656: HDR not rendering mid tones on some files
DescriptionI've been trying to get HDR to work properly and I have been testing with two files.

The problem is that when one of the videos is playing in HDR mode, everything in the mid tones gets crushed, so that the video picture is way too dark. All white tones are very bright, so I know HDR is kicking in. The other HDR test video is completely fine. I can also see from MPC-HC UI with the video where HDR bugs out that the brightness isn't being adjusted. With the video that's working the UI turns into gray but with the video that's not working it stays the same.

Video that doesn't work:
```
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 51 min 8 s
Bit rate : 14.4 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.073
Stream size : 5.16 GiB (95%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primar : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Le : 296 cd/m2
```

Video that does work:
```
Video
ID : 1
ID in the original source medi : 4113 (0x1011)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 7 min 45 s
Bit rate : 77.5 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.390
Stream size : 4.20 GiB (96%)
Language : English
Default : No
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primar : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 10000 cd/m2
Maximum Content Light Level : 10000 cd/m2
Maximum Frame-Average Light Le : 1676 cd/m2
Original source medium : Blu-ray
```

I have set MadVR to pass HDR to the display.
Additional InformationI'm not sure if this is a bug or something that's fixable with settings.
TagsNo tags attached.
madVR Version0.92.17
Media Player (with version info)MPC-HC 1.9.2
Splitter (with version info)No idea :/
Decoder (with version info)No idea :/
DecodingDXVA2 Native
Deinterlacingauto mode
DXVA2 Scaling Activeyes
Aero / Desktop CompositionOn
Problem occurs with modeall modes
GPU ManufacturerIntel
GPU ModelIris Plus
GPU Driver Version27.20.100.9126

Activities

madshi

2021-01-12 10:45

administrator   ~0002764

Try adding "hdr=on" to the video file name where HDR doesn't work. Does that help?

foobar

2021-01-12 14:16

reporter   ~0002765

Unfortunately no. It does turn on HDR automatically, but there is something that turns the image way too dark. I just played around with the settings and I turned off Windows HDR and set MadVR to tone map with pixel shaders. The resulting image is still slightly dark but now you can actually see some darker details.

It's almost like with Windows HDR and passthrough it uses some different levels curve/color profile with this particular file that crushes all the darker tones.

madshi

2021-01-12 18:30

administrator   ~0002766

Are you sure that it's really a playback problem? Do you have any other source device which is able to play this file? Many TVs have trouble with HDR and render some HDR movies much too dark. So it could just be the way your display handles this specific movie?

foobar

2021-01-13 07:28

reporter   ~0002767

Tbh, I'm not sure where the problem is as I can see from the high brightness of whites that HDR is on, but the display isn't reacting like it does usually. This might very well be a display problem, but unfortunately I don't have another HDR device, so testing is hard.

Is there anything in MadVR that could potentially help with issues like this where the display itself is problematic?

foobar

2021-01-13 08:18

reporter   ~0002768

I just found out the setting causing this. In Windows' HDR settings there is a slider called "SDR content appearance" which affects the relative brightness between SDR and HDR. If I have this slider at 0%, the too dark video becomes watchable, however the whites are REALLY bright as expected. However, with the other video I mentioned, 0% "over-exposures" the image to unwatchable levels. At 50% the other video looks perfect.

madshi

2021-01-13 09:04

administrator   ~0002769

The OS HDR slider is seriously evil. Which is why I strongly recommend not using it. Sadly, for Intel users it's the only way to send HDR to the display. AMD and Nvidia users can bypass the OS HDR switch and still send HDR.

So both videos look good at 50%?

foobar

2021-01-13 13:15

reporter   ~0002770

Unfortunately no. 0% works for the video that was too dark but seriously over-exposures the other one. 50% fixes the over-exposure on the other video but the too dark video becomes too dark again. I guess there is no good solution to this from MadVR's side, but at least now I know what to tweak when this happens.

Thanks for your help!

Issue History

Date Modified Username Field Change
2021-01-12 07:45 foobar New Issue
2021-01-12 10:45 madshi Note Added: 0002764
2021-01-12 14:16 foobar Note Added: 0002765
2021-01-12 18:30 madshi Note Added: 0002766
2021-01-13 07:28 foobar Note Added: 0002767
2021-01-13 08:18 foobar Note Added: 0002768
2021-01-13 09:04 madshi Note Added: 0002769
2021-01-13 13:15 foobar Note Added: 0002770
2021-01-13 13:16 foobar Status new => closed
2021-01-13 13:16 foobar Resolution open => not fixable