View previous topic :: View next topic |
Author |
Message |
thegrind n00b
Joined: 22 Sep 2024 Posts: 20
|
Posted: Sun Sep 22, 2024 3:08 am Post subject: Kodi and hardware acceleration missing |
|
|
I installed Gentoo on a Raspberry PI 5 following the Gentoo wiki page. I then installed Kodi Git using emerge. I am connecting my PI to a Sharp TV using HDMI. I am using gbm. Everything is working (CEC, pluseaudio, gbm, kodi, video, audio) except I can't enable to DRM Prime Encoder as I am not given this option. Yes, I made sure I went into expert mode as I know it is hidden in basic. When I emerged kodi, I didn't set the gles flag. I also didn't set vaapi and vdpau. I tried with vaapi but I got a libva error when starting kodi but kodi still worked. From what I read vaapi is for Intel and vdpau is for Nvidia. I didn't set a gbm flag for mesa as when I tried it didn't show up. When I emerged mesa I did set the video cards to vc4 and v3d.
Code: | 2024-09-21 19:01:42.047 T:1665 debug <general>: [threads] name: 'libinput' priority: '1'
2024-09-21 19:01:42.047 T:1665 info <general>: RetroPlayer[RENDER]: Registering renderer factory for DMA
2024-09-21 19:01:42.047 T:1665 info <general>: RetroPlayer[RENDER]: Registering renderer factory for OpenGL
2024-09-21 19:01:42.047 T:1665 debug <general>: CDRMUtils::OpenDrm - drm devices found: 2
2024-09-21 19:01:42.099 T:1665 info <general>: CDRMUtils::FindConnector - using connector: HDMI-A-1
2024-09-21 19:01:42.099 T:1665 debug <general>: CDRMUtils::OpenDrm - opened device: /dev/dri/card1
2024-09-21 19:01:42.099 T:1665 debug <general>: CDRMUtils::PrintDrmDeviceInfo - DRM Device Info:
available_nodes: 0x01
nodes:
nodes[0]: /dev/dri/card1
bustype: 0x02
platform:
fullname: /axi/gpu
2024-09-21 19:01:42.100 T:1665 debug <general>: CDRMUtils::OpenDrm - opened render node: /dev/dri/card1
2024-09-21 19:01:42.153 T:1665 info <general>: CDRMUtils::FindConnector - using connector: HDMI-A-1
2024-09-21 19:01:42.153 T:1665 info <general>: CDRMUtils::FindEncoder - using encoder: 31
2024-09-21 19:01:42.153 T:1665 debug <general>: CDRMUtils::FindCrtc - original crtc mode: 1920x1080 @ 60 Hz
2024-09-21 19:01:42.153 T:1665 info <general>: CDRMUtils::FindPlanes - using crtc: 88
2024-09-21 19:01:42.153 T:1665 debug <general>: CDRMUtils::FindPlanes - using video plane 78
2024-09-21 19:01:42.153 T:1665 debug <general>: CDRMUtils::FindPlanes - using 10bit gui plane 100
2024-09-21 19:01:42.153 T:1665 debug <general>: CDRMAtomic::InitDrm - initialized atomic DRM
2024-09-21 19:01:42.153 T:1665 info <general>: [display-info] make: 'Sharp Corporation' model: 'SHARP HDMI'
2024-09-21 19:01:42.196 T:1665 debug <general>: CWinSystemGbm::InitWindowSystem - initialized DRM |
The Kodi log shows it as being detected but I can't get the option in Kodi. I also have another microSD that has arcg arm64 and it works with HW acceleration. What am i missing?[/code] |
|
Back to top |
|
|
Ralphred l33t
Joined: 31 Dec 2013 Posts: 653
|
Posted: Mon Sep 23, 2024 3:52 am Post subject: |
|
|
There is no hardware encode support for Pi5 (it's not on the SoC), and the decode support* is from RPi-Distro forks of vlc and ffmpeg (https://github.com/RPi-Distro).
*though testing with my 4k-test.mkv, whilst vlc accepts hwdec=drm, the cpu usage is the same... |
|
Back to top |
|
|
thegrind n00b
Joined: 22 Sep 2024 Posts: 20
|
Posted: Mon Sep 23, 2024 4:40 am Post subject: |
|
|
Thanks for the help. I ended up setting the gles use flag and then re-emerged Kodi and now I am seeing the enable the hardware SRM Prime Encoder option. |
|
Back to top |
|
|
thegrind n00b
Joined: 22 Sep 2024 Posts: 20
|
Posted: Tue Sep 24, 2024 3:46 am Post subject: |
|
|
I assumed it was hw encoding all this time. I checked and it still said SW. I went back to my arch setup and it says the same. |
|
Back to top |
|
|
|