Shouldn't MPV linearize "BT.1886" using BT.2035 parameters? #17341
goeiecool9999
started this conversation in
General
Replies: 1 comment 3 replies
-
|
Yes, there is room for improvement here. Using gamma2.4 is not really feasible for most of viewing environments. However currently we should be getting rough estimate of contrast from the display, at least for HDR output, where this matters.
This should work, what is your output? If it's not PQ transfer, those parameters may have little impact as it would mostly round trip back on output. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When viewing SDR "BT. 1886"[1] content MPV treats the content as if their black level is 0.203 nits and white level is 203 nits[2]. I can see that the 203 nits figure is derived from section 5.1.1 in BT.2408 describing how to incorporate SDR content into HDR content. However BT.2408 also says to assume perfect blacks and just use pure gamma 2.4, so using a 1000:1 contrast ratio BT.1886 curve with a peak of 203 nits does not follow the report practices exactly. Regardless I think that neither a pure 2.4 gamma nor a 1000:1 contrast ratio BT. 1886 curve is optimal for linearizing "BT.1886". Ideally MPV would linearize BT.1886 using a 10.000:1 contrast ratio, as described in BT.2035. The way MPV is currently there seems to be no way to get it to do this. I tried setting vf to format=min-luma=0.01:max-luma=100 but that didn't seem to affect the output at all. It didn't even dim the content. I could only get the output to change when max-luma went over 203 and I have no idea if min-luma ever did anything.
To further illustrate my point I have plotted the different display curves on a logarithmic scale. I cut it off at x = 1/255 so you can get an idea for the max error at the lowest 8-bit color value for the pure gamma curve

red = BT.1886 1000:1
green = BT.1886 10.000:1 (BT.2035)
blue = gamma 2.4 with perfect blacks.
Black = 1000:1 Gamma 2.2
Without the option to change the assumed contrast ratio and peak of SDR content it is impossible to get MPV to tone map the green curve onto the black curve, which would be ideal for a gamma 2.2 computer monitor trying to view content mastered for BT. 2035.
Am I onto something here? I welcome your input.
[1] in scare quotes because BT. 1886 doesn't define the EOTF's parameters
[2] I found this out with watchpoints in GDB because I find libplacebo hard to comprehend because I'm not used to reading C source code. I may be wrong about this.
Beta Was this translation helpful? Give feedback.
All reactions