xbmc / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS, tvOS and Windows.
https://kodi.tv/
Other
18.41k stars 6.29k forks source link

Videos played with Kodi for Debian 20.1 on Pine64 running Debian 12 have very low framerate #24020

Closed rtwld closed 11 months ago

rtwld commented 11 months ago

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

Videos played with Kodi for Debian 20.1 on Pine64 running Debian 12 stutter, probably because no hardware acceleration is used.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

    • Kodi should start playing videos smoothly.
    • The expected driver should be loaded.

Actual Behavior

  1. All videos streamed and played locally (h264, h265) stutter with ~5 FPS.
  2. The expected driver is not loaded.

Possible Fix

The bug is probably caused because Kodi is using sw video acceleration and not hw video acceleration.

To Reproduce

Steps to reproduce the behavior:

Debuglog

The debuglog can be found here:

# grep -i "error\|cedrus\|hardware\|acceleration" ~/.kodi/temp/kodi.log
2023-10-28 23:30:37.817 T:304032   error <general>: GetDirectory - Error getting /usr/lib/aarch64-linux-gnu/kodi/addons
2023-10-28 23:30:37.817 T:304032   error <general>: GetDirectory - Error getting special://xbmcbin/addons
2023-10-29 00:30:39.204 T:304032   error <general>: DBus error: org.freedesktop.DBus.Error.InvalidArgs - No such property “CanSuspend”
2023-10-29 00:30:39.206 T:304032   error <general>: DBus error: org.freedesktop.DBus.Error.InvalidArgs - No such property “CanHibernate”
2023-10-29 00:30:45.226 T:304032    info <general>: EGL_EXTENSIONS = EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control 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_partial_update 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
2023-10-29 00:30:45.470 T:304032    info <general>: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_gpu_program_parameters GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_EXT_texture_swizzle GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_shader_texture_lod GL_EXT_provoking_vertex GL_NV_copy_image GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_EXT_direct_state_access GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_texture_storage GL_EXT_framebuffer_multisample_blit_scaled GL_AMD_shader_trinary_minmax GL_ARB_clear_buffer_object GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_ARB_buffer_storage GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_shading_language_include GL_EXT_debug_label GL_ARB_clip_control GL_ARB_get_texture_sub_image GL_ARB_texture_barrier GL_KHR_context_flush_control GL_ARB_parallel_shader_compile GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_NV_ES1_1_compatibility
2023-10-29 00:30:45.868 T:304032   error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
2023-10-29 00:30:46.206 T:304032   error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
2023-10-29 00:30:47.103 T:304098    info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats

2023-10-27 16:40:38.916 T:3797     info <general>: EGL_EXTENSIONS = EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control 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_partial_update 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
                                                   Error: EGL_BAD_MATCH
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:40:38.918 T:3797    debug <general>: Failed to create EGL context (EGL error 12288)
2023-10-27 16:40:39.127 T:3797     info <general>: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_gpu_program_parameters GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_EXT_texture_swizzle GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_shader_texture_lod GL_EXT_provoking_vertex GL_NV_copy_image GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_EXT_direct_state_access GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_texture_storage GL_EXT_framebuffer_multisample_blit_scaled GL_AMD_shader_trinary_minmax GL_ARB_clear_buffer_object GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_ARB_buffer_storage GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_shading_language_include GL_EXT_debug_label GL_ARB_clip_control GL_ARB_get_texture_sub_image GL_ARB_texture_barrier GL_KHR_context_flush_control GL_ARB_parallel_shader_compile GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_NV_ES1_1_compatibility
2023-10-27 16:40:39.314 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
2023-10-27 16:40:39.354 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:40:40.275 T:3838     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2023-10-27 16:42:17.810 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:42:19.657 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:42:20.506 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:42:20.530 T:3837    debug <general>: ActiveAE::SyncStream - average error of -23.601166, start adjusting
2023-10-27 16:42:20.530 T:3837    debug <general>: ActiveAE::SyncStream - average error -0.017832 below threshold of 30.000000
2023-10-27 16:42:20.874 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:42:38.534 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:43:13.509 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:43:14.007 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:43:14.380 T:3837    debug <general>: ActiveAE::SyncStream - average error of 8.062257, start adjusting
2023-10-27 16:43:14.380 T:3837    debug <general>: ActiveAE::SyncStream - average error 0.062257 below threshold of 30.000000
2023-10-27 16:43:14.421 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:43:23.508 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:43:30.574 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:43:31.266 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:43:31.780 T:3837    debug <general>: ActiveAE::SyncStream - average error of -5.929394, start adjusting
2023-10-27 16:43:31.780 T:3837    debug <general>: ActiveAE::SyncStream - average error -0.012727 below threshold of 30.000000
2023-10-27 16:43:31.979 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:43:38.950 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:54:13.657 T:3838     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2023-10-27 16:54:13.835 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 16:54:14.394 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:54:14.913 T:3837    debug <general>: ActiveAE::SyncStream - average error of -19.738288, start adjusting
2023-10-27 16:54:14.917 T:3837    debug <general>: ActiveAE::SyncStream - average error -0.009121 below threshold of 30.000000
2023-10-27 16:54:15.059 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 16:54:17.480 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 17:23:00.419 T:3838     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2023-10-27 17:25:03.439 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR
2023-10-27 17:25:04.392 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 17:25:05.181 T:3837    debug <general>: ActiveAE::SyncStream - average error of -42.889165, start adjusting
2023-10-27 17:25:05.181 T:3837    debug <general>: ActiveAE::SyncStream - average error -0.014165 below threshold of 30.000000
2023-10-27 17:25:05.636 T:3797    error <general>: CShader::InsertSource - failed to open file gl_tonemap.glsl
2023-10-27 17:25:22.461 T:3797    error <general>: CYUVShaderGLSL::CYUVShaderGLSL - failed to open file gl_shader_frag_texture_lim.glsl
                                                   Error: EGL_BAD_SURFACE
                                                   Type: EGL_DEBUG_MSG_ERROR_KHR

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

[W][05856.631486] pw.conf      | [          conf.c:  939 try_load_conf()] can't load config client.conf: No such file or directory 
[E][05856.631943] pw.conf      | [          conf.c:  963 pw_conf_load_conf_for_context()] can't load default config client.conf: No such file or directory 
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/sun4i-drm_drv_video.so
libva info: va_openDriver() returns -1

Apparently, a driver is missing. I didn't check the directory …/dri/ at the time, but I upgraded to bookworm in the hopes that a new Debian release and Kodi 20 would solve the problem. However, the same problem was still present, with the same error message.

armada-drm_dri.so   kgsl_dri.so        mxsfb-drm_dri.so  st7735r_dri.so
d3d12_dri.so        kirin_dri.so       nouveau_dri.so    stm_dri.so
etnaviv_dri.so      kms_swrast_dri.so  panfrost_dri.so   sun4i-drm_dri.so
exynos_dri.so       komeda_dri.so      pl111_dri.so  swrast_dri.so
hx8357d_dri.so      lima_dri.so        r300_dri.so   tegra_dri.so
ili9225_dri.so      mali-dp_dri.so     r600_dri.so   v3d_dri.so
ili9341_dri.so      mcde_dri.so        radeonsi_dri.so   vc4_dri.so
imx-dcss_dri.so     mediatek_dri.so    rcar-du_dri.so    virtio_gpu_dri.so
imx-drm_dri.so      meson_dri.so       repaper_dri.so    vmwgfx_dri.so
imx-lcdif_dri.so    mi0283qt_dri.so    rockchip_dri.so   zink_dri.so
ingenic-drm_dri.so  msm_dri.so         st7586_dri.so`
[W][73273.817176] pw.conf      | [          conf.c:  939 try_load_conf()] can't load config client.conf: No such file or directory
[E][73273.817504] pw.conf      | [          conf.c:  963 pw_conf_load_conf_for_context()] can't load default config client.conf: No such file or directory
libva info: Open new log file 1.105141.thd-0x0002fa6d for the thread 0x0002fa6d
libva info: LIBVA_TRACE is on, save log into 1.105141.thd-0x0002fa6d
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/sun4i-drm_drv_video.so
libva error: /usr/lib/aarch64-linux-gnu/dri/sun4i-drm_drv_video.so has no function __vaDriverInit_1_0
libva info: va_openDriver() returns -1
# lsmod | grep cedrus
sunxi_cedrus           45056  0
v4l2_mem2mem           36864  1 sunxi_cedrus
videobuf2_dma_contig    24576  1 sunxi_cedrus
videobuf2_v4l2         24576  2 sunxi_cedrus,v4l2_mem2mem
videobuf2_common       49152  5 sunxi_cedrus,videobuf2_dma_contig,videobuf2_v4l2,v4l2_mem2mem,videobuf2_memops
videodev              204800  4 sunxi_cedrus,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
mc                     53248  5 sunxi_cedrus,videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
# vainfo
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: Open new log file /root/.kodi/temp/vainfo.log.105700.thd-0x0002fe19 for the thread 0x0002fe19
libva info: LIBVA_TRACE is on, save log into /root/.kodi/temp/vainfo.log.105700.thd-0x0002fe19
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/lima_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Your Environment

Used Operating system:

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

enen92 commented 11 months ago

Have you tried libreelec nightlies? Worked pretty well last time I tested (around mid last week) with direct to plane. They have a bunch of kernel patches though... I feel the Kodi repo is not the place to ask for help as the amount of variables at play here is quite high...maybe try the forums?

rtwld commented 11 months ago

Have you tried libreelec nightlies? Worked pretty well last time I tested (around mid last week) with direct to plane. They have a bunch of kernel patches though...

I heard about it, that's why I think that the latest linux+kodi combo can run on my hardware. I was running kodi on libreelec on a Rasberry Pi 3+ beforehand, which worked quite well, but I was so annoyed by all the stuff missing from the linux installation (which I gather is by design). DietPi would be the perfect balance for me.

I feel the Kodi repo is not the place to ask for help as the amount of variables at play here is quite high...maybe try the forums?

Will do, thanks for the pointer.

NewTronInc commented 11 months ago

Hi, I got the same problem on Banana Pro. The latest sources i've found can be retireved from https://github.com/bootlin/cedrus/. Set export LIBVA_DRIVER_NAME=sunxi_cedrus accordingly. Kodi will look for sunxi_cedrus_drv_video.so then. Armbian should contain that.

rtwld commented 11 months ago

Hi, I got the same problem on Banana Pro. The latest sources i've found can be retireved from https://github.com/bootlin/cedrus/. Set export LIBVA_DRIVER_NAME=sunxi_cedrus accordingly. Kodi will look for sunxi_cedrus_drv_video.so then. Armbian should contain that.

Unfortunately, DietPi does not contain sunxi_cedrus_drv_video.so, even though

# lsmod | grep cedrus
sunxi_cedrus           45056  0
v4l2_mem2mem           36864  1 sunxi_cedrus
videobuf2_dma_contig    24576  1 sunxi_cedrus
videobuf2_v4l2         24576  2 sunxi_cedrus,v4l2_mem2mem
videobuf2_common       49152  5 sunxi_cedrus,videobuf2_dma_contig,videobuf2_v4l2,v4l2_mem2mem,videobuf2_memops
videodev              204800  4 sunxi_cedrus,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
mc                     53248  5 sunxi_cedrus,videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem