• 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: Nvidia driver install (ubuntu) slows loading and seeking in jellyfin

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Nvidia driver install (ubuntu) slows loading and seeking in jellyfin

    Nvidia drivers + HW acceleration causes lag
    buzuddha
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    #1
    2023-10-25, 03:22 PM (This post was last modified: 2023-10-26, 05:58 PM by buzuddha. Edited 1 time in total.)
    Hi All,

    The problem: Loading and seeking through jellyfin interface has become quite slow after nvidia driver install and HW acceleration

    Fresh install of ubuntu 23.04 and jellyfin. I attempted to install nvidia drivers initially but nvidia-smi threw an error saying it couldn't connect. This error notwithstanding, I was able to stream videos that looked great with near instant load and seeks with full HD audiotracks. The only issue I ran into was that MPEG2  and VC1 streams wouldn't load on many clients (though not all). Despite that, copying the URL and streaming from VLC always worked fine.  

    I figured I needed to fix the HW acceleration issue and this would resolve the MPEG2 transcode, so I set about googling and realized I'd installed nvidia-utils-535-server rather than nvidia-driver-535-server. So I installed the drivers and poof nvidia-smi gave output. Yay. Likewise, I was able to solve the issues with MPEG2/VC1. Now, even a DVD MPEG2 film will take a few seconds to load and seeking can take a few seconds to load (same is true for HEVC/H264). Likewise, I've even unchecked the HEVC HW transcode tick box and the problem persists. Still copying the URL and streaming from VLC gives instant loads and seeks for 4K/DTSHD content.

    Log should include - server reboot, jellyfin startup, play MPEG2 via jellyfin, MPEG2 via UL in VLC, 4K HEVC in Jellyfin, 4K HEVC in VLC

    Logs are here: 
    JF.log
    HEVC Transcode Log
    MPEG2 Transcode Log

    Any help here is greatly appreciated!

    Thanks
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-10-25, 03:32 PM
    What are the specs of your server? There are no errors in your log. You can't compare local playback with VLC to streaming with Jellyfin. Transcoding is pretty intensive and your server has to build up a bit of a buffer before it starts streaming.
    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]
    buzuddha
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    #3
    2023-10-25, 04:23 PM (This post was last modified: 2023-10-25, 04:34 PM by buzuddha. Edited 2 times in total.)
    Sorry, just to be clear. Using VLC isn't local. I'm opening the media URL in VLC as a stream. So loading and seeking remotely on my laptop from the server using VLC as the client is instantaneous.

    The server is:
    Ubuntu 23.04
    CPU: i5-10400K
    MB: B460M A/C
    RAM: 16GB
    System SSD: Samsung EVO 970 (Gen3)
    GPU: ASUS GTX 1650 MINI OC

    I've run iperf before and I'm in the 600 MB/s range on wifi and full 1GB/s on ethernet. So I believe the issue doesn't lie in a hardware limitation.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-10-25, 04:36 PM
    If you are providing the media URL then VLC is handling all the video decoding and jellyfin is just sending the file.

    When you play a video in Jellyfin that requires a transcode jellyfin has to start up ffmpeg and build up a buffer before starting playback. Same thing when you skip ahead of where it has transcoded.

    To be clear, what you are describing is normal behavior when there is a transcode. It is slower than if it was direct playing.
    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]
    buzuddha
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    #5
    2023-10-25, 04:51 PM (This post was last modified: 2023-10-25, 04:56 PM by buzuddha. Edited 2 times in total.)
    Gotcha, so I guess I'd just prefer the direct play then. Problem there is that MPEG2 and VC1 doesn't play on ipad/android clients. I've tried to uncheck the box for HW acceleration for HEVC but it still fires up the transcoding.

    I'm finding this in the log
    PlayMethod=Transcode, TranscodeReason=VideoCodecNotSupported, AudioCodecNotSupported for HEVC even after unchecking the transcode box.


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2023-10-25, 04:55 PM
    Those check boxes are for hardware accelerated DECODING and only apply when there is transcoding. Transcoding only happens when the CLIENT requests a transcode. When the client requests a direct play those check boxes don't matter.
    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]
    buzuddha
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    #7
    2023-10-25, 05:08 PM (This post was last modified: 2023-10-25, 05:10 PM by buzuddha. Edited 3 times in total.)
    Welp...it does say that right there.

    Clarified! Many thanks for your help here!

    Any way to get iOS jellyfin to send streams to VLC the way android does? Or otherwise have the jellyfin client send streams to a program that can decode lots of streams?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2023-10-25, 05:12 PM
    Not that I'm aware of. Are you using Jellyfin Mobile for iOS or Swiftfin?
    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]
    buzuddha
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    #9
    2023-10-25, 05:53 PM (This post was last modified: 2023-10-25, 05:53 PM by buzuddha. Edited 1 time in total.)
    Dang. JF Mobile. Just gave Swiftfin a look, but no dice. Turn off HW encode on the server side and the MPEG2 doesn't load on the client.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2023-10-25, 05:56 PM (This post was last modified: 2023-10-25, 05:59 PM by TheDreadPirate. Edited 2 times in total.)
    You want hardware acceleration on. Your server is probably CPU transcoding and going very slowly because your content is 4K according to the ffmpeg log.

    And what do mean "no dice" when using Swiftfin?

    For the decoding check boxes. Check everything except AV1.

    Check enhanced decoder

    Check allow encoding in HEVC. Save.
    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