-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hdr tonemapping: target-contrast and peak affects saturation with trc=bt.1886 and srgb, breaks the image in dark scenes (saturation, contrast, brightness) #15340
Comments
Likely duplicate of #12707 you can try with |
This doesn't fix it, this messes up the contrast or black levels |
It seems like I would need to disable this "feature" that desatures the image
"shaders/colorspace: scale down saturation when raising brightness"
How to patch this out? I have no experience with this... |
@haasn My suggestion would be to add an percantage option to this function, so you can turn it on, off or fine-tune it to your liking. is this the code responsible for this?
|
Hey @geextahslex .... Wouldn't it be the same to set target-peak = 1000 ? So what you want is the Brightness of the HDR picture, but you do NOT want the washed out colors, mhh? Did you try out the spline tone-mapping instead of st2094 ? It really works out as the best i think. The algorithm makes really sense. |
I found this out by accident, and kasper gave me this line to fix it.
From my understanding no, because target-peak is kinda your output target and the metadata nits is the input to the pipeline. You can see it at the top in these screenshots.
Yes, I dont want the desaturation effect.
At this point I tried out everything, spline, hable, rainhard etc. For me st2094-10 works kinda the best. |
So after further testing I noticed that this behaviour only occurs when you set the |
So after further testing I ended up using hdr-toys for all of the "color space" stuff (gamut-mapping and transfer function) and mpv only does the tone-mapping with 2094-10. On a SDR TV this gives you the best result. No clipped highlights, no crushed blacks, no washed out colors. Also good performance on crappy hardware :)
|
@geextahslex I always get a lot of brightness fluctuation when trying HDR Toys. With this mix do you manage to get stable brightness? I'm also shooting for 100 nits output. |
what do you mean by "brightness fluctuation"? Yes this setup above should work, it is stable to me. |
Thanks. It's when the brightness keeps changing within the same scene, and you see it "pumping" in the background of the image. However, with your solution you leave MPV to take care of the tone-mapping. This can be a good choice. I will test it later. |
Okay, so with hdr-toys it works nice. |
mpv Information
Other Information
Reproduction Steps
With
target-trc=bt.1886
andtarget-prim=bt.709
when you set
target-contrast=1000
andtarget-peak=auto
the image gets almost black and white in a dark scene. When you changetarget-peak
to10
then you get the colors back.Expected Behavior
saturation stays the same
Actual Behavior
dark scenes get desaturated and look washed out
Log File
full output
output full.txt
gpu-debug
output.txt
Sample Files
almost black and white
normal
washed out
normal
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: