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) |
RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - ryback - 2023-02-12 (2023-02-12, 14:50)graysky Wrote: How are you detecting that the HDR is not triggered? When I play the movie and press info button on my TV remote the TV will list the info of it's current output. When running ppa build (w/ GBM) and playing a HDR movie the output is listed as "3840 x 2160p 4K 16:9 Dolby Atmos - TrueHD". Same movie played with kodi (nexus) build from source with GLES/GBM, and the info bar is displayed as "3840 x 2160p 4K 16:9 HDR (HDR10) Dolby Atmos - TrueHD" Also you can immediatly notice the much higher peak brightness setting that gets applied with HDR content. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - graysky - 2023-02-12 I have a samsung TV. I will look for the info you discussed. Can you share your "hacked" modification to LinuxRendererGL.cpp as well? I wonder if this is a legit bug? RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - graysky - 2023-02-12 So the info button on my Samsung produces this output which does not change when playing a video or sitting on the Kodi GUI. I compiled a fresh package with -DAPP_RENDER_SYSTEM=gles for this test.Code: 3840x2160 / 60p Input Signal Plus RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - oldtvwatcher - 2023-02-12 (2023-02-12, 07:24)yasij Wrote: Is our goal to get HDR passthrough to work to an HDR capable display, or to just get HDR videos to display without being washed out? If it's the latter, turn on tone mapping in the video settings for the HDR video. Kodi 20 has a few different tone mapping options. Hable is pretty good. Well we tried that tone mapping and that is not all all like having real HDR passthrough, it is better then without it but nowhere near real HDR. Neither he nor I are coders and when I look at that page you linked to, it says "This guide has been tested with Ubuntu 16.04.4 (Xenial) x86_64, 18.04 (Bionic) and 20.04 (Focal)." But he is running Ubuntu 22.04 and anyway those instructions make no sense to him or I, it looks like they were written for coders. Are there any simplified instructions that apply specifically to Ubuntu 22.04, or better yet, a shell script you can run that will build a version of Kodi Nexus with the GLES backend included? RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - oldtvwatcher - 2023-02-12 (2023-02-12, 15:41)ryback Wrote:(2023-02-12, 14:50)graysky Wrote: How are you detecting that the HDR is not triggered? Is there any chance you could post some kind of guide on how you made it work? It would be much appreciated! RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - oldtvwatcher - 2023-02-12 (2023-02-12, 12:53)ryback Wrote: No idea why GL renderer (LinuxRendererGL.cpp) doesn't include the same HDR passthrough as GLES (LinuxRendererGLES.cpp) does. I actually wish that someone who can figure out how would submit this as an issue, especially if that would make standard Kodi support HDR passthrough. As I see it, the real issue here is that the version of Kodi you get from the repository doesn't support HDR passthrough, and while those experienced in coding can (maybe) build a version that will work, it requires skills beyond those of the average user. And please don't assume that all Linux users are coders; even old people like me can install and use Linux nowadays but that doesn't mean we know the first thing about coding. Anyway I thought about submitting an issue to the bug tracker but suffice it to say that's not a user friendly thing at all. You have to create a GitHub account (why) and then they want a bunch of information and then you find out that you can't post anyway because your brand new account has been flagged for some reason. So I give up on that, but if anyone knows how to get the developers to add that missing code it would be much appreciated, even though it won't help in the short term. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - sarbes - 2023-02-12 Coder or not, you will need to do some serious legwork to get Kodi on GBM running on a desktop system. You need to compile in GLES support if the distro isn't offering it. And you need to do some serious scripting to launch Kodi. That's something I would avoid, even as a coder. The limitation to GLES is because embedded platforms were the first with HDR support. Desktop systems followed later. GL support is low priority, as GLES is functionally the same as far as I know. HDR is not possible on X (this wont change as far as I see), and Wayland is "not there yet". Kodi is amongst the few pieces of software that can present an HDR image by avoiding both systems. Even worse for Wayland, applications are not allowed to manipulate the refresh rate (AFAIK). So framerate switching support is uncertain. Additionally, only on GBM is it possible for Kodi to make use of the hardware compositor. I don't understand the reluctance against LE. It makes very little difference having to choose between Kodi and the desktop at startup or at login. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - sarbes - 2023-02-13 (2023-02-13, 00:55)jawilljr Wrote: Yes it can be done.Sigh. Were did I wrote that it can't be done? You can always hack around, but that's not something you do if you want your application to be packaged by distributions. See https://github.com/xbmc/xbmc/issues/20614. But please, stop with the OT. I want to reiterate that setting up a lasting solution using GBM is not trivial. Have you even considered a dual boot solution? RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - oldtvwatcher - 2023-02-13 (2023-02-13, 01:58)jepsizofye Wrote: i will add you to my list of people not to help here.THANK YOU!!! (See, I did finally thank you for something!) RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - oldtvwatcher - 2023-02-13 (2023-02-13, 02:17)sarbes Wrote: I want to reiterate that setting up a lasting solution using GBM is not trivial. Have you even considered a dual boot solution? You weren't replying to me but I would like to hear more about that, if you care to elaborate. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - fritsch - 2023-02-13 For the discussion GLES vs. GL. Yes only the GLES implementation sets the SetHDR of the TV. Keep in mind when you hack that in: also the srcPrimaries need changing, as we obviously want to send BT2020 like primaries to the TV and not BT709 done from EGL. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - sarbes - 2023-02-13 (2023-02-13, 02:45)oldtvwatcher Wrote:(2023-02-13, 02:17)sarbes Wrote: I want to reiterate that setting up a lasting solution using GBM is not trivial. Have you even considered a dual boot solution? I was replying to you. It is just a bit "noisy" in here, due to the amount of offtopic. I do have both Windows and Linux installed. The bootloader allows me to select between them at boot. This can be done with LE as well. Install it on a separate drive (a 64gb SSD should suffice) and and configure the bootloader of the Ubuntu drive. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - graysky - 2023-02-13 There is a bit of off topic stuff in here. Is this a summary of the salient points? * Only kodi-gbm is capable of displaying HDR out-of-the-box * For HDR content to be display by kodi-gbm, it must be compiled it with GLES rendering RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - oldtvwatcher - 2023-02-14 Well I have been reading everything in this thread and my head is kind of spinning, but my understanding is it is the desktop that is the problem, and also as I understand it you have to compile kodi-gbm with GLES rendering. So, let's say you started with Ubuntu 22.04 server, which has no desktop and presumably no Xorg. How difficult would it be to compile kodi-gbm on that? Just for grins I asked GhatGPT and it actually gave me an answer, of course chances are it's an incorrect answer. I asked: Quote:I have been reading the thread at https://forum.kodi.tv/showthread.php?tid=371952 and I would like to know how to how to compile kodi-gbm with GLES rendering on Ubuntu 22.04 server. I am not a Linux expert so I need the entire process explained step by step.And it replied as follows: Quote:Compiling Kodi with GLES rendering on Ubuntu 22.04 server can be a complex process and requires some basic knowledge of using the terminal and installing dependencies. Here is a step by step guide to help you get started:Of course I am curious about whether this would actually work, but don't have time to test it tonight. One thing I wondered about was where it said cmake -D ENABLE_GLES=ON .. - I didn't know what the .. meant so I asked Quote:In the line "cmake -D ENABLE_GLES=ON .." what do the .. characters at the end mean?And ChatGPT replied: Quote:The ".." characters at the end of the cmake -D ENABLE_GLES=ON .. line in the previous response indicate that you are running the cmake command from the build directory and want to configure the build using the files located in the parent directory of the build directory.It is interesting that you can ask questions like that and get responses with that level of detail, I am just wondering now if it's actually a valid response! Anyway I just thought that was interesting enough to share, and see if anyone feels like commenting one way or another. RE: Is there a tutorial that shows how to get HDR working with Ubuntu 22.04/Xorg/Nexus? - fritsch - 2023-02-14 The answer is correct. What that guy is obviously not knowing is what ENABLE_GLES actually does. The rest is just a bit of AI suger stating the obvious emphasizing on the two "dots". While a human a technical expert has a semantic meaning for "GLES", ChatGPT did not have. In general: Yes, ChatGPT can replace a whole lot of hot-air-pump people out there :-) |