-
Notifications
You must be signed in to change notification settings - Fork 26
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 shown in GUI but not working (flatpak currently built with GL renderer) #248
Comments
There is |
Thanks @razzeee , rebuilding the flatpak with GLES enabled. Recipe:
|
The flatpak rebuild with GLES enabled worked - the flatpak is now able to play all the test videos in my samsung TV (HDR10/HDR10+/HLG capable). For the first time ever I can see the TV switching to HDR mode and proper display of colors. I could test this with multiple clips and content. Not sure why but HDR10+ content seems to work, at least it triggers HDR mode in the TV and the color saturation/contrast looks good. I read that kodi/ffmpeg is does not yet support dynamic hdr metadata so not sure why this seems to work. Tested this build quite extensively with normal 'family' use cases and all looks very solid, no crashes whatsoever. The only caveat I found is that the youtube addon does not seem to be able to play HDR content (this was the same in the GL build though), the TV switches to HDR mode (I can see that in the GUI color saturation change) but only audio is played. Could be my setup. I'd suggest considering setting up a branch or alternate version in flathub with GLES so people can test it as this is the only way to get HDR working. I understand that GLES was adopted by libreelec, also used by android etc, so guaranteed support going forward on GLES. |
Thanks @arigit for this recipe! When following the exact instructions, I got HDR working (related setting available in Kodi, TV displaying HDR logo, and visual enhancement of picture quality), however I lost hardware decoding (no longer able to use VAAPI from what I understand), so 4K@60FPS was really laggy. I needed to upgrade ffmpeg version in tv.kodi.Kodi.yml:
Then I did the build/export/install of the flatpak, and got both HW decoding and HDR working. Hope it can help others. I also have problems with HDR on the Youtube addon:
I guess that when Kodi will support latest ffmpeg it will work. In the meantime I have my video library in 4K HDR and Youtube in 4K without HDR, I can survive with that 😄 |
@jacen05 I've build #286 (comment) - I guess you could play with that build |
hi @razzeee !
Of course, I would be pleased to have a GLES build available in Flathub, so if you do the build with GLES I'll test it! |
I guess it's not worth it, when kodi doesn't upgrade ffmpeg |
I tried everything. Always when try to flatpak-builder im getting: All packages like libevdev-dev was installed. Can someone help? |
Hi there, I have the same error (I'm on Debian). Have you found a solution? thanks |
I found a good man who shared compiled package :) |
Yep, I was aware of this thread, I would have preferred to put it together myself, but... yeah... why not :-D Big thanks! |
I have been cross-compiling this flatpak with GLES enabled on my ubuntu 24.04.1 desktop (intel 13900T), and installing/running on a small N100 with no issues (and HDR working), following the same procedure I posted above. the last time I compiled this was mid Nov 2024 . I didn't run into issues or errors during any of the several builds I did so far. |
@macko555, @aam1972 did you ever figure out the problem? I just tried to build 21.2 in my ubuntu 24.04 desktop and run into the same build problem with libevdev. From the meson logs:
It seems that libevdev is being built and is then checked by the build process. So the local (host) install of libevdev-dev is irrelevant. From what I could see indeed libevdev got built so not sure with the postcheck then fails. @razzeee are you able to build the flatpak successfully? with GLES instead of GL? which distro are you using in your build machine? |
I gave up and use compiled image which i linked previous. I tried few ways but no effects. Just waste of time. |
Hi there, no joy when compiling. I tried the version available here: https://www.vdr-portal.de/forum/thread/136652-flatpak-kodi-gles-hlg-hdr-support-kodi-gles-flatpak/?pageNo=1 but no HDR for me, I don't know why...I ended up switching to Jellyfin that recognizes HDR without extra-tweaking. Since I self-host other applications it's fine for me |
Did you use the right parameters? GBM is necessary for HDR. Exec Start which works well for me: |
Running the kodi flatpak in GBM mode, on Intel N100 hardware, Samsung HDR-capable TV, latest flatpak (Kodi 21/Omega)
In Settings > Information > Video, Kodi correctly detects that the TV supports HDR10 and HLG.
In Settings > Media Player > Video, the HDR toggle is shown and HDR is enabled in my setup.
Kodi is also able to detect the HDR codec correctly in my HDR test videos.
When an HDR10 video is played back, Kodi does not attempt to switch on HDR mode in the TV and the TV shows it's in SDR mode. After a somewhat lengthy troubleshooting (trying things in the TV, changing the HDMI cable etc) I realized that the flatpak is using GL rendered instead of GLES, since the log shows entries such as:
: CLinuxRendererGL::UpdateVideoFilter
Ask to maintainers: is it possible to create a beta flatpak build with GLES as renderer instead of GL? (or just switch to GLES)? So that we can test HDR and help stabilize the GLES renderer
The text was updated successfully, but these errors were encountered: