• 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 SOLVED: Does high CPU cause buffering on a direct play?

     
    • 0 Vote(s) - 0 Average

    SOLVED: Does high CPU cause buffering on a direct play?

    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #1
    2024-06-19, 05:52 PM
    I was watching a video via direct play (no transcode involved) last night. The file is about 10GB and it was being streamed internal to my network.
    After about 10 minutes of watching with no issue, a task kicked off on my server that uses the CPU a decent amount.

    After a bit, this caused my player to reach Cache: 0, which meant I had no 'buffer' to play. It ended up loading very slowly from that point on, freezing often.
    I was using MPV Shim as the player.

    Would the process that utilized the CPU really cause this? 
    There may have been another process that was using the disk at the same time, and I also wonder if the process of streaming it from the disk was held due to that.

    I know the solution here is to avoid those kinds of activities, but for the sake of it - Why wouldn't the entirety of the 10GB file be loaded into cache within a minute or two? I'm on a gigabit network.
    Is this the normal behavior of the MPV Shim player? Does it only load a certain amount of cache, and then wait for the player to catch up and load more?
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-06-19, 06:05 PM (This post was last modified: 2024-06-19, 06:05 PM by TheDreadPirate. Edited 1 time in total.)
    Just about all streaming services/platforms (commercial or self-hosted) only buffer 30 to 60-ish seconds or content most of the time. Why transfer the entire video when there is no guarantee that you will watch the entire video in one sitting? Sure, its fine on local networks. But what if you were not at home, or on mobile, or were hosting on a VPS?

    Other than bit rate limiting for remote connections, Jellyfin does not treat local vs remote clients differently in terms of buffering.
    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]
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #3
    2024-06-19, 06:12 PM
    (2024-06-19, 05:52 PM)podonnell Wrote: Is this the normal behavior of the MPV Shim player? Does it only load a certain amount of cache, and then wait for the player to catch up and load more?
    Yes. I don't know the exact cache size it uses by default, but if it's the same as Jellyfin Media Player's default, it should be 75MB of cache.

    The player will only load up enough data until the 75MB are full, then it will start replacing it as you progress through the video.

    This depends per video's bitrate, but I've only ever noticed Shim's cache grow to about 8 minutes ahead of where I'm currently at by default.

    Jellyfin Media Player does have an option to let you set it up to 500MB of cache however.
    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #4
    2024-06-20, 01:51 AM
    Good deal, that makes sense then. Although I worry as that makes the catch-up time really short if there's an issue on the server for a bit.

    So just to close this out, would the CPU or Disk utilization be responsible for the very slow speeds thereafter? It was a direct play.
    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #5
    2024-06-27, 04:38 AM
    Just wanted to wrap back around on this one. Trying to determine if a CPU upgrade would help this, or if this experience where the data is no longer being fed and the cache empties to 0 would be disk related. I often load data on and off the disk that Jellyfin reads from, so I would have to find a way to lower that priority or something otherwise.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-06-27, 12:08 PM
    If your media direct plays you can run Jellyfin on a potato. I mean, people ca run Jellyfin on Raspberry Pis as long as they plan properly.

    Due to this, its hard to suggest a hardware upgrade without fully understanding the root of the problem. If you have a more powerful computer that you can run a test instance on, maybe you can try that before committing to spending money you may not need to spend.
    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]
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #7
    2024-06-27, 12:23 PM (This post was last modified: 2024-06-27, 12:25 PM by Efficient_Good_5784. Edited 1 time in total.)
    Do you have another machine that has a stronger CPU which you can use to test your idea out on?
    If you do, why not try it out on that

    edit: sorry, miss-clicked the mark as solution button on my comment.
    « 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