• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access Very Strange Remote Buffering Problem

     
    • 0 Vote(s) - 0 Average

    Very Strange Remote Buffering Problem

    LAN Stream Perfect, WAN Stream on Phones on ProtonVPN Perfect - Everything Else Bad
    PR-0927
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #1
    2023-08-13, 12:47 AM (This post was last modified: 2023-08-13, 12:53 AM by PR-0927. Edited 4 times in total.)
    Hi all, I've been having a rough time getting my Jellyfin server (TrueNAS Scale) up and running as a proper replacement for my Plex server (UnRAID) I've been running for a while. I would very badly like to transition to Jellyfin and ditch Plex for myriad reasons, but one very strange issue has become a thorn in my side - something which does NOT affect my Plex setup at all.

    Hoping for assistance. Crossing my fingers for a resolution!

    On local LAN, it works PERFECTLY - direct stream and transcoding both.

    The thorn - ONE problem that I cannot resolve - when remote streaming it buffers every few seconds, regardless of resolution or codec. Some items go smoothly, some don't. Does not matter if direct stream or transcode.

    This was tested by my sister, remotely located - using Roku (TCL TV built-in), Chrome browser on her desktop, and Jellyfin app on her Pixel 7 Pro - same experience on all three. Many settings changed and tested - auto, 4K 120Mbps, 1080p 10Mbps, etc. Transcoding enabled, disabled, forced. Transcoding throttling enabled or disabled.

    Always the same problem. Slightly-frowning-face

    The weirdest wrinkle - if I stream to my phone (Pixel 7 Pro, GrapheneOS) or my wife's phone (Pixel 7 Pro, Google's Android) - on data (WLAN works perfectly, of course), but I toggle on ProtonVPN (on our phones) - it suddenly functions PERFECTLY. Without that, buffering happens. This is regardless of resolution or codec.

    Meaning even 4K 120Mbps, it works perfectly in that scenario.

    This is the opposite of what I expected - an additional tunnel layer surely should SLOW things down, right?

    Here's the relevant hardware and software background:

    Hardware
    • TrueNAS Scale Server (New)
      • AMD EPYC 9124
      • 128GB DDR5 ECC RAM
      • 2x240GB SATA SSDs - Boot Drives – Mirrored
      • 2x1TB NVMe (PCIe 4.0) M.2 SSDs - Apps/VM Drives – Mirrored
      • 4x8TB NVMe (PCIe 3.0) U.2 SSDs - Media Storage - RAIDZ1 (24TB Usable)
      • Nvidia Quadro P400 - Transcoding GPU
      • 10Gb PCIe NIC - Intel X520 Chipset - SFP+
    • UnRAID Server (Old)
      • AMD Ryzen 3700X
      • 64GB DDR4 RAM
      • 1TB NVMe (PCIe 4.0) M.2 SSD – Cache
      • 4x8TB SATA HDDs - Media Storage - Double Parity (16TB Usable)
      • No GPU (Previously Nvidia GTX 1080)
      • 10Gb PCIe NIC - Intel X520 Chipset - SFP+

    Software
    • TrueNas Scale Server (New)
      • Jellyfin - TrueCharts Repository - ingressed Through Traefik
      • Traefik - TrueCharts Repository

    • UnRAID Server (Old)
      • Plex - Community Apps - plexinc Repository - NOT Through Reverse Proxy, Exposed Though Port 32400
      • Nginx Proxy Manager - Community Apps - jlesage Repository - Currently Disabled - Not Used for Plex

    Other
    • Domain's DNS Through Cloudflare - DNS Only (NOT Proxied) - Cache Bypass
    • Custom OPNSense Firewall/Router - Unbound DNS (DNSSEC and Blocklists Currently Disabled) - Using 1.1.1.1. and 1.0.0.1 - "Host Override" for My Domain (media.mydomain.tld) and Looal Server IP (192.168.0.50)
    • ISP - Spectrum - 940Mbps Download, 35Mbps Upload (40Mbps Normally Witnessed)

    I have experimented with a LOT of different settings. I have sought out help from the support staff for TrueCharts version of Jellyfin. I previously had Quad9 set for my DNS, but thought maybe it was the culprit. Guess not. Slightly-frowning-face

    Furthermore, I have also used the ix version of Jellyfin on that TrueNAS Scale server and had the same experience.

    Happy and willing to provide more information or screenshots as needed. The logs don't seem to be very helpful - only random mentions of "slow HTTP response" - but this happens both when it doesn't work right remotely, and when it does (ProtonVPN toggled on phones).

    Super grateful in advance for help on this!
    Voltage6905
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2023 Jun
    Reputation: 0
    #2
    2023-08-14, 03:09 PM
    I have a similar issue. I am running Jellyfin in docker on my Intel based OMV machine. Local direct play/transcoding is flawless but I have stuttering via remote transcoding regardless of quality. I am using a wireguard VPN to stream remotely but I have also used NGINX proxy manager with the same problem.

    For me the issue is not consistent though. It usually only buffers around 9 PM - 12 AM where I am. I suspect what's happening is the traffic is being throttled somewhere between my house and my parents house. With Plex I believe traffic bounces through their servers somewhere and I don't think that traffic is throttled. Just a theory though since I've been troubleshooting this issue for a year now with no answers.
    PR-0927
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #3
    2023-08-14, 08:41 PM
    Oh interesting - yeah even the level of buffering has not been consistent in my tests. I tried routing my Jellyfin server through "Gluetun" (VPN option in TrueCharts apps on TrueNAS Scale) - via my ProtonVPN credentials (OpenVPN protocol, not the WireGuard one) - no difference.

    Tried connecting via WireGuard to my home network - also no difference.

    So I think your theory might be right. Which is super unfortunate, because I don't want to stick to Plex...
    cloud9_development
    Offline

    Junior Member

    Posts: 20
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #4
    2023-08-14, 08:56 PM (This post was last modified: 2023-08-14, 08:59 PM by cloud9_development. Edited 1 time in total.)
    Yeah, I would assume the issue is traffic for plex is generally routed through their jump servers, whereas Jellyfin is 100% direct connect. Not to say there aren't other factors at play that could cause you issues, but off the top of my head that's the main difference between the two services

    One thing you can try to do is run various network testing over the course of a few days to see if there's any packet loss, speed fluctuations, throttling, etc between the two endpoints (your server and whereever you're experiencing issues from).

    In my case, 90% of the time I have issues, its due to packet loss (my ISP hasn't been the best and I'm stuck with them..)
    Voltage6905
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2023 Jun
    Reputation: 0
    #5
    2023-08-14, 10:00 PM
    (2023-08-14, 08:56 PM)cloud9_development Wrote: One thing you can try to do is run various network testing over the course of a few days to see if there's any packet loss, speed fluctuations, throttling, etc between the two endpoints (your server and whereever you're experiencing issues from).

    In my case, 90% of the time I have issues, its due to packet loss (my ISP hasn't been the best and I'm stuck with them..)

    How did you go about diagnosing that? Whenever I encounter issues I monitor WAN bandwidth on the server side and there is always plenty of bandwidth to spare. Regardless though, any ideas on how to get around this if throttling is the issue? I've run out of ideas with this.
    cloud9_development
    Offline

    Junior Member

    Posts: 20
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #6
    2023-08-15, 04:01 AM
    (2023-08-14, 10:00 PM)Voltage6905 Wrote:
    (2023-08-14, 08:56 PM)cloud9_development Wrote: One thing you can try to do is run various network testing over the course of a few days to see if there's any packet loss, speed fluctuations, throttling, etc between the two endpoints (your server and whereever you're experiencing issues from).

    In my case, 90% of the time I have issues, its due to packet loss (my ISP hasn't been the best and I'm stuck with them..)

    How did you go about diagnosing that? Whenever I encounter issues I monitor WAN bandwidth on the server side and there is always plenty of bandwidth to spare. Regardless though, any ideas on how to get around this if throttling is the issue? I've run out of ideas with this.

    For Internet issues (packet loss for example) I wrote a simple script that runs a ping test of 500 packets every 7 minutes (using crontab) and saves to a log file. You could do something similar. 

    There's also some online tools you can use (not sure off the top of my head though) that can look at ingress traffic and give you packet statistics hitting your network
    PR-0927
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #7
    2023-08-23, 06:38 AM
    For those curious, I kept suspecting something with my router. Turns out it was the culprit, almost certainly. You can read what all I tried and the eventual resolution:

    https://forum.opnsense.org/index.php?topic=35487.0
    bitmap
    Offline

    Community Moderator

    Posts: 776
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #8
    2023-08-23, 06:44 AM
    Server is borked. Care to share a brief summary?
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode