GithubHelp home page GithubHelp logo

Comments (6)

mcarlton00 avatar mcarlton00 commented on August 11, 2024

There's likely no bug here. It sounds like at least one device on your network is just a potato and can't handle the amount of data flowing through it. Do other clients/other devices work properly?

My first step would be to take caddy out of the equation completely. Just connect directly to ip:port and verify if things work correctly that way. Sometimes introducing SSL can be a significant performance hit if it's already low power enough.

It’s also extremely slow listing the contents of a synced folder

This indicates it's almost surely out of our control. iirc once a library has been synced to Kodi's database, we're no longer involved with displaying contents. That falls back to Kodi's standard library displaying menus which we have no influence over.

from jellyfin-kodi.

billkenney avatar billkenney commented on August 11, 2024

It sounds like at least one device on your network is just a potato and can't handle the amount of data flowing through it. Do other clients/other devices work properly?

I reset Kodi and configured it to use the local IP, and videos start playing in a few seconds now. It also took only 4 minutes to sync 951 movies and 1171 tv show episodes.

My server is an Intel nuc 2.6 GHz quad core i7 running on an m2 ssd, and I have a 1GB fiber connection, so I don’t think my equipment is the problem. Every other device I have uses the Jellyfin app and it works flawlessly—even over cell service. The web app also works flawlessly. I’m sure it’s some sort of network issue, I guess I can try nginx and see if that works any better.

from jellyfin-kodi.

oddstr13 avatar oddstr13 commented on August 11, 2024

I'm seeing the same on my laptop when I'm remote, haven't investigated why, as I have to buffer extensively anyways due to my slow connection. It feels like it is doing multiple roundtrips / connection attempts.

Works fine on LAN, but sometimes still as slow as ~10s.

I think this has been brought up before, but I don't remember in which context.

Listing of synced content, however, is near instant.

from jellyfin-kodi.

mcarlton00 avatar mcarlton00 commented on August 11, 2024

If this was a Pi, I would suspect a dying SD card.

In ye olden days, I had an issue where trying to direct play a file stored on a NFS share would have exactly a 12 second delay. The cause was due to some weirdness between .NET and file locking on nfs shares and had a 12 second timeout. But that's not what it sounds like is happening here.

There's also been no end of super random issues stemming from having http2 enabled, but this isn't one of those I've encountered before. But going over ip:port instead of https through caddy seems to indicate this could be another in a long line of wtf-ery involving http2. In another issue from several years ago there's also talk about having gzip enabled in the reverse proxy causes performance issues, so that could be another thing to check.

from jellyfin-kodi.

billkenney avatar billkenney commented on August 11, 2024

I appreciate the suggestions, I will definitely test these out. I magically got the Jellyfin app to connect to my domain @ port 443 yesterday (created a p12 cert/key, opening 8096/8920, changing the serverurl, etc), so it’s not an issue for me right now, but I would like to share with my family. The Jellyfin app is just as fast on my domain as it is over the local ip, which makes me think the issue is with the Kodi plugin. I’ll try Jellycon and see if I notice any difference.

from jellyfin-kodi.

billkenney avatar billkenney commented on August 11, 2024

What do you know. I disabled http2 (you have to do it globally on caddy) and gzip, and video files start playing in a few seconds. I re-enabled gzip and restarted the app and it still works. I also re-enabled http2 and it still works, but it does seem likely that one of those was causing the delay.

from jellyfin-kodi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.