<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 3 июн. 2023 г., 03:04 Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com" rel="noreferrer noreferrer" target="_blank">randrianasulu@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><a href="https://forum.kodi.tv/showthread.php?tid=371952&page=2" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://forum.kodi.tv/showthread.php?tid=371952&page=2</a><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto"><div dir="auto"><div style="vertical-align:top"><strong><a href="https://forum.kodi.tv/showthread.php?tid=371952&pid=3139871#pid3139871" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank"></a></strong>
</div>  2023-02-12, 07:24 

</div>
<div dir="auto">
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 <a href="https://kodi.wiki/view/Video_playback#:~:text=would%20disturb%20AR%29.-,Tone%20mapping,-The%20algorithm%20method" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">tone mapping</a> in the video settings for the HDR video. Kodi 20 has a few different tone mapping options. Hable is pretty good.<br>
<br>
If you want HDR passthrough, you'll need to use the GBM backend of Kodi 
with GLES. The GL backend does not have the code to turn on HDR 
passthrough, only GLES does. The Xorg and Wayland backends do not 
support HDR passthrough. Xorg has no HDR support, and Wayland's is in 
progress and incomplete (I'm not talking about Kodi, I'm talking about 
in general.)<br>
<br>
To get the GLES backend for kodi GBM, you'll have to <a href="https://github.com/xbmc/xbmc/blob/Nexus/docs/README.Ubuntu.md" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">compile it yourself</a>
 as the PPA version uses the GL backend. You will have to compile it 
with the -DGBM_RENDER_SYSTEM=gles option. Then you'll have to run Kodi 
from a regular text tty, and not X11. Switch to a tty with ctrl-alt-F2, 
log in, and run kodi --windowing=gbm. </div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto">I looked at Arch package and it uses gl, not gles!</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><a href="https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=kodi-git" rel="noreferrer noreferrer" target="_blank">https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=kodi-git</a><br></div><div dir="auto"><br></div><div dir="auto"><a href="https://aur.archlinux.org/packages/kodi-git" target="_blank" rel="noreferrer">https://aur.archlinux.org/packages/kodi-git</a><br></div><div dir="auto"><br></div><div dir="auto">In theory, you can download this folder ("download snapshot"  link in web gui), unpack it, edit PKGBUILD for gles render system, add -gles to pkg name (so it will  not be confused with regular kodi), and run makepkg from inside this directory!</div><div dir="auto"><br></div><div dir="auto"><a href="https://itsfoss.com/create-pkgbuild/">https://itsfoss.com/create-pkgbuild/</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Also, bt2020 might be broken. Dolby vision not supported...</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/xbmc/xbmc/pull/21845" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/xbmc/xbmc/pull/21845</a><br></div><div dir="auto"><br></div><div dir="auto">merged in late april ...2023.</div><div dir="auto"><br></div><div dir="auto">Might not work on amd :( only on intel GPU.</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/xbmc/xbmc/issues/22360" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/xbmc/xbmc/issues/22360</a><br></div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto"><p dir="auto">I've noticed that in the current libreelec nightlies that 
if you start a HDR file with an AMD APU / GPU that it will start playing
 but not in the correct colourspace. It will play in SDR709. You then 
have to just return to the Kodi menu while playing and go back to 
Fullscreen and the output will then be correct at BT2020.</p>
<p dir="auto">I've confirmed this issue on the AMD 5600G and the Radeon 6400 series.</p>
<p dir="auto">This does not occur using my 12th gen Intel NUC.  I believe it might have something to do with this.</p><p dir="auto"><br></p><p dir="auto">==== end of quote ====</p></div></div></div>
</blockquote></div></div></div>