[Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-04
I have been trying to make HDR & 10-bit color pass-through work with the latest Kodi Nexus v20.0 alpha 2 and previous Kodi Helix v19.4 but without any luck for a few weeks now on Ubuntu Linux 22.04.1 LTS and Linux kernel 5.15 running on an ASRock J5040-ITX (Gemini Lake Refresh) motherboard with an embedded Intel J5040 processor that has Intel UHD 605 graphics [i915] that includes support for HEVC (H.265) 10-bit color decoding in hardware.
Not sure if it is even possible or what the road-block is. Perhaps I'm too early yet and wasting my time.
Is it lack of FFmpeg v5.0 or v5.1 built for Kodi Nexus v20.0? Is it some kind of hidden ASRock J5040 motherboard/BIOS/hardware/connector/HDMI limitation? Is it some kind of Linux kernel 5.15 or i915 driver limitation? Something with Mesa OpenGL driver? Some framebuffer or plane not getting set properly? Some color decoding BT.601 -> BT.709 -> BT.2020 going wrong or missing? No idea at this point and I've tried everything that I can short of reading and writing code. I just feel like something small is eluding me or something huge that I can't see.
Other threads have said that Kodi Stable doesn't support HDR but Kodi development Nexus v20.0 supports HDR10 and it shows that it is available and supported on my system but won't pass-through the video. I've tried all of the various settings in Kodi, different windowing systems (X11 --depth 30, GBM, etc.), every setting possible in Kodi for HDR, VAAPI/SW/HW, Color settings. Tried X11 with --depth 30 and nothing and switched to GBM windowing to see HDR10 available and enabled but still not working. I've set the refresh rate and resolution to be adjusted "On start" in Kodi so that it can perfectly match the media and it works perfectly for the sample media that I've tried since it matches everything, resolution and refresh rate, but the color space primaries always stay at xvYCC601.
I've tried every setting on the LG OLED 65 C9 AUA television running latest 05.25.35 firmware that has to do with HDMI Deep Color, eARC, CEC/SimpliLink, HDMI 2 eARC connector, and Pioneer VSX-934 Receiver with latest 1040-7010-1020-0010 firmware with HDMI 1.4 that shows 36-bit passthrough with 3840x2160@30Hz and below and only 24-bit at +30Hz or 60Hz showing the HDMI 1.4x limit even with HDMI 2.1 on the TV and HDMI 2.0 on the Computer. I can set 4096x2160 & 60Hz and 24-bit color (8-bit per pixel) just fine and play video also. Latest firmware and drivers on everything. I've confirmed that the TV is receiving 12-bit per pixel and 8-bit per pixel as expected using the advanced Channel Tunning & Press 11111 button to see the TV's HDMI diagnostic info but it always says xvYCC601 mode for BT.601 even with 12-bit color per-pixel. The AVI Info Frame also always only shows Extended Colorimetry: xvYCC601 and I never see it switch to BT.709 or BT.2020 mode from HDMI input though. I can't get any info when playing the same sample video files from the TV's built-in WebOS Photo & Video player since the HDMI info is a set to "Reserved". I've of course tried by-passing the receiver and going directly to the TV but still, same results and same problem. I skipped the PulseEight CEC injector also and tried other HDMI cables. All obvious permutations have been tried.
I have tried multiple Samples of HEVC (H.265) with 10-bit color from Kodi v19.4 & 20.0 and no luck, but they all work perfect from the LG TV's WebOS built-in Photo & Video player accessing the same files over DLNA/UPnP or USB and they all show up [HDR] logo up-top correctly or [Dolby Vision] with BT.2020 color-space set properly. When I check the sample files with 'mediainfo' they all show proper HDR10, BT.2020 color primaries, and 4:2:0 chroma sub-sampling or higher.
By the way, audio pass-through using Alsa (removed PulseAudio since it doesn't pass-through bitstream advanced audio codecs) works perfectly from Doly Digital, Dolby TrueHD, Dolby Atmos with TrueHD 8-channel 7.1, and various versions of DTS just the same. The Pioneer receiver decodes all of them perfectly, but I've noticed some audio drop-outs in some media but not others and haven't diagnosed that issue yet. I've tried a lot of audio pass-through samples from Kodi and other AVS forums and they are perfectly fine so I know that HDMI eARC is working well and passing through at high-bitrates. The TV diagnostic info even identifies the type, channel, and bitrate of the streams.
I've checked the Kodi debug log and I can't see anything obvious, it even creates a 10-bit GUI plane just fine with the line "CDRMUtils::FindPlanes - using 10bit gui plane 39", but then I see references to "(32)" when the display resolution is adjusted and I'm wondering if that is the 32-bit color-depth on the line with "Display resolution ADJUST : 3840x2160 @ 23.976025 Hz (32) (weight: 0.000)" where it somehow forgets about the 10/12-bit color depth and the 10-bit GUI color plane that was created earlier.
Screenshots: https://photos.app.goo.gl/1vd7FL9N5vPmr1ug6
Kodi Debug Log (Redacted for Size): otuyosazif.kodi (paste)
Info
Item | Value |
Kodi | 20.0-ALPHA2 (19.90.705) Git:20220903-b9f72b53d5 |
OS | Ubuntu 22.04.1 LTS |
Kernel | Linux x86 64-bit version 5.15.0-47-generic |
FFmpeg | 4.4.1-Kodi |
CPU | Intel® Pentium® Silver J5040 CPU @ 2.00GHz, 4 cores available |
Executable | /usr/lib/x86_64-linux-gnu/kodi/kodi.bin |
Television | LG OLED 65 C9 AUA firmware 05.25.35 (2022-05-19) |
Receiver | Pioneer VSX-934 firmware 1040-7010-1020-0010 (2021-01-14) |
Media Sample - 2160p HDR
text:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main [email protected]@high
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 45 min
Bit rate : 20.9 Mb/s
Width : 3 840 pixels
Height : 1 608 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.141
Stream size : 15.3 GiB (82%)
Writing library : x265 3.5+36-9b59d4554:[Windows][MSVC 1900][64 bit] 10bit
Encoding settings : [REDACTED]
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
Kodi.log - Debug Excerpts
Kodi Debug Log (Redacted for Size): https://paste.kodi.tv/otuyosazif.kodi
HDMI Source - Intel UHD 605 i915 with VAAPI
log:
2022-09-04 02:44:28.954 T:181539 DEBUG <general>: CDRMUtils::OpenDrm - drm devices found: 1
2022-09-04 02:44:28.982 T:181539 INFO <general>: CDRMUtils::FindConnector - using connector: HDMI-A-1
2022-09-04 02:44:28.982 T:181539 DEBUG <general>: CDRMUtils::OpenDrm - opened device: /dev/dri/card0
2022-09-04 02:44:28.982 T:181539 DEBUG <general>: CDRMUtils: rintDrmDeviceInfo - DRM Device Info:
available_nodes: 0x05
nodes:
nodes[0]: /dev/dri/card0
nodes[2]: /dev/dri/renderD128
bustype: 0x00
pci:
domain: 0x00
bus: 0x0
dev: 0x2
func: 0
deviceinfo:
pci:
vendor_id: 0x8086
device_id: 0x3184
subvendor_id: 0x1849
subdevice_id: 0x2212
2022-09-04 02:44:28.982 T:181539 DEBUG <general>: CDRMUtils::OpenDrm - opened render node: /dev/dri/renderD128
2022-09-04 02:44:29.010 T:181539 INFO <general>: CDRMUtils::FindConnector - using connector: HDMI-A-1
2022-09-04 02:44:29.010 T:181539 INFO <general>: CDRMUtils::FindEncoder - using encoder: 142
2022-09-04 02:44:29.010 T:181539 DEBUG <general>: CDRMUtils::FindCrtc - original crtc mode: 3840x2160 @ 60 Hz
2022-09-04 02:44:29.010 T:181539 INFO <general>: CDRMUtils::FindPlanes - using crtc: 67
2022-09-04 02:44:29.010 T:181539 DEBUG <general>: CDRMUtils::FindPlanes - using video plane 31
2022-09-04 02:44:29.010 T:181539 DEBUG <general>: CDRMUtils::FindPlanes - using 10bit gui plane 39
2022-09-04 02:44:29.010 T:181539 DEBUG <general>: CDRMAtomic::InitDrm - initialized atomic DRM
2022-09-04 02:44:29.089 T:181539 DEBUG <general>: CWinSystemGbm::InitWindowSystem - initialized DRM
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 60.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 60.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 59.940063 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 50.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 30.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 29.970032 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 25.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 24.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 4096x2160 with 4096x2160 @ 23.976025 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 59.940063 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 50.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 30.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 29.970032 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 25.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 24.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 3840x2160 with 3840x2160 @ 23.976025 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 120.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 119.880127 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 100.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 60.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Skipped 1 duplicate messages..
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 59.940063 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080i @ 60.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080i @ 59.940063 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 50.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080i @ 50.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 30.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 29.970032 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 25.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 24.000000 Hz
2022-09-04 02:44:29.089 T:181539 INFO <general>: Found resolution 1920x1080 with 1920x1080 @ 23.976025 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 1280x1024 with 1280x1024 @ 60.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 1360x768 with 1360x768 @ 60.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 1280x720 with 1280x720 @ 60.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 1280x720 with 1280x720 @ 59.940063 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 1280x720 with 1280x720 @ 50.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 1024x768 with 1024x768 @ 60.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 800x600 with 800x600 @ 60.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 720x576 with 720x576 @ 50.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 720x480 with 720x480 @ 59.940063 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 720x480 with 720x480 @ 60.000000 Hz
2022-09-04 02:44:29.090 T:181539 INFO <general>: Found resolution 640x480 with 640x480 @ 60.000000 Hz
2022-09-04 02:44:29.092 T:181539 INFO <general>: Skipped 1 duplicate messages..
2022-09-04 02:44:29.092 T:181539 INFO <general>: EGL_VERSION = 1.5
2022-09-04 02:44:29.092 T:181539 INFO <general>: EGL_VENDOR = Mesa Project
2022-09-04 02:44:29.092 T:181539 INFO <general>: EGL_EXTENSIONS = EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display
2022-09-04 02:44:29.092 T:181539 INFO <general>: EGL_CLIENT_EXTENSIONS = EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL Config Attributes:
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_BUFFER_SIZE: 32
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_ALPHA_SIZE: 2
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_BLUE_SIZE: 10
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_GREEN_SIZE: 10
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_RED_SIZE: 10
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_DEPTH_SIZE: 16
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_STENCIL_SIZE: 0
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_CONFIG_CAVEAT: 0x3038
2022-09-04 02:44:29.092 T:181539 DEBUG <general>: EGL_CONFIG_ID: 2
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_LEVEL: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_MAX_PBUFFER_HEIGHT: 4096
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_MAX_PBUFFER_PIXELS: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_MAX_PBUFFER_WIDTH: 4096
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_NATIVE_RENDERABLE: 1
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_NATIVE_VISUAL_ID: 808669761
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_NATIVE_VISUAL_TYPE: 0x3038
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_SAMPLES: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_SAMPLE_BUFFERS: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_SURFACE_TYPE: 4
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_TRANSPARENT_TYPE: 0x3038
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_TRANSPARENT_BLUE_VALUE: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_TRANSPARENT_GREEN_VALUE: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_TRANSPARENT_RED_VALUE: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_BIND_TO_TEXTURE_RGB: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_BIND_TO_TEXTURE_RGBA: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_MIN_SWAP_INTERVAL: 1
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_MAX_SWAP_INTERVAL: 1
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_LUMINANCE_SIZE: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_ALPHA_MASK_SIZE: 0
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_COLOR_BUFFER_TYPE: 0x308e
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_RENDERABLE_TYPE: 77
2022-09-04 02:44:29.093 T:181539 DEBUG <general>: EGL_CONFORMANT: 77
2022-09-04 02:44:29.098 T:181539 DEBUG <general>: Vaapi2 EGL interop test results: general yes, deepColor yes
2022-09-04 02:44:29.098 T:181539 DEBUG <general>: libva info: VA-API version 1.14.0
2022-09-04 02:44:29.098 T:181539 DEBUG <general>: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2022-09-04 02:44:29.098 T:181539 DEBUG <general>: libva info: Found init function __vaDriverInit_1_14
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: libva info: va_openDriver() returns 0
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - initialize version 1.14
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - driver in use: Intel iHD driver for Intel® Gen Graphics - 22.3.1 ()
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileMPEG2Simple
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileMPEG2Main
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileH264Main
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileH264High
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileJPEGBaseline
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileH264ConstrainedBaseline
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileVP8Version0_3
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileHEVCMain
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileHEVCMain10
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileVP9Profile0
2022-09-04 02:44:29.099 T:181539 DEBUG <general>: VAAPI - profile VAProfileVP9Profile2
2022-09-04 02:44:29.099 T:181539 INFO <general>: VAAPI::Close - closing decoder context
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: CDMAHeapBufferObject::Register unable to open /dev/dma_heap/reserved: No such file or directory
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: CDMAHeapBufferObject::Register unable to open /dev/dma_heap/linux,cma: No such file or directory
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: CDMAHeapBufferObject::Register unable to open /dev/dma_heap/system: Permission denied
2022-09-04 02:44:29.100 T:181539 INFO <general>: CApplication::CreateGUI - using the gbm windowing system
2022-09-04 02:44:29.100 T:181539 INFO <general>: Checking resolution 16
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: OnLostDevice - notify display change event
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: CWinSystemGbmEGLContext: estroyWindow - deinitialized GBM
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: CDRMUtils::SetMode - found crtc mode: 3840x2160 @ 60 Hz
2022-09-04 02:44:29.100 T:181539 DEBUG <general>: CGBMUtils::CreateSurface - created surface with size 3840x2160
2022-09-04 02:44:29.125 T:181539 DEBUG <general>: CWinSystemGbmEGLContext::CreateNewWindow - initialized GBM
2022-09-04 02:44:29.125 T:181539 INFO <general>: CRenderSystemGL::InitRenderSystem - Version: 4.6 (Core Profile) Mesa 22.0.5, Major: 4, Minor: 6
2022-09-04 02:44:29.126 T:181539 INFO <general>: GL_VENDOR = Intel
2022-09-04 02:44:29.126 T:181539 INFO <general>: GL_RENDERER = Mesa Intel® UHD Graphics 605 (GLK 3)
2022-09-04 02:44:29.126 T:181539 INFO <general>: GL_VERSION = 4.6 (Core Profile) Mesa 22.0.5
2022-09-04 02:44:29.126 T:181539 INFO <general>: GL_SHADING_LANGUAGE_VERSION = 4.60
2022-09-04 02:44:29.126 T:181539 INFO <general>: GL_EXTENSIONS = GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_performance_monitor GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_demote_to_helper_invocation GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_blackhole_render GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_framebuffer_flip_y GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_fragment_shader_interlock GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
2022-09-04 02:44:29.138 T:181539 DEBUG <general>: OnLostDevice - notify display change event
2022-09-04 02:44:29.138 T:181539 DEBUG <general>: CDRMUtils::SetMode - found crtc mode: 3840x2160 @ 60 Hz
2022-09-04 02:44:29.141 T:181539 INFO <general>: GL: Maximum texture width: 16384
2022-09-04 02:44:29.141 T:181539 DEBUG <general>: guilib: Fill viewport on change for solving rendering passes
Sample Media Load
log:
2022-09-04 02:44:35.782 T:181539 DEBUG <general>: ------ Window Deinit (DialogVideoInfo.xml) ------
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers(/data/Movies/UHD/Sample [2160p HDR].mkv)
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: system rules
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: matches rule: system rules
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: streams
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: dvd
2022-09-04 02:44:35.792 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: discimage
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: nsv
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerSelectionRule::GetPlayers: considering rule: radio
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: for video=true, audio=false
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: for video=true, audio=true
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: adding player: [LG] webOS TV OLED65C9AUA
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: adding player: Kodi (xbmc)
2022-09-04 02:44:35.793 T:181539 DEBUG <general>: CPlayerCoreFactory::GetPlayers: added 3 players
2022-09-04 02:44:35.795 T:181539 DEBUG <general>: Radio UECP (RDS) Processor - new CDVDRadioRDSData
2022-09-04 02:44:35.795 T:181539 INFO <general>: VideoPlayer::OpenFile: /data/Movies/UHD/Sample [2160p HDR].mkv
2022-09-04 02:44:35.795 T:181861 DEBUG <general>: Thread VideoPlayer start, auto delete: false
2022-09-04 02:44:35.795 T:181539 DEBUG <general>: OnPlayBackStarted: CApplication::OnPlayBackStarted
2022-09-04 02:44:35.797 T:181584 DEBUG <general>: Loading settings for /data/Movies/UHD/Sample [2160p HDR].mkv
2022-09-04 02:44:35.797 T:181861 INFO <general>: Creating InputStream
2022-09-04 02:44:35.798 T:181539 DEBUG <general>: CDRMAtomicRequest::LogAtomicRequest - DRM Atomic Request:
2022-09-04 02:44:35.798 T:181539 DEBUG <general>:
Object: plane ID: 39
Property: SRC_X ID: 9 Value: 0
Property: SRC_Y ID: 10 Value: 0
Property: SRC_W ID: 11 Value: 251658240
Property: SRC_H ID: 12 Value: 141557760
Property: CRTC_X ID: 13 Value: 0
Property: CRTC_Y ID: 14 Value: 0
Property: CRTC_W ID: 15 Value: 3840
Property: CRTC_H ID: 16 Value: 2160
Property: FB_ID ID: 17 Value: 156
Property: CRTC_ID ID: 20 Value: 67
2022-09-04 02:44:35.800 T:181861 DEBUG <general>: ScanForExternalSubtitles: Searching for subtitles...
2022-09-04 02:44:35.800 T:181861 DEBUG <general>: ScanForExternalSubtitles: END (total time: 0 ms)
2022-09-04 02:44:35.800 T:181861 INFO <general>: Creating Demuxer
2022-09-04 02:44:35.801 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: Probing matroska,webm score:100 size:2048
2022-09-04 02:44:35.801 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: Format matroska,webm probed with size=2048 and score=100
2022-09-04 02:44:35.801 T:181861 DEBUG <general>: Open - probing detected format [matroska,webm]
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: Open - avformat_find_stream_info starting
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] Before avformat_find_stream_info() pos: 11150 bytes read:15110 seeks:2 nb_streams:8
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding VPS
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Main 10 profile bitstream
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding SPS
2022-09-04 02:44:35.802 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Main 10 profile bitstream
2022-09-04 02:44:35.803 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding VUI
2022-09-04 02:44:35.803 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:35.803 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding PPS
2022-09-04 02:44:35.803 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:35.803 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding SEI
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] Probe buffer size limit of 5000000 bytes reached
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 0: start_time: 0 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 1: start_time: 0 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 2: start_time: 0 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 3: start_time: 0.009 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 4: start_time: 0.009 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 5: start_time: 0 duration: 6304.82
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 6: start_time: 0 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] stream 7: start_time: 0 duration: NOPTS
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] format: start_time: 0 duration: 6304.82 (estimate from stream) bitrate=25505 kb/s
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [matroska,webm] After avformat_find_stream_info() pos: 5099648 bytes read:5103608 seeks:2 frames:3997
2022-09-04 02:44:35.849 T:181861 DEBUG <general>: Open - av_find_stream_info finished
2022-09-04 02:44:35.849 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: Input #0, matroska,webm, from '/data/Movies/UHD/Sample [2160p HDR].mkv':
2022-09-04 02:44:35.849 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: Metadata:
2022-09-04 02:44:35.849 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: title : Sample
2022-09-04 02:44:35.849 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: encoder : libebml v1.4.2 + libmatroska v1.6.4
2022-09-04 02:44:35.849 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: creation_time : 2022-01-01T00:00:00.000000Z
2022-09-04 02:44:35.849 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: Duration: 01:45:00.000000000
2022-09-04 02:44:35.852 T:181861 INFO <general>: ffmpeg[0x56330527cf20]: Stream #0:0, 71, 1/1000: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Refresh Rate Sync
log:
2022-09-04 02:44:35.854 T:181861 INFO <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 1608, fps: 23.976, 3D: false
2022-09-04 02:44:35.854 T:181861 DEBUG <general>: [WHITELIST] Using the default whitelist because the user whitelist is empty
2022-09-04 02:44:35.854 T:181861 DEBUG <general>: [WHITELIST] Searching for an exact resolution with an exact refresh rate
2022-09-04 02:44:35.854 T:181861 DEBUG <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 3840x2160 @ 23.976025 Hz (32)
2022-09-04 02:44:35.854 T:181861 DEBUG <general>: [WHITELIST] Searching for an exact resolution with double the refresh rate
2022-09-04 02:44:35.854 T:181861 INFO <general>: Display resolution ADJUST : 3840x2160 @ 23.976025 Hz (32) (weight: 0.000)
2022-09-04 02:44:35.859 T:181539 DEBUG <general>: CDRMAtomicRequest::LogAtomicRequest - DRM Atomic Request:
2022-09-04 02:44:35.859 T:181539 DEBUG <general>:
Object: plane ID: 39
Property: SRC_X ID: 9 Value: 0
Property: SRC_Y ID: 10 Value: 0
Property: SRC_W ID: 11 Value: 251658240
Property: SRC_H ID: 12 Value: 141557760
Property: CRTC_X ID: 13 Value: 0
Property: CRTC_Y ID: 14 Value: 0
Property: CRTC_W ID: 15 Value: 3840
Property: CRTC_H ID: 16 Value: 2160
Property: FB_ID ID: 17 Value: 161
Property: CRTC_ID ID: 20 Value: 67
2022-09-04 02:44:35.899 T:181539 DEBUG <general>: CVideoGUIInfo::InitCurrentItem(/data/Movies/UHD/Sample [2160p HDR].mkv)
2022-09-04 02:44:35.899 T:181539 DEBUG <general>: CPlayerGUIInfo::InitCurrentItem(/data/Movies/UHD/Sample [2160p HDR].mkv)
2022-09-04 02:44:35.999 T:181539 DEBUG <general>: ------ Window Init (DialogBusy.xml) ------
2022-09-04 02:44:36.000 T:181539 DEBUG <general>: OnLostDevice - notify display change event
2022-09-04 02:44:36.088 T:181539 INFO <general>: VideoPlayer: OnLostDisplay received
2022-09-04 02:44:36.088 T:181539 WARNING <general>: CDVDMessageQueue(audio): ut MSGQ_NOT_INITIALIZED
2022-09-04 02:44:36.088 T:181539 WARNING <general>: CDVDMessageQueue(video): ut MSGQ_NOT_INITIALIZED
2022-09-04 02:44:36.088 T:181539 DEBUG <general>: Flush - flushing renderer
2022-09-04 02:44:36.088 T:181539 DEBUG <general>: CDRMUtils::SetMode - found crtc mode: 3840x2160 @ 24 Hz
2022-09-04 02:44:36.092 T:181539 INFO <general>: GL: Maximum texture width: 16384
2022-09-04 02:44:36.092 T:181861 INFO <general>: Creating video codec with codec id: 173
2022-09-04 02:44:36.092 T:181861 INFO <general>: CDVDVideoCodecFFmpeg::Open() Using codec: HEVC (High Efficiency Video Coding)
2022-09-04 02:44:36.092 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.092 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding VPS
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Main 10 profile bitstream
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding SPS
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Main 10 profile bitstream
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding VUI
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding PPS
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ffmpeg[0x56330527cf20]: [hevc] Decoding SEI
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: CDVDVideoCodecFFmpeg - Updated codec: ff-hevc
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: CVideoPlayerVideo::OpenStream - open stream with codec id: 173
2022-09-04 02:44:36.093 T:181539 DEBUG <general>: CDirectoryProvider[library://video/movies/]: refreshing..
2022-09-04 02:44:36.093 T:181861 INFO <general>: Creating video thread
2022-09-04 02:44:36.093 T:181539 DEBUG <general>: CDirectoryProvider[special://skin/playlists/inprogress_movies.xsp]: refreshing..
2022-09-04 02:44:36.093 T:181539 DEBUG <general>: CDirectoryProvider[special://skin/playlists/recent_unwatched_movies.xsp]: refreshing..
2022-09-04 02:44:36.093 T:181539 DEBUG <general>: CDirectoryProvider[special://skin/playlists/unwatched_movies.xsp]: refreshing..
2022-09-04 02:44:36.093 T:181539 DEBUG <general>: CDirectoryProvider[special://skin/playlists/random_movies.xsp]: refreshing..
2022-09-04 02:44:36.093 T:181862 DEBUG <general>: Thread VideoPlayerVideo start, auto delete: false
2022-09-04 02:44:36.093 T:181539 DEBUG <general>: CDirectoryProvider[videodb://movies/genres/]: refreshing..
2022-09-04 02:44:36.093 T:181861 DEBUG <general>: ReadEditDecisionLists - Checking for edit decision lists (EDL) on local drive or remote share for: /data/Movies/UHD/Sample [2160p HDR].mkv
FFmpeg - hevc - yuv420p10le
log:
2022-09-04 02:44:36.370 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Format vaapi_vld chosen by get_format().
2022-09-04 02:44:36.371 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Format vaapi_vld requires hwaccel initialisation.
2022-09-04 02:44:36.371 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Considering format 0x30313050 -> p010le.
2022-09-04 02:44:36.371 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Picked p010le (0x30313050) as best match for yuv420p10le.
2022-09-04 02:44:36.372 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Decode context initialised: 0x13/0x10000000.
2022-09-04 02:44:36.377 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Mastering Display Metadata:
2022-09-04 02:44:36.377 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290)
2022-09-04 02:44:36.377 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] min_luminance=0.005000, max_luminance=1000.000000
2022-09-04 02:44:36.378 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Content Light Level Metadata:
2022-09-04 02:44:36.378 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] MaxCLL=0, MaxFALL=0
2022-09-04 02:44:36.378 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Param buffer (type 0, 604 bytes) is 0.
2022-09-04 02:44:36.378 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Slice 0 param buffer (264 bytes) is 0x1.
2022-09-04 02:44:36.379 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Slice 0 data buffer (1532 bytes) is 0x2.
2022-09-04 02:44:36.379 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Decode to surface 0.
2022-09-04 02:44:36.392 T:181862 DEBUG <general>: CVideoPlayerVideo::CalcDropRequirement - hurry: 0
2022-09-04 02:44:36.392 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.392 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.392 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
2022-09-04 02:44:36.392 T:181862 DEBUG <general>: ffmpeg[0x5633052820a0]: [hevc] Decoding SEI
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-04
Screenshots
![Full sized picture Image](https://photos.app.goo.gl/zrsvw6E2UhfCWkKz9)
![Full sized picture Image](https://photos.app.goo.gl/6tvXjQaTDzjmKVnp6)
![Full sized picture Image](https://photos.app.goo.gl/t7kk5SfJuL3vFJi87)
![Full sized picture Image](https://photos.app.goo.gl/dFpoZFMW916EagLK6)
![Full sized picture Image](https://photos.app.goo.gl/YEvSh6BiZcvbXCte8)
![Full sized picture Image](https://photos.app.goo.gl/nXLW5qcpSTn8n1KSA)
![Full sized picture Image](https://photos.app.goo.gl/zzGby74KjHrPVkEk9)
Kodi Settings
![Full sized picture Image](https://photos.app.goo.gl/2SWTeiMS3VpG7MpX7)
![Full sized picture Image](https://photos.app.goo.gl/kpH352w6wZoHxH8TA)
![Full sized picture Image](https://photos.app.goo.gl/rsqqWRuYK5Br665z5)
![Full sized picture Image](https://photos.app.goo.gl/bjWMV3FKqRYevm3VA)
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-04
VAAPI Settings
![Full sized picture Image](https://photos.app.goo.gl/dj4VyxvmzxxZYY5SA)
Sample Media - Playing on Kodi
![Full sized picture Image](https://photos.app.goo.gl/WEdjU2j2nuAG9Vfz8)
![Full sized picture Image](https://photos.app.goo.gl/9grjD9gfgA1tBSnq6)
![Full sized picture Image](https://photos.app.goo.gl/7XK8qw71xCR8qjWo7)
GUI Resolution Test - 4096x2160p @ 60 Hz & 8-bit xvYCC601
![Full sized picture Image](https://photos.app.goo.gl/BbcErQPtzsGNVsp97)
![Full sized picture Image](https://photos.app.goo.gl/AXZhBjZRpiZqcb449)
![Full sized picture Image](https://photos.app.goo.gl/zANymD5ZZze4SKnM9)
![Full sized picture Image](https://photos.app.goo.gl/wpJ6t6jJEo4i8bGZ8)
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-04
Screenshots - #1
Expire: in 31-days on 2022-10-05
LG TV HDMI Diagnostic Info
![Full sized picture Image](https://i.postimg.cc/q6BdMg1r/PXL-20220903-210131792.jpg)
![Full sized picture Image](https://i.postimg.cc/HcVwGtg1/PXL-20220903-210305793.jpg)
![Full sized picture Image](https://i.postimg.cc/CdJgrHKx/PXL-20220903-224945953.jpg)
![Full sized picture Image](https://i.postimg.cc/xc4SnfMr/PXL-20220903-230331328.jpg)
![Full sized picture Image](https://i.postimg.cc/zb6nqRzb/PXL-20220903-230430079.jpg)
![Full sized picture Image](https://i.postimg.cc/DWfQ6TpZ/PXL-20220903-230924015.jpg)
![Full sized picture Image](https://i.postimg.cc/mtDGvzcN/PXL-20220904-014644215.jpg)
Pioneer VSX-934 Video Info
![Full sized picture Image](https://i.postimg.cc/fkMsvgDP/PXL-20220904-015353163-MP.jpg)
Kodi - System Information
![Full sized picture Image](https://i.postimg.cc/PCvnqgQC/PXL-20220904-065151079.jpg)
![Full sized picture Image](https://i.postimg.cc/v1RFx003/PXL-20220904-065204747.jpg)
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-04
Screenshots - #2
Expire: in 31-days on 2022-10-05
Kodi - GUI - LG TV HDMI Diagnostics
![Full sized picture Image](https://i.postimg.cc/N2jWvS0f/PXL-20220904-065304732.jpg)
![Full sized picture Image](https://i.postimg.cc/t7R06ZzQ/PXL-20220904-065314328.jpg)
![Full sized picture Image](https://i.postimg.cc/fJk6HGF8/PXL-20220904-065345251.jpg)
LG TV WebOS Built-In Photo & Video Player - Showing HDR & BT.2020 for Sample Media
![Full sized picture Image](https://i.postimg.cc/G9XWxLMB/PXL-20220904-065444657-MP.jpg)
Kodi - System Settings
![Full sized picture Image](https://i.postimg.cc/HryFmQT5/PXL-20220904-070201373.jpg)
![Full sized picture Image](https://i.postimg.cc/LqFw8nsW/PXL-20220904-070222385.jpg)
![Full sized picture Image](https://i.postimg.cc/hJ8wzczt/PXL-20220904-070239266.jpg)
![Full sized picture Image](https://i.postimg.cc/Q9Xzcw1k/PXL-20220904-070306341.jpg)
Kodi - Player - VAAPI Settings
![Full sized picture Image](https://i.postimg.cc/SJwtgJcK/PXL-20220904-070358203.jpg)
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - jjd-uk - 2022-09-04
None of the work necessary for HDR passthrough on Linux has been merged into the codebase yet. If you're using a dedicated device for Kodi only then there's the option of using the LE test builds that brings to together all the WIP, however this is no good if you want to use your device for other things outside Kodi.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-04
Alright, thanks for the info. I've just come across the LibreELEC thread about HDR and saw their test releases but was hoping for Kodi Nexus v20 main branch to have the same code updates merged already since I saw the HDR options and system information status update list HDR10 when using GBM windowing mode.
LibreELEC: Intel true 10bits/HEVC/HDR support... ?
I'll follow through it since it touches directly on this issue of Intel and HDR and has some code updates. There is even some references to Linux Kernel threads regarding HDR also.
[v16 0/4] Add Colorspace connector property interface
[v16 1/4] drm: Add HDMI colorspace property
[v16 2/4] drm: Add DP colorspace property
[v16 3/4] drm: Add colorspace info to AVI Infoframe
[v16 4/4] drm/i915: Attach colorspace property and enable modeset
I see that these changes made it to the Xbmc master branch way back in 2019 for Kodi Matrix v19.0.
VideoLayerBridgeDRMPRIME: set HDR metadata #16103
So I was under the impression that this was good to go, especially in Kody Nexus v20 since HDR 10 support was listed in GBM windowing.
However, in the debug log I do not see any references to the color space of BT.2020 being set for the plane nor the AVI info frame being sent out over the HDMI wire, only that the GUI plane was created in 10-bit color, but nothing regarding the actual rendering planes and surfaces. I'm also not seeing any references to tone mapping HDR to SDR for RGB values. So I'm thinking that the decoded video stream is going out to the TV sink but the player still has it set at the BT.601 color space. That's why all the colors look washed out because It is not aware that it should be rendering it in a different color space with a different primitives and a wider gamut. So the effect is the same as enabling limited color space and having that grayish washed out effect.
I'm going to read through that thread that was already closed back in 2019 from LibreELEC to see what they encountered back in those days. It's been 3 years since. I'm wondering if anything happened after that.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - jjd-uk - 2022-09-04
I'm under the impression there's still PR's that need to be rebased and updated to reflect kernel and driver changes for HDR. I haven't seen anything internally to say this has changed, but I can't be 100% sure.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - jjd-uk - 2022-09-04
As for delay, we did a lot of work earlier on as the primary userspace app Intel and AMD devs were using to produce the kernel/driver changes. Not everything was working 100% so we waited for the Intel/AMD devs to sort things out. However in the meantime the Kodi devs no longer had the time to keep up with everything going on.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - jjd-uk - 2022-09-04
Btw I believe this is the thread you need for HDR builds https://forum.libreelec.tv/thread/25185-le11-hdr-builds-for-intel-and-amd/
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2022-09-07
I finally reading through the entire thread and all that I find in it is a bunch of different builds for their version of the entire OS installation image .
I see that one of their contributors is releasing updated builds for the Intel generation 11 CPUs only and that's a really limited scope for what he's doing and he's limiting the release to Linux kernel 5.19 .
I personally am using my little home theater PC as a more general Linux server that does many other functions for me in the house in the background while being a Kodo front end for my home theater setup is its primary front end purpose but there's a lot of back end services that I'm running. So using their fractionally updated tiny distro LibreELEC it's not really a solution .
I'm going to have to look through all the pull requests that are and XBMC Master tree along with the work that the guys at the other district have done and see all the changes that are in there and see how much of the work by Irusak and Smp have made it into the main line master tree.
I'll see how difficult it is to create a patch for the main XBMC Master and see if that is usable. I'm not a software or kernel developer. I only do a little bit of scripting as part of my work So I'm not sure if that's going to be enough for me too. Figure this out and maybe get something working.
My personal interest is to stay with the XBMC master releases that are stable, but I'll settle for the nightly releases since the Kodi Nexus v20 seems pretty stable and in the 12 years that I've been running XBMC front and on my other media center PC I've had to resort to using the nightly releases a few times prior to jump around bugs in the last few releases a long time ago.
I'll see what I can do to solve my own problem and I'll see if there's any more work to get HDR into the main line anytime soon .
For now I'm just using the LG OLED TV Web OS built-in player to play my 4K HDR media and is working well enough but it doesn't keep a history. So I have to update the library and the watch list manually so that I know which movies I watched in which ones I didn't and then archive them off to offline storage. This is not a long-term solution either because more shows are being released in 4K and trying to keep up with a list of series episodes that are watched is time-consuming and problematic and having everything unified under one front end like Kodi is the ideal solution, if only HDR would work properly.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - jjd-uk - 2022-09-08
You're likely going to need kernel 5.19 as HDR is still cutting edge for Linux.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - arfoll - 2022-11-13
I know this thread is a bit old but I was stuck on a similar problem in July and for me I have a solution. I have a NUC7CJYH with a J4005 on an LG C2 TV, and I also dont want to use libreelec as I run a bit of custom stuff on this. All in a very similar setup to yours.
What I found in the libreelec builds from that thread (which have HDR working for me) is that actually DRM prime is not really needed and, at least for me its not working. However what is working is just plain old recompiling kodi from git (b895b061af2cdfffabdbd61166cc8842cd58dc9e) switching the app render system to GLES. By default most distros use the gl render system and that one doesn't work. Use -DAPP_RENDER_SYSTEM=gles. As a bonus, performance is significantly better in the menus at 4k. Note that you need to start kodi using GBM, x11 definitely won't work and wayland probably not.
As for kernel I'm just using the linux 6.0.8-arch1-1 from the main arch repo.
Good luck!
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - trayal - 2024-07-19
Apologies to all for zombifying this thread, but... the last comment about compiling with GLES support was what I needed to finally getting HDR passthrough to work on my setup, after over a week of frustrated searching around trying to figure out why it wouldn't work for me. My setup is a Gentoo system with an AMD Ryzen with integrated GPU running kodi-standalone using GBM windowing. The code was sourced and compiled from Gentoo's default emerge repository.
On seeing the last comment by arfoll, I set the 'gles' use flag in the entry for kodi in packages.use and recompiled the app. HDR passthrough now works flawlessly.
I just wanted to document this for posterity, given the number of people I've seen searching for an answer on how to get this working with linux and the difficulty in finding this little tidbit of information. Hopefully this will help somebody down the line with the same struggle. For whatever reason, HDR passthrough doesn't work with full OpenGL, but does work with GLES. Let it be known!
Thanks, arfoll; it's such a relief to not be pulling my hair out over this anymore.
RE: [Linux][i915] - HDR (High Dynamic Range) & 10-bit Color HEVC (H.265) Pass-Through - JakFrost - 2024-08-26
HDR Success!
Thanks for the info. I have recompiled Kodi with GLES as the renderer system and HDR10 passthrough works correctly now. No more need to jump to the LG TVs media player to play all the HDR content now.
I verified the entire rendering hardware path and the TV shows HDR10 support with 12-bit color support, the Pioneer AV Receiver also shows HDR10 support and 36-bit total color bandwidth, and the colors look correctly when proper HDR media is being played.
Before, I was using the GL renderer system after getting Kodi to compile successfully since I thought the full version of OpenGL would be better and would work better with more features, like HDR for example, but it appears that this is not the case for some reason and the OpenGL ES (Embedded Systems) limited version actually is the one that works with HDR. I wouldn't have guessed that on my own because I thought the logical and opposite was true.
I'm going to spend some time testing all of the media content to see how the HDR functionality works over long term, but so far with a few quick checks it looks good.
Dolby Vision is recognized as HDR during pass-through so there's a bit of a loss HDR metadata loss and per-scene optimization but I can live with that. From what I know is that Dolby Vision is proprietary and licensed so it uses a binary blob to decode the format on existing hardware and GPUs with their drivers so getting that into Linux and Kodi and making it functional would be a whole other challenge of having to reverse-engineer the binary blob or use it as is in binary format. But that's okay, HDR functionality is good enough for now for me because it solves the problem of having to leave Kodi to play any HDR media correctly without washing out the colors.
In the future we'll see how HDR10+ and HLG formats come along and how difficult it would be to support them. I'm hoping for the best.
I hope that they update the Kodi Wiki with this HDR information.
|