Raspberry PI 5 can't play H.264 videos, while HEVC works fine
#1
Hello everybody, I'm a new Kodi user having trouble with my setup and would appreciate your guidance to debug and fix the issue.
I recently installed Kodi on my Raspberry Pi 5 with 8GB RAM and Raspberry Pi OS Light.
Kodi plays 4K HEVC videos no problems, but for some reason it can't play H.264 videos, not even the old low-res movies. I can hear the audio, and I can see a static pixelated picture that changes once every couple of seconds.

Info about the Pi:
Code:

Linux raspberrypi5 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux

I tried to enable the debug logs, and the moment I start the video I get an endless stream of the errors - here are logs after starting Kodi and playing the video for 5 seconds: https://paste.kodi.tv/dihucazaja.kodi
It's also worth mentioning that if I play the same video from the CLI directly with VLC or ffplay it works like a charm.
I'm not sure what's the issue and how to debug it - any ideas are welcome!
Reply
#2
Hi Bobby1800,
I was having the same problem after the last update of the OS in my raspi 5.  I also noticed the cma errors in my dmessage.

This fixed the problem: https://forums.raspberrypi.com/viewtopic.php?t=380286

i.e. I changed the dtoverlay line in my config.txt  from this:
    dtoverlay=vc4-kms-v3d
to this:
   dtoverlay=vc4-kms-v3d,cma-256

I hope this helps,
V ranger
Reply
#3
Actually, following the thread the you linked I just installed Kodi v21 and everything works again.
What I didn't realize is that `kodi` and `kodi21` are published under different names in apt-get, so my previous re-install and update attempts weren't really having any effect.
Well, now I know and an easy fix is the best fix Big Grin
Thank you, V ranger, for pointing me to the thread that lead me to the solution!
Reply
#4
Try with LibreELEC instead.
https://libreelec.tv/downloads/raspberry/
Reply

Logout Mark Read Team Forum Stats Members Help
Raspberry PI 5 can't play H.264 videos, while HEVC works fine0
This forum uses Lukasz Tkacz MyBB addons.