Skip to content
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 videos not playing in HDR with HDR monitor - Fedora KDE #15685

Open
6 tasks done
BluesDriveAmelia opened this issue Jan 13, 2025 · 8 comments
Open
6 tasks done

HDR videos not playing in HDR with HDR monitor - Fedora KDE #15685

BluesDriveAmelia opened this issue Jan 13, 2025 · 8 comments
Labels

Comments

@BluesDriveAmelia
Copy link

BluesDriveAmelia commented Jan 13, 2025

mpv Information

mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.0.2
FFmpeg library versions:
   libavcodec      61.3.100
   libavdevice     61.1.100
   libavfilter     10.1.100
   libavformat     61.1.100
   libavutil       59.8.100
   libswresample   5.1.100
   libswscale      8.1.100

Other Information

- Linux version: Fedora Linux 41 (KDE Plasma)
- Kernel Version: 6.12.8-200.fc41.x86_64
- GPU Model: AMD RX 6800 XT
- Mesa/GPU Driver Version: Mesa 24.3.2
- Window Manager and Version: Wayland
- Source of mpv: Fedora Linux (Discover)
- Monitor: AOC Q27G3XMN

HDR seems to be not functioning or activating, I don't exactly understand what is happening. HDR is enabled in system settings and in my monitor's settings. Brightness does not change and the picture is dark. I tried a variety of different configurations to get it to work (different target peaks, colormatrixs, filters, etc in my config) but no dice. vo=gpu-next makes the colors washed out (and also doesn't work). Under info it says "HDR10: Display: 0 / 1100" so my guess is the brightness data is just not being sent or accepted? Image of my info - https://i.ibb.co/cvc9LYq/Screenshot-20250112-200553.png

Reproduction Steps

Open an HDR video file with MPV

Expected Behavior

Colors to look legible and for the physical brightness of the monitor to vary based on the video

Actual Behavior

Video is overly dark and there are no brightness changes that occur

Log File

output.txt

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@llyyr
Copy link
Contributor

llyyr commented Jan 13, 2025

You need either /~https://github.com/Zamundaaa/VK_hdr_layer or https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31991 for HDR metadata to be correctly passed through with gpu/gpu-next. I think the former ships with KDE(?), so you should in theory only need to set ENABLE_HDR_WSI=1.

Otherwise, you can use vo=dmabuf-wayland but keep in mind this is a lower quality vo.

@BluesDriveAmelia
Copy link
Author

"VK_HDR_LAYER" was not installed by default but that + "ENABLE_HDR_WSI=1" didn't change anything. "vo=dmabuf-wayland" also did not change anything.

@NotMithical
Copy link

From your log file it looks like your HDR auto profile sets target-trc=gamma2.2, which is for SDR output.

@BluesDriveAmelia
Copy link
Author

I'll keep that in mind but I get the same issue with no config and when I've tried changing that option in the past

@llyyr
Copy link
Contributor

llyyr commented Jan 13, 2025

"VK_HDR_LAYER" was not installed by default but that + "ENABLE_HDR_WSI=1" didn't change anything.

Can you upload a log file of this? If everything worked correctly, mpv should see VK_EXT_hdr_metadata and use it given that you set --target-colorspace-hint

"vo=dmabuf-wayland" also did not change anything.

Sorry, this is only available on master, not in a tagged release yet.

@BluesDriveAmelia
Copy link
Author

This is with having set "ENABLE_HDR_WSI=1" in the "Environment Variables" field in the proprieties for MPV.desktop. I also prepended the command I ran with it to make sure it was applying.
output.txt

@llyyr
Copy link
Contributor

llyyr commented Jan 13, 2025

Everything looks fine in that log besides:

[   0.768][v][cplayer] Setting option 'video-output-levels' = 'full' (flags = 4)
[   0.768][v][cplayer] Setting option 'vf' = 'format=colorlevels=full:primaries=dci-p3:colormatrix=bt.2020-cl:light=709-1886:gamma=gamma2.2' (flags = 4)

Remove these options, I don't know where you cargoculted them from but they aren't right. Also use vo=gpu-next

@BluesDriveAmelia
Copy link
Author

I tried following this - /~https://github.com/mpv-player/mpv/wiki/FAQ#user-content-HDR_doesnt_work_on_my_monitor. I commented those bits out and used vo=gpu-next (which still completely washes out the colors and makes the image way too bright). It seems like the format line is still applying though, though I don't really know how to read the log file. Still doesn't work.

output.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants