-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 screenshots are unimplemented (gpu/gpu-next) #15107
Comments
Is your intent to take a screenshot that is itself HDR or just a (tonemapped) screenshot of HDR video? I'm assuming the former. I might be wrong but If you want to the latter: |
The intent is to obtain a HDR screenshot that matches what is seen on the screen, not a tone mapped screenshot. A JPEG XL screenshot that would activate EDR (with a viewer and a Mac that supports it). That is what is generated by I believe at some point that is what mpv was generating without |
This is a As a possible short term work around, we could fallback to sw screenshots if the VO does not support HDR screenshots. |
I have branch with refactored screenshot code in mpv to resolve some common issues. Though was too lazy to finish it. Maybe I will get back to it. In the meantime if someone wants to fix |
so to be clear the screenshot under
is perfectly fine? and RGB with a HDR colorspace is no problem? |
JXL converts everything to XYZ anyway, doesn't it? So that's just one less conversion step. |
I played the movie with
Took a screenshot and then displayed the screenshot:
I then took a picture of my MacBook Pro (XDR screen). The screenshot is on top. To my eyes the screenshot looks like the video: |
mpv Information
Other Information
Reproduction Steps
The version of IINA under development used to generate JPEG XL screenshots that used HDR color spaces. I recently tested it and found the screenshots looked muddy.
Running mpv on a Mac that supports EDR with
--vo=libmpv
and setting other options similar to what IINA does causes the video to be displayed with EDR enabled:Take a screenshot.
Use
jxlinfo
to inspect the resulting JPEG XL screenshot.Notice the screenshot uses sRGB.
Expected Behavior
A HDR screenshot would be generated.
Actual Behavior
The resulting JPEG XL screenshot:
From log file:
Adding
--screenshot-sw=yes
and repeating the test (looks better than this when viewed with a JPEG XL viewer):For completeness, with
gpu-next
:EDR is activated and the resulting screenshot is similar to
libmpv
withscreenshot-sw
, but slightly different:Log File
output.txt
Screenshots.zip
Sample Files
I used a downloaded copy of this YouTube video: The World in HDR in 4K (ULTRA HD)
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: