jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
785 stars 105 forks source link

Kodi videos played via Jellyfin start dropping frames / stuttering after several minutes #860

Closed manuquadrat closed 1 month ago

manuquadrat commented 2 months ago

Hi all.

I am using Kodi 21 on a Homatics Box R 4K Plus w. Android TV 12.

Describe the Bug & How to reproduce

Since Kodi 21 I have encountered the following problem: When I play a video, after about 12 - 15 minutes of playback, Kodi starts dropping frames. It always starts with just dropping a few frames every few seconds, but then it gets worse until the whole video is heavily stuttering and only running at 17-20 fps. In my experience, this is more likely to occur with a high bitrate video file.

I already tried to change the Kodi cache sizes (20M, 128M, 192M, 256M), unfortunately without success.

Here is the complete debug-log: https://paste.kodi.tv/narigeyefu

I first posted this issue and log on the Kodi forums, but the Kodi developer in the forums has assessed this as follows:

Your jellyfin installation runs amok and tries to load its settings, which it cannot find every some milliseconds ...

2024-05-05 01:40:45.333 T:5746 debug CAddonSettings[0@plugin.video.jellyfin]: trying to load setting definitions from old format... 2024-05-05 01:40:45.337 T:5746 debug : requested setting (LastIncrementalSync) was not found. 2024-05-05 01:40:45.337 T:5746 debug : requested setting (SyncInstallRunDone) was not found. 2024-05-05 01:40:45.338 T:5746 debug : requested setting (groupedSets) was not found. 2024-05-05 01:40:45.338 T:5746 debug : requested setting (platformDetected) was not found. 2024-05-05 01:40:45.343 T:5746 debug CAddonSettings[0@plugin.video.jellyfin]: trying to load setting definitions from old format... 2024-05-05 01:40:45.346 T:5746 debug : requested setting (LastIncrementalSync) was not found. 2024-05-05 01:40:45.347 T:5746 debug : requested setting (SyncInstallRunDone) was not found. 2024-05-05 01:40:45.347 T:5746 debug : requested setting (groupedSets) was not found. 2024-05-05 01:40:45.347 T:5746 debug : requested setting (platformDetected) was not found. 2024-05-05 01:40:45.390 T:5746 debug CAddonSettings[0@plugin.video.jellyfin]: trying to load setting definitions from old format... 2024-05-05 01:40:45.396 T:5746 debug : requested setting (LastIncrementalSync) was not found. 2024-05-05 01:40:45.396 T:5746 debug : requested setting (SyncInstallRunDone) was not found. 2024-05-05 01:40:45.396 T:5746 debug : requested setting (groupedSets) was not found. 2024-05-05 01:40:45.397 T:5746 debug : requested setting (platformDetected) was not found.

I hope this helps to get the issue resolved.

This may be related to: https://github.com/jellyfin/jellyfin-kodi/issues/830, but I am not sure.

Kind regards

Logs https://paste.kodi.tv/narigeyefu

System (please complete the following information):

manuquadrat commented 1 month ago

After some further debugging and investigation, the issue with the frame rate dropping does not seem to be related to the Jellyfin addon, but to the current firmware of the Homatics Box R 4K Plus, which seems to be causing this issue.

The issue with the addon error messages my be better tracked with: https://github.com/jellyfin/jellyfin-kodi/issues/830