• 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 /cuda error

     
    • 0 Vote(s) - 0 Average

    Transcoding /cuda error

    I'm getting this error for certain transcoding and looks like cuda error
    daddysmackdown
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    #1
    2023-10-23, 02:54 AM (This post was last modified: 2023-10-23, 03:22 AM by TheDreadPirate. Edited 2 times in total.)
    Hi, I'm running proxmox 8.0 with a docker and NVIDIA driver 535.104.06 with vgpu unlocked.  For certain videos, i'm getting the error below.  It looks like CUDA error but I'm not sure how to fix it. 

    It also looks like HEVC is the only one that i'm having problem with

    ffmpeg version 5.1.3-Jellyfin Copyright © 2000-2022 the FFmpeg developers
      built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
      configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      libavutil      57. 28.100 / 57. 28.100
      libavcodec    59. 37.100 / 59. 37.100
      libavformat    59. 27.100 / 59. 27.100
      libavdevice    59.  7.100 / 59.  7.100
      libavfilter    8. 44.100 /  8. 44.100
      libswscale      6.  7.100 /  6.  7.100
      libswresample  4.  7.100 /  4.  7.100
      libpostproc    56.  6.100 / 56.  6.100
    [AVHWDeviceContext @ 0x55c643060d40] cu->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
    Device creation failed: -542398533.
    Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
    Error parsing global options: Generic error in an external library

    Hope someone can help please


    Attached Files
    .txt   NVIDIA-SMI.txt (Size: 1.69 KB / Downloads: 92)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-10-23, 03:04 PM
    Can you share your jellyfin and ffmpeg logs with us?
    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]
    Finallf
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2024 Apr
    Reputation: 0
    Country:Brazil
    #3
    2024-04-07, 05:01 AM
    I have the same error, I decided not to open a new topic and post it here, if necessary, I can open a new one.

    Jellyfin LOG: https://pastebin.com/HEyVSXjU

    FFmpeg LOG: 
    .txt   FFmpegLOG.txt (Size: 8.41 KB / Downloads: 71)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-04-07, 03:10 PM
    Which Nvidia GPU? Can you share your docker compose?
    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]
    Finallf
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2024 Apr
    Reputation: 0
    Country:Brazil
    #5
    2024-04-10, 02:03 AM
    I use a GTX 1070
    I managed to solve it, in my case, it was happening because the nvidia-uvm module was not starting for some reason.

    So I created this script that starts with the system:

    Code:
    DUNAME=/lib/modules/`uname -r`/
    DIDKMS=/lib/modules/`uname -r`/updates/dkms/

    echo "§§ Checking if nvidia modules are started... §§"
    if [[ ! -f "$DUNAME"nvidia-uvm.ko ]]; then
      echo "§§ nvidia-uvm.ko does not exist, creating module with symbolic link... §§"
      sudo ln -s "$DIDKMS"nvidia-current-uvm.ko "$DUNAME"nvidia-uvm.ko
      echo "§§ Updating the module list... §§"
      sudo depmod -a
      echo "§§ Starting Nvidia modules... §§"
      sudo nvidia-container-cli -k -d /dev/tty info
    else
      echo "§§ nvidia-uvm.ko exists, checking if it is started... §§"
      if [[ ! -f /dev/nvidia-uvm ]]; then
        echo "§§ nvidia-uvm not started, starting... §§"
        sudo nvidia-container-cli -k -d /dev/tty info
      else
    echo "§§ nvidia-uvm is already started. §§"
      fi
    fi
    ## Configure NVIDIA runtime in docker
    echo "§§ Configuring Nvidia runtime in docker... §§"
    RUNCHK=$(find /etc/docker/daemon.json -exec grep -l -i "nvidia-container-runtime" {} \;)

    if [ -z "$RUNCHK" ]; then
      sudo nvidia-ctk runtime configure --runtime=docker
      echo "§§ Nvidia runtime configured. §§"
      echo "§§ Restarting Docker §§"
      sudo systemctl restart docker
    else
      echo "§§ NVIDIA runtime is already configured. §§"
    fi
    1
    « 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