Kodi Community Forum

Full Version: Kodi stutters when loading local files with the Jellyfin plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I had been using Libreelec with Kodi since January on my Raspberry Pi 3 without any problem, with my films and tv shows stored in an external HDD with its own power supply. A month ago I've installed Jellyfin server on the same Pi via the Docker Kodi addon, getting the image from jellyfin/jellyfin. Since streaming videos to my laptop seemed to work so well, I've decided to install the Jellyfin plugin in Kodi on the Pi as well — basically having server and client on the same machine.

I've managed to set it up in native mode, meaning that Kodi accesses the film directly from the HDD, but syncs its metadata with Jellyfin. Indeed if I open the Chorus web interface and open the metadata for a film, it will show its local path (namely /media/HDD/Some Film/Some.Film.mkv). So far so good.

Unfortunately I'm noticing occasional stuttering when playing videos that wasn't there before. This seem to correspond to points with sudden movement on screen, which makes me think that they happen when there's a sudden increase in bitrate. On the other hand, it doesn't seem to be affected by the average bitrate of the video: an 8Mbps WEB-DL will stutter just as much as a 20Mbps encode, both doing so in action-heavy scenes.

Mind you, this lasts for a fraction of a second. To put it more clearly, it feels like every 10-20 minutes a handful of consecutive frames is dropped.

I've disabled the setting in Jellyfin that would otherwise have it sync metadata during playback, and it seems that it is indeed doing so. You can see that at the end of the logs I've posted below: Jellyfin synced data when I started watching an episode (2020-11-06 12:53), and again when I stopped the same episode halfway through (2020-11-06 13:06), but doesn't try to do anything inbetween. Hence I can only think that the culprit must be Kodi, which however was working just fine before.

Let me know if you need any more detail.

Kodi log: https://pastebin.com/1jNZaxCC
Jellyfin log: https://pastebin.com/zC6tL0sb
Well, it's also freezing now. This has actually happened as well another couple of times, but by reading the log I assumed it was due to an issue with DLNA, which I've however since disabled.

Anyway, here are the new logs. The crash happened some time after 20:00, although I don't see anything about it at the end.

Kodi log: https://pastebin.com/ULKw4e0X
Jellyfin log: https://pastebin.com/BpSfzC2G
The forum moderators have determined that banned addons (wiki) are present on your system. To receive assistance here, these banned items must be removed. If a clean log is not submitted within 3 days, then the relevant post(s) will be removed after this time.
I've deleted a bunch of older plugins to be safe. I've also set the Jellyfin addon to debug, which should give more info about what's going on. Please do give me more than those three days though, I want to make sure I can get a log that includes one of the crashes I'm experiencing.
The thread may be removed if no clean log is posted.

However if you have cleaned things up, you are welcome to post a new thread with the new clean log whenever is convenient to you.
I've deleted the addon you were probably referring to. I've also enabled debug logging from the Jellyfin addon. As a consequence the log ended up being 65MB, which apparently is too much for paste.kodi.tv. I've uploaded it to Catbox instead, I hope it's okay.

Kodi log: https://files.catbox.moe/mdxs5b.log

This ends just at the point where Kodi became unrespondive and showed a single, static frame on the TV.

Also, for the sake of completeness, here's the Jellyfin log:

Jellyfin log: https://pastebin.com/RAAQdFRD

Oddly enough, this goes on for a few more minutes. I even managed to briefly load the client from my phone while Kodi on the Pi was already frozen. A few minutes afterwards it was already unable to find the server, though.