• 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 High CPU usage when audio transcoding?

    Pages (3): « Previous 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    High CPU usage when audio transcoding?

    FuzzyJelly
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #11
    2024-11-03, 08:54 PM (This post was last modified: 2024-11-03, 08:54 PM by FuzzyJelly.)
    Those are usually defaulted to the Jellyfin root directory correct? If so, they're both on an SSD
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2024-11-03, 10:10 PM
    I'm out of ideas then. I was thinking maybe there was some sort of situation where your HDD wasn't able to keep up with the IO, causing the CPU usage to spike (this happens a lot of users running JF on a RPi).
    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]
    FuzzyJelly
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #13
    2024-11-04, 10:01 PM
    Beginning to wonder if it's the file themselves or the server starved for resources. Tried a few A/B tests with 10.9.11 and 10.10.1 and both played fine with no buffering but I:
    1) killed docker containers I installed in the last week and
    2) tried different media files than my original post

    Tests:
    10.9.11 | Firefox (131.0.3): https://pastebin.com/5w0zM6kD
    10.9.11 | Chrome (130.0.6723.92): https://pastebin.com/fjiMxnV1

    10.10.1 | Firefox: https://pastebin.com/PffQLTaZ
    10.10.1 | Chrome: https://pastebin.com/5n1vUEV6

    Original files that were buffering: https://pastebin.com/9iXA9TpM
    FuzzyJelly
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #14
    2024-11-10, 11:11 PM
    I'm still at a loss for words on this. For now it seems using the Jellyfin app is the way forward on a computer since it direct plays from there (whereas browsers are transcoding and causing lags all of a sudden)
    luckman212
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #15
    2024-11-11, 02:19 PM
    I just installed Jellyfin on my DS1621+ (same CPU as OP, Ryzen 1500B) and wondering if there is any support in this CPU for HW accel. Should I leave it at "None" or can I enable one of the modes? I read https://jellyfin.org/docs/general/admini...-selection but stil unclear.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #16
    2024-11-11, 03:23 PM
    I can't find documentation regarding whether the V embedded CPUs have encoders. If it does have an encoder, you'd use VAAPI. As for the codec support, probably VCN 1.0 level codec support.

    MPEG2
    VC1
    H264
    HEVC
    HEVC 10-bit (MAYBE)
    VP9
    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]
    FuzzyJelly
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #17
    2024-11-18, 10:26 AM
    (2024-11-11, 02:19 PM)luckman212 Wrote: I just installed Jellyfin on my DS1621+ (same CPU as OP, Ryzen 1500B) and wondering if there is any support in this CPU for HW accel. Should I leave it at "None" or can I enable one of the modes? I read https://jellyfin.org/docs/general/admini...-selection but stil unclear.

    Are you still seeing issues? I haven't tried 10.10.2 yet but something is definitely wonky in the audio transcoding with ffmpeg7 in my experience
    SVRUM
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:United States
    #18
    2025-01-12, 07:31 AM
    Hello @FuzzyJelly , did you ever solve this issue? I get high CPU usage when doing a basic audio transcode as well. 50%-70% CPU usage when Direct Streaming (transcoding audio .thd/.ac3 to .acc, no video transcoding).
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #19
    2025-01-12, 04:09 PM
    50-70% on a single core? Or all cores? Can you share your ffmpeg log?
    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]
    SVRUM
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:United States
    #20
    2025-01-12, 08:39 PM (This post was last modified: 2025-01-12, 08:41 PM by SVRUM. Edited 2 times in total.)
    (2025-01-12, 04:09 PM)TheDreadPirate Wrote: 50-70% on a single core?  Or all cores?  Can you share your ffmpeg log?

    Continuing discussion from this thread so it's all ion one place: https://forum.jellyfin.org/t-hardware-tr...ot-working

    @gnattu @TheDreadPirate I will just post my replies in this thread since it is more correct at identifying the issue.

    https://pastebin.com/xBftTbYq - Logs, playing movie on Jellyfin ios app -transcoding 7.1.4 Surroudn .thd to .aac and nothing else. "Use Native Player" is unchecked.

        Resource usage

        Majority of usage is coming from ffmpeg command line


    As soon as playback begins it spikes to 70% and hovers around 50%-70% the entire time playback is happening. The weird thing is that it seems to do it in bursts, dropping to 2%-5% for a few seconds, then going again up to 50%-70% for a minute or so, and repeating the entire time playback is happening. The high CPU usage makes it impossible to have two streams playing on the network at the same time. This does not happen with Direct Play, if my device/player can play .ac3 or .thd files natively, no transcoding happens and I get like 2%-3% CPU usage and 0% iGPU usage

    Keep in mind I also have the exact same usage when doing 5.1 Surround .ac3 on the Jellyfin  AND Swiftfin iOS app as well, my apologies @gnattu, I was mistaken, I tested in three differnet places, jellyfin iOS app, Swiftfin iOS app, and connecting to jellyfin through Safari, my CPU usage is high in Jellyfin AND Swiftfin, but not in Safari (when doing .ac3 5.1 surround), safari doesn't transcode .ac3 to .aac , while jellyfin and swiftfin are. (I get the same CPU usage spikes when  switching to 7.1.4 (.thd) audio stream in safari)


    https://pastebin.com/Jjt2hmg4 - logs of safari 5.1 .ac3 playback

        - Play back begins at that intitial spike in the beginning of the chart.
    Pages (3): « Previous 1 2 3 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