No HW accel on Kodi-20

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

No HW accel on Kodi-20

Postby kabutor » Fri Aug 18, 2023 6:28 pm

I just updated archarm and found out that I have no HW accel on Kodi, not with the x264 or x265, I press O while playing and I see the ff-h264 (SW) flag.

I tried downgrading the kernel to
6.1.42-1-rpi-ARCH #1 SMP Thu Jul 27 11:54:50 MDT 2023 armv7l GNU/Linux
but I have the same results than with latest linux-rpi-6.1.45-1
Some info:

[code]pacman -S kodi-rpi --info
Repository : alarm
Name : kodi-rpi
Version : 20.2-3
Description : Media player and entertainment hub with hw accel for RPi 3/4/400, gbm_nexus fork
Architecture : armv7h
URL :make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://github.com/graysky2/xbmc/tree/gs-gbm_nexus', '', ' class="postlink"')
Licenses : GPL2
Groups : None
Provides : xbmc kodi=20.2 kodi-common=20.2
Depends On : bluez-libs curl dav1d desktop-file-utils hicolor-icon-theme fmt lcms2 libass libbluray libcdio libcec-rpi libmicrohttpd libnfs libplist libpulse libxslt
lirc mariadb-libs mesa libpipewire python-pillow python-pycryptodomex python-simplejson shairplay smbclient sndio spdlog sqlite taglib tinyxml libxkbcommon
polkit linux>=5.4.35 lzo libinput pcre
Optional Deps : afpfs-ng: Apple shares support
bluez: Blutooth support
linux-rpi: HW accelerated decoding
python-pybluez: Bluetooth support
pulseaudio: PulseAudio support
pipewire: PipeWire support
Conflicts With : xbmc kodi arm-mem-git shairplay-git kodi-rbp kodi-rbp3 kodi-rbp4 kodi-rpi-legacy
Replaces : xbmc-rbp-git kodi-rbp4
Download Size : 33.33 MiB
Installed Size : 84.86 MiB
Packager : Arch Linux ARM Build System <builder+xu3@archlinuxarm.org>
Build Date : Fri Jul 28 22:31:25 2023
Validated By : MD5 Sum SHA-256 Sum Signature

cpuinfo:

processor : 3
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 270.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2711
Revision : c03112
Serial : 100000003248cc2f
Model : Raspberry Pi 4 Model B Rev 1.2

[/code]

Been trying several things, nothing seems to do anything (I have the default config.txt and kodi.config.txt on boot also)
kabutor
 
Posts: 8
Joined: Thu Feb 04, 2016 11:09 pm

Re: No HW accel on Kodi-20

Postby graysky » Fri Aug 18, 2023 9:48 pm

You have to modify /boot/config.txt and reboot.
make_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/kodi-rpi/kodi.install#L4-L11', '', ' class="postlink"')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: No HW accel on Kodi-20

Postby kabutor » Fri Aug 18, 2023 10:59 pm

Oh, yes sorry, when I said that I have the config.txt as default, I mean I just put the new files on the package, but I included the [all] lines, but still no hw accel.
---------------------
# See /boot/overlays/README for all available options

dtoverlay=vc4-kms-v3d
initramfs initramfs-linux.img followkernel

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# Uncomment if you want to disable wifi or bluetooth respectively
#dtoverlay=disable-wifi
#dtoverlay=disable-bt

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Automatically load overlays for detected cameras
camera_auto_detect=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
include kodi.config.txt

-------------------
dtoverlay=vc4-kms-v3d,cma-512
### leave this next entry blank as ensures dt parameters like dtparam=audio=on
### which could appear after "include kodi.config.txt" in /boot/config.txt are
### applied to the base dt instead of to the last dtoverlay loaded
dtoverlay=
disable_overscan=1
disable_fw_kms_setup=1

### RPi 4B/400 ONLY
### For 4k content @ 60 Hz refresh rate, uncomment hdmi_enable_4kp60=1
#hdmi_enable_4kp60=1

### uncomment to use the analog audio jack
### the 2nd option prevents crackling audio when HW accel decoding is active
#dtparam=audio=on
#audio_pwm_mode=1
---------------------------------
kabutor
 
Posts: 8
Joined: Thu Feb 04, 2016 11:09 pm

Re: No HW accel on Kodi-20

Postby graysky » Fri Aug 18, 2023 11:06 pm

I am getting the same. Need to debug. Thanks for reporting. Do you know when you had a last-known-good set of packages?
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: No HW accel on Kodi-20

Postby kabutor » Fri Aug 18, 2023 11:16 pm

I'm sorry I don't know the exact date, I installed the mosquitto broker a week ago and I had to update the whole system, I guess it was from there. EDIT: I don't do frequents updates on this, maybe last update befora that was 2-3 months ago)
I realized this morning playing a x265 old movie I had on the drive that the playback was very choppy, and it's a movie I've watched before without problems, doing some tests I saw that it was not only on the x265, but in x264 as well.

Thanks for the help.
kabutor
 
Posts: 8
Joined: Thu Feb 04, 2016 11:09 pm

Re: No HW accel on Kodi-20

Postby graysky » Fri Aug 18, 2023 11:27 pm

I am thinking this is not due to the kernel but to something in the kodi codebase. Why: hw-accell on ffmpeg-rpi works just fine. Continuing to dig.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: No HW accel on Kodi-20

Postby unformatted » Sat Aug 19, 2023 8:15 am

I recently upgraded kodi-rpi on RPi4 aarch64 which hasn't been upgraded since March and also had no HW acceleration.

Under Settings > Player > Videos I noticed "Allow using DRM PRIME decoder" had been turned off. After turning on everything was fine. I also noticed a new setting "Allow hardware deinterlace with DRM PRIME" has beed added but that does not work on my setup.

Perhaps because of this new setting has been added, HW acceleration has been turned off.
unformatted
 
Posts: 120
Joined: Tue Mar 09, 2021 5:23 pm

Re: No HW accel on Kodi-20

Postby graysky » Sat Aug 19, 2023 9:59 am

Good find! Upstream dropped usr/share/kodi/system/settings/appliance.xml which set this automatically. I need to wait for the new build for spdlog (1.12) to get updated in order to build due to incompatibilities with the fmt-10.1.0. Once that happens, I will fix in our packages.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: No HW accel on Kodi-20

Postby kabutor » Sat Aug 19, 2023 11:08 am

Yes, that fixed it, good find.

Thanks again :)
kabutor
 
Posts: 8
Joined: Thu Feb 04, 2016 11:09 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 6 guests