What is the status of Kodi in Raspbian Bookworm?

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

What is the status of Kodi in Raspbian Bookworm?

Post by /RaspberryPi »


Raspbian Bookworm now seems officially released at https://www.raspberrypi.com/software/operating-systems/ , and there seems to be a Raspberry Pi build of Kodi available: 3:20.2-2~bookworm in http://archive.raspberrypi.org/debian. There is also Kodi 2:20.0+dfsg-2 http://raspbian.raspberrypi.org/raspbian, and that seems to be the generic Debian build. (Apparently http://archive.raspberrypi.org/debian is the repository with Raspberry Pi customizations, with raspi-config for example only being present in that one.)

The 2:20.0+dfsg-2 generic Debian build of Kodi works on my Raspberry Pi 2 B, but playback is very slow, I guess due to lack of hardware acceleration.

The 3:20.2-2~bookworm Raspberry Pi build refuses to start. First, sudo denies permissions for this command: sudo /usr/bin/openvt -sw -- su -c '/usr/lib/arm-linux-gnueabihf/kodi/kodi.bin --standalone' kodi It seems that command is run from /usr/bin/kodi
Even if I allow sudo to run that, it still fails.
I can however run sudo -u kodi /usr/lib/arm-linux-gnueabihf/kodi/kodi.bin --standalone to start Kodi. However 1080p H.264 playback still isn't fully smooth, and it uses excessive CPU time, around 300%.

Should I get Kodi from another source? I'm thinking I should maybe install the version from Bullseye, the previous version of Raspbian. That Kodi worked fine. I am certainly not going to install a whole other distribution of Linux that is customized for running Kodi.

Edit: I've managed to get Kodi from Bullseye working in Bookworm:
  • Purge Kodi packages
  • Switch sources back to Bullseye, and sudo apt update
  • Install Kodi
  • Download libraspberrypi0_1%3a2+git20230322~143557+9d5250f-1_armhf.deb and extract it. (Use 7z x on the .deb, then extract the tar inside.) Copy libmmal_core.so.0 , libmmal_util.so.0 , libmmal_vc_client.so.0 and libvcsm.so.0 from there to /usr/lib/arm-linux-gnueabihf/ . (The package has dependencies that are incompatible with the new kernel. These libraries are not part of the Bookworm libraspberrypi0 package, so this does not overwrite any files.)
  • sudo apt-mark hold kodi kodi-bin to prevent new Bookworm Kodi from being installed.
  • Switch sources back to Bookworm, and sudo apt update again. Only libmpdec3 got updated when I did a sudo apt full-upgrade.

Kodi now plays 1080p H.264 smoothly, with about 25% CPU usage.
submitted by /u/is_reddit_useful
[link] [comments]

Source: https://www.reddit.com/r/raspberry_pi/c ... _bookworm/
/RaspberryPi
Post Reply

Return to “Raspberry Pi Forum”