KODi Problem under Retropie (Screenshot)
-
Videos under KODi do not run properly and crash. When I exit KODi afterwards, I see these error messages (screenshot). An old Retropie version runs well with an old version of KODi, all settings (system and KODi) are the same. What can you do now?
-
Are you running Kodi from the Ports system, as it's installed by RetroPie ? Please add some info about your setup, as detailed in https://retropie.org.uk/forum/topic/3/read-this-first.
-
@mitu I have a normal Retropie system on a 32GB memory card (Class10). I downloaded the image from the Retropie website and wrote the image to a memory card via Windows (as usual). I had installed KODi via Retropie Setup, but removed it again and then installed it (as a test) outside of the emulation station, but the error was still there. I did the same thing on your older system a few years ago and had no problems there. Then as now I use a Raspberry Pi3b+, now installed in a MegaPi case from Retroflag.
-
I'm not sure the default
kodi
package in Raspbian is working correctly, the one that RetroPie installs is from a 3rd party repository. Also,kodi
is not launched from an X11 session (like in your 2nd screenshot) and it's started by runningkodi-standalone
.
I suggest you try again by removing thekodi
package that you installed manually and adding back the one from RetroPie-Setup. Startkodi
from EmulationStation and if you still get an error, then get thekodi
log and post it on pastebin.com. -
I did, still the same problem.
-
Do you have the same issue with a fresh install of Retropie ?
-
I just reinstalled Retropie, at least the old version had no problems. Should I reinstall Retropie again? I can't imagine that it would be different, but I could try it in the next few days if the error can't be fixed now.
-
@Turrican2k Perhaps looking at the Kodi log file could give a pointer of where the error is ?
-
@mitu
Here is the last section of the log file, some error messages:2023-02-16 22:07:43.545 T:1654251712 NOTICE: UDP: Listening on port 9777 (ipv6 : false) 2023-02-16 22:07:43.568 T:1900291008 NOTICE: VideoPlayer::OpenFile: /var/run/lirc/lircd 2023-02-16 22:07:43.570 T:1730048192 NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001) 2023-02-16 22:07:43.584 T:1619181760 NOTICE: Creating InputStream 2023-02-16 22:07:43.585 T:1619181760 ERROR: CVideoPlayer::OpenInputStream - error opening [/var/run/lirc/lircd] 2023-02-16 22:07:43.587 T:1619181760 NOTICE: CVideoPlayer::OnExit() 2023-02-16 22:07:43.719 T:1721655488 ERROR: AddOnLog: Joystick Support: Device "Sony Interactive Entertainment Wireless Controller": can't find <controller> tag 2023-02-16 22:07:43.945 T:1721655488 NOTICE: Register - new joystick device registered on addon->peripheral.joystick/0: Controller 2023-02-16 22:07:44.159 T:1900291008 NOTICE: CVideoPlayer::CloseFile() 2023-02-16 22:07:44.162 T:1900291008 NOTICE: VideoPlayer: waiting for threads to exit 2023-02-16 22:07:44.162 T:1900291008 NOTICE: VideoPlayer: finished waiting 2023-02-16 22:07:52.739 T:1900291008 NOTICE: VideoPlayer::OpenFile: /media/usb0/Jurassic World - Dominion 2022.1080p.web.h265.mkv 2023-02-16 22:07:52.740 T:1551700160 NOTICE: Creating InputStream 2023-02-16 22:07:52.755 T:1551700160 NOTICE: Creating Demuxer 2023-02-16 22:07:52.947 T:1551700160 NOTICE: Opening stream: 0 source: 256 2023-02-16 22:07:52.947 T:1551700160 NOTICE: Creating video codec with codec id: 173 2023-02-16 22:07:52.951 T:1551700160 ERROR: CMMALVideo::Open : Video codec unknown: ad 2023-02-16 22:07:52.951 T:1551700160 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: hevc_rpi 2023-02-16 22:07:53.012 T:1551700160 NOTICE: Creating video thread 2023-02-16 22:07:53.012 T:1688084672 NOTICE: running thread: video_thread 2023-02-16 22:07:53.012 T:1551700160 NOTICE: Opening stream: 1 source: 256 2023-02-16 22:07:53.012 T:1551700160 NOTICE: Finding audio codec for: 86056 2023-02-16 22:07:53.013 T:1551700160 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder eac3 2023-02-16 22:07:53.013 T:1551700160 NOTICE: Creating audio threa 2023-02-16 22:07:53.013 T:1416175808 NOTICE: running thread: CVideoPlayerAudio::Process() 2023-02-16 22:07:53.013 T:1551700160 NOTICE: Opening stream: 3 source: 256 2023-02-16 22:07:53.015 T:1688084672 NOTICE: CDecoder::Open - fmt:183 2023-02-16 22:07:53.056 T:1416175808 NOTICE: Creating audio stream (codec id: 86056, channels: 6, sample rate: 48000, no pass-through) 2023-02-16 22:07:53.293 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84e0a0 timeout:500 2023-02-16 22:07:53.310 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.352 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84e278 timeout:500 2023-02-16 22:07:53.352 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.354 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84e450 timeout:500 2023-02-16 22:07:53.354 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.355 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84e628 timeout:500 2023-02-16 22:07:53.355 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.361 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84e800 timeout:500 2023-02-16 22:07:53.361 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.363 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84e9d8 timeout:500 2023-02-16 22:07:53.363 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.367 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84ebb0 timeout:500 2023-02-16 22:07:53.367 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.481 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84ed88 timeout:500 2023-02-16 22:07:53.482 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.482 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84ef60 timeout:500 2023-02-16 22:07:53.482 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.483 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84f138 timeout:500 2023-02-16 22:07:53.483 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.483 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84f310 timeout:500 2023-02-16 22:07:53.483 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.484 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84f4e8 timeout:500 2023-02-16 22:07:53.484 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.484 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84f6c0 timeout:500 2023-02-16 22:07:53.484 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.485 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84f898 timeout:500 2023-02-16 22:07:53.485 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.485 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84fa70 timeout:500 2023-02-16 22:07:53.485 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.485 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84fc48 timeout:500 2023-02-16 22:07:53.485 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.486 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84fe20 timeout:500 2023-02-16 22:07:53.486 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:53.486 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:0x6a84fff8 timeout:500 2023-02-16 22:07:53.486 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:54.097 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:54.097 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:54.598 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:54.598 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:55.098 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:55.099 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:55.599 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:55.599 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:56.100 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:56.100 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:56.601 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:56.601 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:57.102 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:57.102 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:57.602 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:57.602 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:58.103 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:58.103 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:58.604 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:58.604 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:59.105 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:59.105 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:07:59.606 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:07:59.606 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:00.106 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:00.106 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:00.607 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:00.607 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:01.108 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:01.108 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:01.612 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:01.612 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:02.113 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:02.113 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:02.614 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:02.614 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:03.114 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:03.115 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time 2023-02-16 22:08:03.172 T:1416175808 NOTICE: CVideoPlayerAudio::Process - stream stalled 2023-02-16 22:08:03.621 T:1688084672 ERROR: CMMALPool::GetBuffer - failed pool:0x6a81cbb0 omvb:(nil) mmal:(nil) timeout:500 2023-02-16 22:08:03.621 T:1688084672 ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time~~
-
Please use pastebin.com for the entire log.
-
-
The error is from trying to open an MPEG5 (h256) stream, which is not supported by the HW decoder on the RPI. Do you get a similar problem when playing an MPEG4 file ?
-
@mitu I downloaded and tried one such MP4 video for testing; it ran without any problems.
I also played a new retropie system on another memory card and just installed KODi directly, the error was still there with said video.
As I said, this video runs on an old Retropie system with Kodi 18.2 without any problems. If necessary, is it somehow possible to install an old version of KODi and remove the current 18.7?
-
@Turrican2k said in KODi Problem under Retropie (Screenshot):
As I said, this video runs on an old Retropie system with Kodi 18.2 without any problems. If necessary, is it somehow possible to install an old version of KODi and remove the current 18.7?
No, I don't think so.
-
@mitu Not sure... I kept my old OSMC (latest) image (fresh install, setup and backuped) including OMX player for my Pi3s for future use, I am not sure what repos for Kodi/arm are available/kept, but for me (and no, I am not able to do it) it sounds like a <core_of_choice_state/year_of_legacy> option..?.. And maybe, if there are people able and willing to setup such a pi3/retropie-legacy fork, it could be possible after all ?
@Turrican2k best option, if you really want to use HEVC Videos with a Pi3 in Kodi/Retropie, is to find the people which are able to create such an install/fork.
P.S.: ... For me I never understood why Retropie included Kodi, or my Kodi based OS of choice (OSMC) included emulators (mixing purpose and context).
P.P.S.: But that is just me and I never was a fan of "suits" and always prefered single solution/context apps/programms (Edit: bloody me, why am I using retropie/libretro at all on the pi? dough? Sigh...).Edit: Ok, forget about that thought -> as I had forgotten that HEVC decoding on the Pi3 is due to OMX Player, and as that one (sadly as it is) is decapricated under bullseye (and AFAIK only works under fkms, not kms), such a repo would just be another dead-end :/
-
@Ashpool said in KODi Problem under Retropie (Screenshot):
Edit: Ok, forget about that thought -> as I had forgotten that HEVC decoding on the Pi3 is due to OMX Player, and as that one (sadly as it is) is decapricated under bullseye (and AFAIK only works under fkms, not kms), such a repo would just be another dead-end :/
You're confusing HEVC with MPEG. The Pi3 doesn't have any HEVC (MPEG5) HW decoding/encoding capabilities, this was added on the Pi4 hardware. The Pi4 also doesn't have HW MPEG decoding, which is largely unnecessary on the PI4's CPU.
-
@mitu Nope ;), even if the Pi3 had no HW Decoding for HEVC, MMAL/OMX somehow utilized parts of the existing HW-Decoding capabilities for h265 Playback. With Leia I have no playback issues for 720p/1080p HEVC content (most encoded via x265 with preset medium/crf 16) on my OSMC install (Pi3B+), with later versions that is a nogo.
Edit: In the time of the introduction of Matrix, posts like this one from pi3 users where emergent.
Edit2: Ok, and maybe my memory served me wrong and it wasn't due to MMAL/OMX but a modified ffmpeg-version applying the magic (together with MMAL?). -
As I said, in an old version, videos are displayed smoothly on the RPI3, which no longer works in the new version. Does anyone know where exactly KODi is installed under Retropie? Then I could copy KODi from my old Retropie version to a stick and overwrite it on my new Retropie version (?).
-
i think the path for kodi is this
/opt/retropie/ports
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.