• 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 General Questions DirectPlay Path

     
    • 0 Vote(s) - 0 Average

    DirectPlay Path

    Question about data path.
    FactoriedMyAuth
    Offline

    Junior Member

    Posts: 30
    Threads: 5
    Joined: 2024 Apr
    Reputation: 1
    #1
    2024-05-01, 09:47 PM (This post was last modified: 2024-05-01, 09:49 PM by FactoriedMyAuth. Edited 2 times in total.)
    I have not been able to find a good answer yet for my setup. I have 2 main network nodes at my home. I have a main computer room, that has a lot of equipment (NAS, Home Automation Server, Main Computer, Modem, Router ....). That main room is on one level. On another level, I have a Samsung Smart TV, video game systems, and a Mini PC networked together with a switch. The switch and the router are linked together with MoCA adaptors for a Coax backbone. The MiniPC is my Jellyfin server. 

    When I access Jellyfin from the TV or a mobile device on my network and watch something that is doing DirectPlay to the device, what is the path of the video? 

    This is my setup:

    TV ----------- Switch ----------- MiniPC (JF Server)
                            |
                            |
                         MoCA
                           ||
                           ||                  Modem
                           ||                      |
                           ||                      |
                         MoCA --------- Router ----------- NAS 

    Let's say I watch something from the TV. The TV will communicate to the MiniPC to select the show. For DirectPlay, is the video to the TV coming straight from my NAS (Jellyfin tells client where the video is on the network and it fetches it by itself) or is the MiniPC grabbing the video from the NAS and then forwarding it to the TV?

    I noticed some delays when watching videos with a mobile (loading wheel coming from time to time). The network connections are solid and speeds look good. If the client is requesting video from the server, the server is grabbing the video from the NAS, and then serving it to the client, that would explain my choppy experience. With my mobile, I would need to go from: 

    Mobile -> Router -> MoCA -> Switch -> Server ->Switch -> MoCA -> Router -> NAS -> Router -> MoCA -> Switch -> Server -> Switch -> MoCA -> Router -> Mobile

    My assumption of DirectPlay was something more like:

    Mobile -> Router -> MoCA -> Switch -> Server ->Switch -> MoCA -> Router -> Mobile -> Router -> NAS -> Router -> Mobile

    The only reason for my system split is for convenience, but if the server being that many hops away from the NAS and effectively needing to double back to for playback, I can just go and adjust. If DirectPlay has the client access the content by itself, I am gonna have to do some more digging to see why I have loading wheel delays.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-05-01, 10:00 PM
    Jellyfin clients cannot and do not communicate directly with the storage. Everything is served through the jellyfin server and the jellyfin server + OS handles all the behind the scences data movement before eventually sending to the client. Even direct play. As long as the throughput is sufficient, the number of hops shouldn't matter.

    When accessing over mobile, is it actually direct playing or is it transcoding? What is the bit rate of the video? How fast is your home Internet upload speed?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    mcarlton00
    Offline

    Kodi Addon Maintainer

    Posts: 145
    Threads: 1
    Joined: 2023 Sep
    Reputation: 9
    Country:United States
    #3
    2024-05-01, 10:01 PM
    For the vast majority of clients, all traffic will be routed through the server before going to the storage. It's unfeasible for most clients to go directly to the storage device, as they would need to have playback methods built in for every possible network protocol, as well as your network storage having applicable access controls, and even more added complications if you're trying to go over the internet and not your LAN.

    TLDR: it's all played via HTTP through the Jellyfin server.
    FactoriedMyAuth
    Offline

    Junior Member

    Posts: 30
    Threads: 5
    Joined: 2024 Apr
    Reputation: 1
    #4
    2024-05-01, 10:13 PM
    (2024-05-01, 10:00 PM)TheDreadPirate Wrote: Jellyfin clients cannot and do not communicate directly with the storage.  Everything is served through the jellyfin server and the jellyfin server + OS handles all the behind the scences data movement before eventually sending to the client.  Even direct play.  As long as the throughput is sufficient, the number of hops shouldn't matter.

    When accessing over mobile, is it actually direct playing or is it transcoding?  What is the bit rate of the video?  How fast is your home Internet upload speed?

    It's doing DirectPlay. 1080p H264 SDR (21.52 Mbps). This is all over my local network. I have the mobile connected to my Wi-Fi 6 router. The router is Gb to the MoCA adaptor and the NAS. The MoCA adaptor is showing a 2Gb connection to the second MoCA adaptor. And that is connected to a Gb switch along with my MiniPC server. 

    Now that I know nothing is being directly accessed with the clients, I am going to do some re-routing and move the MiniPC to the NAS-side of the MoCA network to see if that cleans up the lag.
    FactoriedMyAuth
    Offline

    Junior Member

    Posts: 30
    Threads: 5
    Joined: 2024 Apr
    Reputation: 1
    #5
    2024-05-07, 02:21 PM
    Circling back, after I put the server on the same side of the network as the NAS, all of my streaming lag cleared up.
    « 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