On jellyfin playback is laggy over the internet reddit / selfhosted ---------------------------------------------------------------------- PR_freak · 2023-12-29 09:27 I am having laggy playback when connecting to my Jellyfin server over WAN, locally it works fine Version: 10.8.13 Operating System: Linux Architecture: X64 Server UL speed: 20Mbps Client DL speed: 80Mbps I'd say that it's not a transcoding issue since the red line in the dashboard is way ahead (if I understand correctly that's the indicator for transcoding progress) No reverse proxy, just direct port forwarding The lag stops if i reduce the bitrate to at least 4Mbps, which I wasn't expecting to be the issue here since my connection speeds are way above that I don't know what info should I provide further I am playing a 1080p HEVC Main 10 SDR webm video Audio codec is AAC LC If you need something more specific please point me to where to find it What am I missing here? Thanks in advance ---------------------------------------------------------------------- kmisterk · 2023-12-29 09:32 the "20Mbps" upload speed is a *maximum burst* speed, typically. Not exactly a speed that it can maintain consistently. Additionally, you have to remember that other devices on the network are *also* constantly making upload requests, causing overhead on the network in general. Local networks have the luxury of 1Gbps bandwidth, and so will never experience lag at most bitrates that the server can handle. Remote, however, will quickly run into these bandwidth caps. ---------------------------------------------------------------------- Ariquitaun · 2023-12-29 09:56 This is just not true. If your internet provider can't give you a steady, full-on 20mbps then you need another ISP. ---------------------------------------------------------------------- kmisterk · 2023-12-29 09:59 Have you performed real-world tests of your internet upload speeds? Can you share those results? I did tests of 3 different major internet providers in my area advertising various speeds up/down. I set up static streams to try and saturate each connection using a custom nginx ingest system that analyzed and tracked the various incoming rates. The data over those tests showed that none of the providers were able to give consistent max advertised speed, and they all showcased dips over longer durations. ---------------------------------------------------------------------- PR_freak · 2023-12-29 10:03 20 Mbps speed is not the advertised speed from the ISP, it is the speed that i tested from the server. It is a real world number Should I expect to not be able to upload a 8Mbps stream over a 20Mbps capable network? Something doesn't add up here ---------------------------------------------------------------------- AnhedonicSmurf · 2023-12-29 10:04 Yeah, I don’t think I have ever gotten the advertised speeds from any ISP I’ve ever had. There is a reason the ads say ‘up to’ X Gbps. ---------------------------------------------------------------------- kmisterk · 2023-12-29 10:14 a speed test is, in essence, a "perfect scenario" where both sides intentionally behave in a manner designed to maximize throughput. It's a great metric to know, but in real-world use cases, it may not always play out that way. Any number of factors on the network, or anywhere between you and the home network, could play into the buffering issue. You're literally experiencing lag, where the "numbers" show that you shouldn't be. That's the dictionary definition of "real-world experience," and you're seeming to experience a cap somewhere. You've claimed that the server itself is fine, testing wonderfully over local connections, and the server seems to be just fine when sending over external connections, leaving the only change to the fact that you're now using your "upload" speed to serve the stream. Logic says that this means your Upload speed in a "real-world scenario" isn't up to the task at the 8mbps rate. ---------------------------------------------------------------------- kmisterk · 2023-12-29 10:15 Pretty much, yeah. The internet is way too complex to be able to gauge network traffic metrics with any assurances. ---------------------------------------------------------------------- PR_freak · 2023-12-29 10:28 >a speed test is, in essence, a "perfect scenario" where both sides intentionally behave in a manner designed to maximize throughput This clarifies it quite a bit So since I made sure my network was idle during testing and i got 4Mbps I should expect even slower speeds during normal utilization (torrenting and such) ---------------------------------------------------------------------- Ariquitaun · 2023-12-29 12:00 https://pasteboard.co/8zq5ne9KUKNo.png Every half hour on the same box that runs the opnsense instance, there's some variability but getting pretty close to the 1gbps I'm paying for. ---------------------------------------------------------------------- skc5 · 2023-12-29 16:30 Active Torrents tend to bring networks to a crawl unless you cap their maximum bandwidth and/or maximum connections. ---------------------------------------------------------------------- skc5 · 2023-12-29 16:34 You should be close to advertised speeds, tho. I have gigabit fiber (rated 1000/500) and I consistently can pull 940/500+. 940 being the theoretical maximum a gigabit Ethernet port can do after TCP overhead (1500 MTU). When I’ve had slower plans, like 500/100, I usually test +/- 10% of that rated speed. This, IME, has a ton to do with not using ISP-provided equipment and bringing my own modem/router/etc. ---------------------------------------------------------------------- skc5 · 2023-12-29 16:37 Some ISPs also prioritize traffic to certain speed test sites, but will also silently throttle your connection to something like Netflix’s CDN. My phone (Verizon) will get great speeds on speedtest.net but slow to a crawl on fast.com, which uses Netflix CDN. ---------------------------------------------------------------------- PR_freak · 2023-12-29 17:07 Yes I use qbittorrent which by default (I think) limits the bandwidth for both upload and download I tried disabling the limits once and it ate all my connection speed ---------------------------------------------------------------------- skc5 · 2023-12-29 18:04 I haven’t used qbt personally but that would be unusual that the default bandwidth setting would be anything other than “unlimited”. ---------------------------------------------------------------------- VoidTheSecond · 2023-12-30 01:43 Jellyfin needs the ability to download and watch a movie locally, similar to how you can download podcasts on Audiobook ---------------------------------------------------------------------- PR_freak · 2023-12-30 12:14 >Jellyfin needs Did you mean **has**? Yes I know I can download locally