• 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: Not possible to play media when NVIDIA NVENC

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Not possible to play media when NVIDIA NVENC

    MutzelBruzzel
    Offline

    Junior Member

    Posts: 11
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    #1
    2025-02-19, 04:47 PM (This post was last modified: 2025-02-20, 09:50 AM by MutzelBruzzel. Edited 3 times in total.)
    Hi folks,

    I just got my new 'mini PC (intel i5-10300H / NVIDIA RTX 2060-mobile)' for jellyfin, but unfortunately it's not working as intended:

    - Using only the CPU results in lags and 100% usage -> Ok nvm
    - Using the NVIDIA NVENC (with H264, VC1, HEVC 10bit and VP9 10bit) results in an error message.

    Trancsoder-log:
    Quote:[h264_nvenc @ 0x5a5afe243b40] Cannot load libnvidia-encode.so.1
    [h264_nvenc @ 0x5a5afe243b40] The minimum required Nvidia driver for nvenc is 520.56.06 or newer
    [vost#0:0/h264_nvenc @ 0x5a5afe47b380] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
    [vf#0:0 @ 0x5a5afe3c7100] Error sending frames to consumers: Operation not permitted
    [vf#0:0 @ 0x5a5afe3c7100] Task finished with error code: -1 (Operation not permitted)
    [vf#0:0 @ 0x5a5afe3c7100] Terminating thread with return code -1 (Operation not permitted)
    [hevc @ 0x5a5afe423a40] Skipping NAL unit 63
        Last message repeated 1 times
    [hevc @ 0x5a5afe410bc0] Skipping NAL unit 63
        Last message repeated 1 times
    [hevc @ 0x5a5afe914880] Skipping NAL unit 63
        Last message repeated 1 times
    [hevc @ 0x5a5afe332200] Skipping NAL unit 63
        Last message repeated 1 times
    [vost#0:0/h264_nvenc @ 0x5a5afe47b380] Could not open encoder before EOF
    [vost#0:0/h264_nvenc @ 0x5a5afe47b380] Task finished with error code: -22 (Invalid argument)
    [vost#0:0/h264_nvenc @ 0x5a5afe47b380] Terminating thread with return code -22 (Invalid argument)
    [out#0/hls @ 0x5a5afe34ce40] Nothing was written into output file, because at least one of its streams received no packets.
    frame=    0 fps=0.0 q=0.0 Lsize=      0KiB time=N/A bitrate=N/A speed=N/A   
    Conversion failed!

    'nvidia-smi' says:

    Quote:NVIDIA-SMI 550.127.08            Driver Version: 550.127.08    CUDA Version: 12.4 

    I am using the jellyfin docker and my 'docker-compose.yaml' looks like this:
    Quote:                                   
    services:
      jellyfin:
        image: lscr.io/linuxserver/jellyfin:latest
        container_name: jellyfin
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Germany/Berlin
        volumes:
          - jellyfin-configConfused-faceconfig
          - /mediaConfused-facemedia-lokal
        ports:
          - 8096:8096
        restart: unless-stopped
        deploy:
          resources:
            reservations:
              devices:
                - driver: nvidia
                  count: all
                  capabilities:
                    - gpu
                    - utility
                    - compute
    volumes:
      jellyfin-config:

    What did I do wrong?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-02-19, 04:54 PM
    Did you also install the nvidia decode and encode libraries? And nvidia container toolkit.
    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]
    MutzelBruzzel
    Offline

    Junior Member

    Posts: 11
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    #3
    2025-02-19, 04:59 PM
    (2025-02-19, 04:54 PM)TheDreadPirate Wrote: Did you also install the nvidia decode and encode libraries?  And nvidia container toolkit.

    Sure:

    Quote:root@srv-mediaConfused-faceopt/jellyfin# dpkg -l | grep libnvidia
    ii  libnvidia-cfg1-550-server:amd64      550.127.08-0ubuntu0.24.04.1            amd64        NVIDIA binary OpenGL/GLX configuration library
    ii  libnvidia-common-550-server          550.127.08-0ubuntu0.24.04.1            all          Shared files used by the NVIDIA libraries
    rc  libnvidia-compute-535-server:amd64    535.216.03-0ubuntu0.24.04.1            amd64        NVIDIA libcompute package
    ii  libnvidia-compute-550-server:amd64    550.127.08-0ubuntu0.24.04.1            amd64        NVIDIA libcompute package
    ii  libnvidia-container-tools            1.17.4-1                                amd64        NVIDIA container runtime library (command-line tools)
    ii  libnvidia-container1:amd64            1.17.4-1                                amd64        NVIDIA container runtime library
    ii  libnvidia-decode-550-server:amd64    550.127.08-0ubuntu0.24.04.1            amd64        NVIDIA Video Decoding runtime libraries
    ii  libnvidia-egl-wayland1:amd64          1:1.1.13-1build1                        amd64        Wayland EGL External Platform library -- shared library
    ii  libnvidia-encode-550-server:amd64    550.127.08-0ubuntu0.24.04.1            amd64        NVENC Video Encoding runtime library
    ii  libnvidia-extra-550-server:amd64      550.127.08-0ubuntu0.24.04.1            amd64        Extra libraries for the NVIDIA Server Driver
    ii  libnvidia-fbc1-550-server:amd64      550.127.08-0ubuntu0.24.04.1            amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
    ii  libnvidia-gl-550-server:amd64        550.127.08-0ubuntu0.24.04.1            amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD

    Quote:root@srv-mediaConfused-faceopt/jellyfin# dpkg -l | grep nvidia-container
    ii  libnvidia-container-tools            1.17.4-1                                amd64        NVIDIA container runtime library (command-line tools)
    ii  libnvidia-container1:amd64            1.17.4-1                                amd64        NVIDIA container runtime library
    ii  nvidia-container-toolkit              1.17.4-1                                amd64        NVIDIA Container toolkit
    ii  nvidia-container-toolkit-base        1.17.4-1                                amd64        NVIDIA Container Toolkit Base
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-02-19, 05:01 PM (This post was last modified: 2025-02-19, 05:02 PM by TheDreadPirate.)
    Missed this the first time. Add this to your docker compose.

    Code:
    runtime: nvidia

    https://jellyfin.org/docs/general/admini...ualization
    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]
    MutzelBruzzel
    Offline

    Junior Member

    Posts: 11
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    #5
    2025-02-19, 05:08 PM
    First of all - Thanks for your help Smiling-face

    Did:

    1. Docker-compose down
    2. Added the missing line
    3. Docker-compose up -d

    Still the same error:

    Quote:[h264_nvenc @ 0x5c114b2f9b40] Cannot load libnvidia-encode.so.1
    [h264_nvenc @ 0x5c114b2f9b40] The minimum required Nvidia driver for nvenc is 520.56.06 or newer
    [vost#0:0/h264_nvenc @ 0x5c114b531380] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
    [vf#0:0 @ 0x5c114b47d100] Error sending frames to consumers: Operation not permitted
    [vf#0:0 @ 0x5c114b47d100] Task finished with error code: -1 (Operation not permitted)
    [vf#0:0 @ 0x5c114b47d100] Terminating thread with return code -1 (Operation not permitted)
    [hevc @ 0x5c114b4d9a40] Skipping NAL unit 63
    Last message repeated 1 times
    [hevc @ 0x5c114b4c6bc0] Skipping NAL unit 63
    Last message repeated 1 times
    [hevc @ 0x5c114b9ca880] Skipping NAL unit 63
    Last message repeated 1 times
    [hevc @ 0x5c114b3e8200] Skipping NAL unit 63
    Last message repeated 1 times
    [vost#0:0/h264_nvenc @ 0x5c114b531380] Could not open encoder before EOF
    [vost#0:0/h264_nvenc @ 0x5c114b531380] Task finished with error code: -22 (Invalid argument)
    [vost#0:0/h264_nvenc @ 0x5c114b531380] Terminating thread with return code -22 (Invalid argument)
    [out#0/hls @ 0x5c114b402e40] Nothing was written into output file, because at least one of its streams received no packets.
    frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
    Conversion failed!

    Important part is '[h264_nvenc @ 0x5c114b2f9b40] Cannot load libnvidia-encode.so.1' or?

    Any other idea?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-02-19, 05:13 PM
    What GPU do you have and are they any additional layers of virtualization? Is this docker in a LXC?
    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]
    MutzelBruzzel
    Offline

    Junior Member

    Posts: 11
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    #7
    2025-02-19, 05:19 PM
    (2025-02-19, 05:13 PM)TheDreadPirate Wrote: What GPU do you have and are they any additional layers of virtualization?  Is this docker in a LXC?

    - nvidia RTX 2060 mobile
    - Just a normal docker on barebone
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-02-19, 05:37 PM
    What distro is this installed on? If plain Debian, did you install the non-free-firmware package? And do you have the linux-headers package installed?
    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]
    MutzelBruzzel
    Offline

    Junior Member

    Posts: 11
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    #9
    2025-02-19, 05:39 PM (This post was last modified: 2025-02-19, 05:43 PM by MutzelBruzzel. Edited 1 time in total.)
    Installed on ubuntu server 24.04.2 LTS and for nvidia I used the normal 550 (without open).
    Didn't install anything else.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2025-02-19, 06:03 PM
    In the guide I linked, did you also complete steps 4, 5, and 6?

    Code:
    Add your username to the video group:

    sudo usermod -aG video $USER

    Update dynamic links and restart the Docker service:

    docker exec -it jellyfin ldconfig
    sudo systemctl restart docker

    Check the NVIDIA GPU's status by using nvidia-smi:

    docker exec -it jellyfin nvidia-smi
    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: 3 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