• 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 Transcoding takes 100% CPU then goes Buffering

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Transcoding takes 100% CPU then goes Buffering

    dynux
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #1
    2025-01-13, 02:59 PM (This post was last modified: 2025-01-13, 03:08 PM by dynux. Edited 3 times in total.)
    Hello,

    i'm a total noob with Jellifyn and i'm trying to understand what i'm doing wrong.

    I've setup Jellyfin in a docker environment with NVIDIA GPU for Transcoding (NVIDIA RTX 4060).

    Jellyfin is hosted locally via direct http.

    This are the settings:

       
       

    The NVIDIA card is recognized successfully:
       

    It happens that when i try to play certain files starts transcoding that takes 100%  CPU (should not use GPU instead?) and results in buffering every 1-2 seconds:

    .txt   log.txt (Size: 1.2 KB / Downloads: 40)


    Transcoding logs:


    .txt   transconding_logs.txt (Size: 50.1 KB / Downloads: 42)

    I use Jellyfin app on Android Smartphone and Tablet with default values in the local lan via Wi-Fi.

    Given this data these are my questions:

    - Are my settings right?
    - Why is transcoding instead of direct play?
    - Why when transcoding takes 100% CPU and seems not using GPU?

    Any help will be really appreciated.
    Best regards
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-01-13, 03:09 PM (This post was last modified: 2025-01-13, 03:09 PM by TheDreadPirate.)
    Are we talking 100% of a single core or 100% of the entire CPU? The audio is transcoding, which will always occur on the CPU. The video is transcoding via NVENC.

    Also, are there other background tasks that are still running that are contributing to the CPU usage?

    For the record, you can check every codec box. Both decoding and encoding. And ensure tone mapping is checked. The 4000 series RTX cards support everything.
    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]
    dynux
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #3
    2025-01-13, 03:36 PM (This post was last modified: 2025-01-13, 03:37 PM by dynux. Edited 1 time in total.)
    (2025-01-13, 03:09 PM)TheDreadPirate Wrote: Are we talking 100% of a single core or 100% of the entire CPU?  The audio is transcoding, which will always occur on the CPU.  The video is transcoding via NVENC.

    Also, are there other background tasks that are still running that are contributing to the CPU usage?

    For the record, you can check every codec box.  Both decoding and encoding.  And ensure tone mapping is checked.  The 4000 series RTX cards support everything.

    thanks for your fast reply.

    Here is the the CPU while playing the video:
       

    Enabling all the settings you suggested has solved the CPU usage, on the Smartphone is all OK but the tablet still buffering even worse than before:
       

    Data from Jellyfin app on tablet:
       

    Seems that not only audio is not supported, also video from h265 to h264.

    Any ideas?
    Thank you
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-01-13, 03:47 PM
    Can you share your entire jellyfin log? So I can see what background tasks are running.

    Your screenshot is showing that it is transcoding to AV1, so I'm assuming you enabled that in the transcode settings. Did you also check the rest of the codec boxes to ensure that the GPU is decoding and not the CPU.
    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]
    dynux
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #5
    2025-01-13, 03:58 PM
    (2025-01-13, 03:47 PM)TheDreadPirate Wrote: Can you share your entire jellyfin log?  So I can see what background tasks are running.

    Your screenshot is showing that it is transcoding to AV1, so I'm assuming you enabled that in the transcode settings.  Did you also check the rest of the codec boxes to ensure that the GPU is decoding and not the CPU.

    Sure:


    .txt   full_log.txt (Size: 71.84 KB / Downloads: 36)

    .txt   transcode_log.txt (Size: 135.52 KB / Downloads: 38)

    Here are the settings:

       
       
       

    Thanks
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-01-13, 04:11 PM
    I forgot to ask. What CPU do you have? All I know is that it has 12 threads.
    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]
    dynux
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #7
    2025-01-13, 04:21 PM
    (2025-01-13, 04:11 PM)TheDreadPirate Wrote: I forgot to ask.  What CPU do you have?  All I know is that it has 12 threads.

    CPU AMD Ryzen 5 5600X AM4
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-01-13, 04:50 PM
    Can you spin up a test container and switch to using the official jellyfin/jellyfin image instead of the linuxserver/jellyfin image?
    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]
    dynux
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    #9
    2025-01-13, 05:49 PM
    (2025-01-13, 04:50 PM)TheDreadPirate Wrote: Can you spin up a test container and switch to using the official jellyfin/jellyfin image instead of the linuxserver/jellyfin image?

    Done, same results in the stream:


    .txt   transcode_logs.txt (Size: 49.5 KB / Downloads: 42)

    .txt   full_logs.txt (Size: 109.97 KB / Downloads: 31)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2025-01-13, 06:22 PM
    Can you share your docker compose. I don't see why it would use so much CPU. It is using the GPU for decoding, tone mapping, and encoding. Only the audio should be using the CPU and shouldn't be anywhere close to this much.

    What kernel version are you running on the host? And what distro?
    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]
    Pages (2): 1 2 Next »

    « 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