Kodi Community Forum
Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? (/showthread.php?tid=371952)

Pages: 1 2 3 4


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - wsnipex - 2023-02-19

As for why we don't use GLES for the PPA: historically GL was (much) better supported and had some features GLES didn't. This has changed by now and I actually do consider changing the PPA to GLES.
If we do that it will be nightlies (=v21) first for a while, so it gets some sufficient testing.


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - fritsch - 2023-02-19

GL supports PBOs, supports YUV scaling and GL 4.x shaders for efficient lookup and scaling -> 720p to 4k upscaling use-case
GLES supports both not
GLES supports 8 bit visuals with the HDR knob if GLES is in use, which it is to my knowledge for every desktop (x64) render chain.

So - if we want the 8 bit HDR light is enabled effect for e.g. intel with vaapi, which is the only desktop hwaccel working for GBM, we can add the HDR hack into GL as well. Would be great though to properly run the output in e.g. 12 bit (which intel is doing under the hood anyways) with modern smartphones and properly updither for 8 bit content until we can properly switch the output formats (GL visuals and mode)

Other than that: There is currently no "mainline ARM" chip that we really support where the entire HDR chain would properly work.

If my understanding is wrong for intel + vaapi via GBM - I kindly ask for correction with technical explanation.


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - FernetMenta - 2023-02-19

Pretending HDR by passthing through metadata and setting HDR colorspace at the TV but outputting tonemapped 8 bit for legacy 8 bit colorspace is nonsense and worse than having no HDR at all.


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - fritsch - 2023-02-19

Yeah :-). I wanted to "hint" that a bit more indirectly. But your summary matches, yes.


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - tnttrx - 2023-12-30

Any progress with this topic so far?


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - tnttrx - 2023-12-31

Following instructions found here, I have re-compiled my Kodi 20.2 with "gbm" and "gles" flags. In Gentoo that was not too tricky.
Started Kodi from the second console, and it worked. At that moment I realized I need to give my user 'input' permission.

When I started Kodi for the second time, I was able to use it.
HDR passthrough did not work immediately, but only after I instructed Kodi to change output framerate to match movie's FPS.
At that moment real HDR kicked.

So, we could call it success, but... Playback was very very choppy.
I have checked CPU usage, and it was less then 20%. 

Anyways, good start for the first test.
Cheers!


RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - htpcero - 2024-01-04

@wsnipex does your latest build still support GLES?   https://launchpad.net/~wsnipex/+archive/ubuntu/kodi-git

Was the team-kodi nightly build also switched to GLES?

Also, any chance of adding Mantic/23.10 to your build target list? My hardware is relatively new (alderlake-n, N100) and older distros/kernels were unfortunately not stable and I had not choice but to use 23.10. This setup uses GBM, I manually installed the official team-kodi PPA packages for Kinetic (the latest full-set set I could find at the time). It works very well but for the reasons explained earlier in this thread, it misses out on HDR