HDR on x86 Hardware

  • This disables an essential HDMI 2.0 feature. Also, the issue seem to be specific to Gemini Lake. I couldn't reproduce it with Alder Lake/Tiger Lake.

    Thanks for your help on this.

    Do you think it would be useful if I open a bug in the i915 kernel repo (https://gitlab.freedesktop.org/drm/i915/kernel/-/issues)? This product is probably EOL, so I wouldn't expect much progress from intel engineers, but maybe someone there might have an idea about this.

  • Attention from Intel devs is never guaranteed, but if you never open it, you can guarantee it never receives attention. TL/DR; open the ticket, there is nothing to lose.

    NB: Assume that Intel devs have little clue what LibreELEC is (let alone our release numbers) so focus on talking about kernel details that they do understand.

  • Can somebody please post a link to the above build or similar to see if it resolves my 4k Hdr and streams on intel, its driving me mad.

    Thanks

  • Hi

    Thanks for the quick reply, my issue us X265 vaapi is not working on 4k Hdr live streams, i have managed to get it to work with it toggled off. didn't know if there was already a fix for this as its mentioned a few pages back. I have sound and if i record it for a few seconds then play the recording I'm able to watch the recording a few seconds behind the live broadcast which is my workaround.

    Thanks again

    intell 12th gen 13 12100

    Tvheadend backend

    Tvheadend htsp client

  • vaapi is not working on 4k Hdr live streams

    This is a known Kodi issue. No fix as of yet.

    VAAPI hw decode failure with 4K HEVC HLG DVB stream · Issue #23699 · xbmc/xbmc
    Bug report Describe the bug Here is a clear and concise description of what the problem is: I'm having an issue with "Hot Bird 4K1" TV channel that is…
    github.com
    Disney+ Addon not playing properly the stream when VAAPI is enabled · Issue #25383 · xbmc/xbmc
    Bug report Describe the bug Here is a clear and concise description of what the problem is: Disney+ Addon creator and Inputstream.Adaptive maintainers think…
    github.com
  • Ok, thanks for the info,

    I have found a work around for the issue if you have tvheadend back end. keep the vaapi toggle on, record it and then watch the recording a few seconds later. Then it plays in 4k HDR and say HLG in the play bar and I don't have 60% CPU usage.


    Thanks Ryan

  • Just checking if anyone has seen this issue before if not i'll get an issue raised and a debug log posted.
    Essentially anytime i play a 4k HDR video there will be no audio. To get audio, i have to enable passthrough, wait a second, then disable passthrough and everything will work fine going forward. It's a bit of an odd one i've just dealt with the last few months.
    Running latest LE 12.1 nightly.

  • So I have a Dell Optiplex 3070 micro that I use solely for my TV. I am unable to get HDR videos playing in HDR. Kodi was previously able to play HDR content when the Optiplex was running Windows 10.

    My setup is the Optiplex connected to a Denon X1800H, which is then connected to a Sony Bravia 7 XR70C. The Optiplex is normally connected to the receiver via a DP to HDMI adapter, using 4k certified monoprice cables. I have been switching between the display port adapter and the on board HDMI but it is not making a difference. The Receiver is plugged into the TV via the HDMI 3 e-arc port.

    I tried two different files in the attached log, Stranger Things was one that I watched when in Windows and it was playing HDR then. Green Planet was added as another data point, though I did not watch that when in Windows.

    https://paste.libreelec.tv/pure-gopher.log

  • Code
    Found resolution 4096x2160 with 4096x2160 @ 24.000000 Hz
    Found resolution 4096x2160 with 4096x2160 @ 23.976025 Hz
    Found resolution 3840x2160 with 3840x2160 @ 30.000000 Hz
    Found resolution 3840x2160 with 3840x2160 @ 29.970032 Hz
    Found resolution 3840x2160 with 3840x2160 @ 25.000000 Hz
    Found resolution 3840x2160 with 3840x2160 @ 24.000000 Hz
    Found resolution 3840x2160 with 3840x2160 @ 23.976025 Hz
    Found resolution 1920x1080 with 1920x1080 @ 60.000000 Hz
    Found resolution 1920x1080 with 1920x1080 @ 59.940063 Hz
    Found resolution 1920x1080 with 1920x1080 @ 50.000000 Hz

    The thing that stands out to me is ^ that's an odd collection of resolutions for a modern AVR and TV to have. I'd expect to see 1080p @ 30/29.97/25/24/23.976 not just 60/59.94/50, and the full range of 4K (4096 and 3840) resolutions not a few (but again, not all) of the < 30 ones. To me that suggests something isn't right with cables/ports (or the configuration of ports) in the HDMI chain; and I'd normally point fingers at the TV side since AVR's generally default to mirroring the upstream HDMI capabilities to the downstream HTPC device (although they too can fiddle with things).

    The curveball on modern PC boxes with DP hardware is whether an LSPCON chip is being used to generate HDMI, and if yes, what bugs the LSPCON firmware has, because they are notorious for issues - including the "but it worked in Windows" kind.

  • Code
    The curveball on modern PC boxes with DP hardware is whether an LSPCON chip is being used to generate HDMI, and if yes, what bugs the LSPCON firmware has, because they are notorious for issues - including the "but it worked in Windows" kind.

    Thank you, this may be what the issue is then. This is unfortunate as everything is much snappier in Libreelec. I will check configs again. I used a new drive to install LE so I can easily swap Windows back in. I hope this is not the case though.

    The onboard HDMI on this is v.1.4 so it can not possibly pass through HDR.

    TV switched to HDR mode? How it was connected to the TV?

    In Windows, the optiplex was connected to the receiver via a display port to HDMI adapter. On the TV you can see the detailed signal info, which shows that HDR was enabled for the HDR content.

    In LE, everything is connected the same way. If I look at the detailed signal info it lists SDR when playing HDR content.

  • On the TV you can see the detailed signal info, which shows that HDR was enabled for the HDR content.

    HDR is a much more nebulous concept than most people realise. It's not a fixed standard like "4K" and forcibly adding metadata to the HDMI signal to switch the TV into "make everything bright and show the logo" mode is simple and doesn't need to have any relationship to media being played. I wouldn't be too surprised if Windows drivers look for properties frequently associated with HDR and fake/trigger the mode change on the TV and/or blindly force output in some way. Linux is going to limit the output options based on what is possible, and while EDID suggests the TV supports HDR colourspaces (which can be seen in the debug log) that alone doesn't guarantee that HDR is possible. Again, the odd/incomplete set of resolutions listed suggests to me that something isn't right in the HDMI chain - symptoms not cause.

  • I wouldn't be too surprised if Windows drivers look for properties frequently associated with HDR and fake/trigger the mode change on the TV and/or blindly force output in some way.

    I believe you are correct here. I have confirmed that the Kodi in windows reports there is no HDR capabilities on my screen. You were right about the AVR and it removing modes, if I plugged directly into the TV then I had many more 1080p modes. That does raise the question of how best to connect a pc to the AVR.

    I have since switched to a NUC6CAYH and it is shows HDR support in system info. I have tested a number of HDR videos and they are all playing in HDR, so that issue is solved at least.

  • Interesting. I suspect the solution is in the AVR config options then. Perhaps the port is tagged for some specific output/purpose and isn't doing the usual "mirror upstream capabilities" that normally happens.