kodi-rpi-git RPI5 HEVC hwaccel

Problems with packages? Post here, using [tags] of the package name.

kodi-rpi-git RPI5 HEVC hwaccel

Postby hyke » Sun Feb 15, 2026 5:20 am

@graysky2,

On the RPI5, are you able to get Kodi to use hardware acceleration for HEVC decoding?

Caveats:
* RPI5 HEVC decoding hardware acceleration is exposed by the kernel using v4l2request (Stateless API)
* upstream ffmpeg does not support v4l2request yet
* Raspberry PI and LibreELEC have been maintaining Kodi builds with external patches to get hardware acceleration.

On LibreELEC, the v4l2request is supported via DRM Prime using GBM.

which is enabled in
[code]
<group id="3">
<setting id="videoplayer.useprimedecoder">
<default>true</default>
</setting>
<setting id="videoplayer.useprimedecoderforhw">
<visible>true</visible>
</setting>
<setting id="videoplayer.useprimerenderer">
<default>0</default>
</setting>
</group>
[/code]
in [code]/usr/share/kodi/system/settings/appliance.xml[/code]
make_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/mediacenter/kodi/config/appliance-gbm.xml', '', ' class="postlink"')make_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/LibreELEC/LibreELEC.tv/blob/f2a4102007f008086a12c952de202a30e8d4d6a8/packages/mediacenter/kodi/package.mk#L77', '', ' class="postlink"')make_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/LibreELEC/LibreELEC.tv/blob/f2a4102007f008086a12c952de202a30e8d4d6a8/packages/mediacenter/kodi/package.mk#L404-L408', '', ' class="postlink"')

Would the kodi-rpi package ever include defaults like this? It would be difficult, because the kodi package supports running on x11, wayland, and GBM?
Raspberry Pi 3 Model B Rev 1.2|Raspberry Pi Zero 2 W Rev 1.0|Hardkernel ODROID-HC4|Orange Pi 5|Orange Pi 5 Max
linux-rpi|linux-rpi|linux-aarch64|linux-opi5|linux-collabora:aarch64
hyke
 
Posts: 27
Joined: Sun Nov 10, 2013 2:26 am

Re: kodi-rpi-git RPI5 HEVC hwaccel

Postby hyke » Sun Feb 15, 2026 5:32 am

The reason for my curiosity is that I'm using your kodi-rpi-git PKGBUILD as a starting point for getting rk3588 hardware acceleration working on mainline kernel.

The RK3588 video decoding hardware acceleration is also using v4l2request API from the kernel. And Jonas has made more progress getting v4l2request into upstream ffmpeg.make_clickable_callback(MAGIC_URL_FULL, '
', 'https://code.ffmpeg.org/Kwiboo/FFmpeg/src/branch/v4l2-request-n8.0.1', '', ' class="postlink"')

kodi-rpi-git is on a new enough version of Kodi that supports ffmpeg 8.

Ultimately, I'm wondering if the kodi-rpi-git package could be used to support the RK3588 hardware acceleration? Or does that package stick closely with the Raspberry Pi's version?
Raspberry Pi 3 Model B Rev 1.2|Raspberry Pi Zero 2 W Rev 1.0|Hardkernel ODROID-HC4|Orange Pi 5|Orange Pi 5 Max
linux-rpi|linux-rpi|linux-aarch64|linux-opi5|linux-collabora:aarch64
hyke
 
Posts: 27
Joined: Sun Nov 10, 2013 2:26 am

Re: kodi-rpi-git RPI5 HEVC hwaccel

Postby graysky » Sun Feb 15, 2026 3:28 pm

kodi-rpi-git does just this. you have HEVC on hw.
graysky
Developer
 
Posts: 1925
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to Packages

Who is online

Users browsing this forum: No registered users and 41 guests