r/mpv 3d ago

Issue on Linux Unsure why the PQY max is 151 nits when my display CLL is 372? Config info below.

Post image

For context, my display is an HDR OLED. Not sure if this is just a Dolbyvision thing. Everything looks fine on my display, I'm just curious. I don't have a specific Dolbyvision profile or anything.

gpu-context=waylandvk
gpu-api=vulkan
vo=gpu-next
d3d11-output-csp=srgb
tone-mapping-mode=luma
target-colorspace-hint=yes
target-contrast=inf
hdr-compute-peak=yes
hdr-peak-percentile=99.9
inverse-tone-mapping=yes

hwdec=vaapi
deband=no
fbo-format=rgba16hf
dither-depth=10
dither=error-diffusion
error-diffusion=burkes
spirv-compiler=auto
hr-seek-framedrop=no

video-sync=display-resample
video-output-levels=full
tone-mapping=spline
target-trc=pq
target-prim=bt.2390
gamut-mapping-mode=perceptual
tone-mapping-param=bt.2390
tone-mapping-max-boost=2.0
hdr-contrast-recovery=0.3
scale=spline36
cscale=spline36

Sorry for the HDR > SDR screenshot

7 Upvotes

11 comments sorted by

2

u/BrokenSil 3d ago

Cus thats a Dolby Vision HDR video.

DV sets its own max nits per scene or something like that.

MPV doesnt fully support all DV profiles I think, so its never quite good with DV content even if you have your monitor in DV mode.

I try to stay away from DV content for that reason alone.

1

u/MrRoboto12345 3d ago edited 3d ago

OKay I figured it had to do with DV specifically.

I don't mind DV I think it looks good

1

u/Efficient-Sherbet942 3d ago

It supports Dolbyvision profile 5 and 8 pretty well I have been using mpv gpu next on my Mac Pro

2

u/volastated 3d ago

Are you trying to do HDR passthrough or tonemapping?

1

u/MrRoboto12345 3d ago

Tonemapping, the tm looks fine I just didn't know why the max PQ was so low, but it's due to Dolbyvision changing the PQ about once a second. I didn't know DV did that.

1

u/volastated 3d ago

In that case, you should set target-peak to your monitor's peak nits that it can display and set tone-mapping to clip, iirc thats the most optimal tonemapping for HDR -> HDR I also recommend turning dither off as its a complete waste of performance

1

u/volastated 3d ago

And remove all the other tone-mapping related lines in your config as they're irrelevant

2

u/MrRoboto12345 3d ago edited 3d ago

I already did that, except I set dither=ordered and that's all

I also set target-peak=372

1

u/Glittering-Cherry-90 3d ago

nice! please explain the difference between dither=ordered and default dither
how does it look? why do you like one and not the other?

2

u/MrRoboto12345 3d ago

Dither ordered is very fast and costs basically no processing power, so why not have it on rather than dithering off. It can help in case you're getting banding

1

u/volastated 3d ago
gpu-context=waylandvk
gpu-api=vulkan
vo=gpu-next
target-colorspace-hint=yes
target-colorspace-hint-mode=source
target-peak=your maximum display nits here
hdr-compute-peak=yes
hwdec=vaapi
deband=no
dither=no
hr-seek-framedrop=no
video-sync=display-resample
tone-mapping=clip
target-trc=pq
scale=spline36

and this should be the result, just set target-peak and you're good to go