mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.81k stars 2.93k forks source link

Add HDR passthrough support to gpu-context=drm #8219

Closed LaserEyess closed 3 weeks ago

LaserEyess commented 4 years ago

Expected behavior of the wanted feature

HDR passthrough while using --gpu-context=drm.

Alternative behavior of the wanted feature

Tonemapping is all that's available on linux right now.

Log file

N/A, mpv only supports HDR passthrough on windows

This feature request is hopefully self explanatory. Since linux 5.4 HDR metadata has been supported in DRM, and it is possible to set this metadata and send it directly to the display. This functionality already exists on windows so hopefully it can be extended to DRM. I know that (currently) wayland and Xorg do not have any support for HDR passthrough, so this issue is not about full HDR support on linux, just for DRM.

Kodi currently has support for this, and it is used on a lot of *elec distros for HTPCs. See this PR: https://github.com/xbmc/xbmc/pull/16103

laichiaheng commented 3 years ago

So we can passthrough HDR in KODI on Linux now?

laichiaheng commented 3 years ago

It's a big big big news!

LaserEyess commented 3 years ago

If by "now" you mean "over a year ago", yes. But only if you're using the DRM backend.

laichiaheng commented 3 years ago

If by "now" you mean "over a year ago", yes. But only if you're using the DRM backend.

How to do that?

LaserEyess commented 3 years ago

I don't know I've never used Kodi. This is mpv's issue tracker though, so probably not the best place to ask.