• 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: Audio transcoding issues

     
    • 0 Vote(s) - 0 Average

    SOLVED: Audio transcoding issues

    Audio transcoding makes my server lag, playback is freezing very often for many seconds, video transcoding working perfectly fine
    sam_sepi0l7
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:France
    #1
    2024-08-24, 12:27 PM
    Hi everyone, I am facing a strange issue with audio transcoding. Let me detail my setup first :
    OS : Debian 12 up-to-date
    Jellyfin in a Docker Container (Linux Server's image) version 10.9.8
    Hardware : 
    - Ryzen 5 1600X (6C, 12 threads) @3.6GHz (AMD C-states disabled) 
    - RTX 3070Ti FE (proprietary drivers installed and working, nvidia-container-toolkit also)
    - 16GB of RAM @3200MT/s
    - 2.5gbps network card
    - OS running on a 1TB SSD
    - Medias stored on a 4x4TB RAIDZ1.

    Video transcoding using NVIDIA NVENC is working properly and is fast (~100FPS when transcoding 4K HEVC HDR content)
    However there is a weird behavior happening when transcoding audio : it makes my server "laggy", playback stutters and freezes for many seconds and does very often. By "laggy" I mean that when SSHing into my server it takes an extra two seconds, when typing a command there is a delay in both what I type and the output, when accessing Jellyfin's web interface it takes way longer to load, same for my other sevices' web interface. However, when checking in htop or btop, the overall CPU usage is sitting at around 10% up to 25%, temps are fine and stable, plenty of RAM is available, disk I/O is not at 100% (way below), network is working properly. In fact, this weird behavior only happens when transcoding audio. As for the settings in Jellyfin : enabling or disabling VBR audio encoding does not change a thing, same for max musing queue size, encoding preset is set to auto (although I tried some others but it gave the same results), transcodes are not throttled. Lastly, Jellyfin logs do not show any error and I am not sure on how to check FFMPEG's logs. If anyone have any idea on what might be happening, I will be happy to provide more information and logs.
    Thank you !
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-08-24, 05:17 PM
    Can you post one of your ffmpeg logs on pastebin?

    They are in the same directory as your main jellyfin 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]
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-08-24, 06:47 PM (This post was last modified: 2024-08-24, 06:49 PM by TheDreadPirate.)
    Also, do you have anything else running on this host?

    And can you look at the system load vs just the CPU usage?
    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]
    sam_sepi0l7
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:France
    #4
    2024-08-25, 04:47 PM (This post was last modified: 2024-08-25, 04:47 PM by sam_sepi0l7. Edited 1 time in total.)
    Here are FFmpeg logs : https://pastebin.com/CkKnrUa0
    I was playing a 4K HDR movie (in Direct streaming, so only the audio was transcoded according to Jellyfin), meanwhile the load average figures given by btop after 3-4 minutes of playback were : 23.0, 17.4, 9.7 . I am not sure how to interpret these load average figures in this context though.
    Finally, there are other services running (Immich but not transcoding at the time, Nextcloud, an ARR stack for media requesting but not doing anything, not even downloading) and some other light services like Vaultwarden. I tried stopping these services but still encountered the same issues (while the load averages were lower). Also, glances tell me CPU_IOWAIT is high (up to ~60%)
    sam_sepi0l7
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:France
    #5
    2024-08-25, 05:24 PM
    Oh I think I found a solution : thanks to you asking the load average values I found this Reddit post (https://www.reddit.com/r/jellyfin/commen...ver_locks/). So I moved the transcode path to my RAIDZ-1 where my content is stored and the issue is much less present but still happens a bit. I think throttling the transcode will help even more, I will mark the thread as solved if it fixes my issue ! Thanks for your help !!!
    sam_sepi0l7
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:France
    #6
    2024-08-27, 11:51 AM
    The issue is disappearing, marking thread as fixed !
    « 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