mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.57k stars 2.92k forks source link

HDR Wide gamut video get's incorrectly clipped to rec 709 on wide gamut monitor #9554

Open vertexgamer opened 2 years ago

vertexgamer commented 2 years ago

When playing a rec2020 hdr file, colors get clipped to rec 709 instead of fully using my monitor native gamut, so it looks like i'm viewing the content on an srgb monitor. Rec 709 content instead works perfectly and doesn't get over saturated. I'm running these commands: icc-profile-auto --audio-exclusive=yes

P.S. on hdr input, blacks also get crushed/cutted

haasn commented 2 years ago

Can you attach the ICC profile?

vertexgamer commented 2 years ago

Can you attach the ICC profile? MSI G271 #1 2021-08-16 01-49 0.3127x 0.329y 2.2 F-S XYZLUT+MTX.zip sure! here it is

vertexgamer commented 2 years ago

@haasn

i just tested mpv on another computer with an slightly wider than srgb monitor and a custom icc profile made with the shit spyderx software. Hdr/bt2020 colours looks good and no blacks are crushed. Could my issue be caused by the icc profile made with dysplaycal? Have you had any luck with the profile i sent you?

haasn commented 2 years ago

Sorry, I haven't looked at it yet. But the reason I asked for the ICC profile specifically is because I know it works on my end (with my ICC profile). So the only plausible conclusion is that the issue is somehow built into your ICC profile. Incidentally, mine is also generated by DisplayCAL. So either there's a regression in displaycal or you picked some weird settings that limit the input gamut?

haasn commented 2 years ago

Actually, can you attach the displaycal .log file?

vertexgamer commented 2 years ago

You mean the logs in C:\Users\Your Username\AppData\Roaming\DisplayCAL\logs ? I will send you all the logs made in 16/8. I made multiple profiles that day, the 01-49 is the one i'm currently using logs.zip MSI G271 #1 2021-08-16 01-49 0.3127x 0.329y 2.2 F-S XYZLUT+MTX.log

DisplayCAL.log

aufkrawall commented 2 years ago

I don't think you monitor is really wide gamut with just 86% DCI-P3. Your profile works in mpv with HDR content and does slightly desaturate: on

off

I've noticed there is also very little desaturation with Rec709 content with your profile, which might be odd for a 86% DCI-P3 device.

May I ask why you set black output offset to 0% in calibration settings? I suppose this prevents BT.1886 gamma boosting? I'd probably try that out then.

Edit: Ok, the "Video (D65, Rec. 1886)" preset does that.

vertexgamer commented 2 years ago

I don't think you monitor is really wide gamut with just 86% DCI-P3. Your profile works in mpv with HDR content and does slightly desaturate: on

off

I've noticed there is also very little desaturation with Rec709 content with your profile, which might be odd for a 86% DCI-P3 device.

May I ask why you set black output offset to 0% in calibration settings? I suppose this prevents BT.1886 gamma boosting? I'd probably try that out then.

Edit: Ok, the "Video (D65, Rec. 1886)" preset does that.

red

aufkrawall commented 2 years ago

Is it dci-p3 or display-p3?? Because dci-p3 primaries are not something you can ever find on any consumer device, only in cinema Xenon projector.

You are technically correct, though DisplayCal refers to DCI-P3 when it comes to information about gamut coverage/volume.

I btw. did some tests and clamped gamut to rec709 scores just ~70% DCI-P3. Anyway, mpv seems to correct colors as intended here (also with a new Display-P3 ;) device I got in the meantime).