linuxserver / docker-jellyfin

GNU General Public License v3.0
647 stars 97 forks source link

No Hardware Transcode with Nvidia GPU. #100

Closed adamzvolanek closed 3 years ago

adamzvolanek commented 3 years ago

linuxserver.io

Having set the docker parameters for the --runtime-nvidia, nvidia GPU's ID, and parameters, I am unable to transcode using the GTX 1660. The logs are citing a "no device available for decoder".

Expected Behavior

The ffmpeg to show transcoding behavior. Activity listed in the nvidia-smi however it is empty.

Current Behavior

FFmpeg fails to find a device and nvidia-smi remains empty from activity.

Steps to Reproduce

  1. Setup JellyFin docker per instructions
  2. Select 4k HEVC SDR or 4K HEVC HDR video to transcode
  3. View ffmpeg logs and observe error.

Environment

Command used to create docker container (run/create/compose/screenshot)

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='jellyfin' --net='bridge' -e TZ="America/Chicago" -e HOST_OS="Unraid" -e 'NVIDIA_VISIBLE_DEVICES'='GPU-201c0321-0f64-c185-4e78-ded96ed40231' -e 'PUID'='99' -e 'PGID'='100' -p '8096:8096/tcp' -p '8920:8920/tcp' -p '1900:1900/udp' -v '/mnt/user/Entertainment/Movies/':'/movies':'rw' -v '/mnt/user/Entertainment/TV Shows/':'/tv':'rw' -v '/mnt/user/Entertainment/Music/':'/music':'rw' -v '/mnt/user/appdata/jellyfin':'/config':'rw' --runtime=nvidia

Docker logs

Log.txt

Nvidia Settings Nvidia-si

thor2002ro commented 3 years ago

container is missing libs.... run in container

apt-get install libnvidia-encode-460-server libnvidia-decode-460-server

and all works...

adamzvolanek commented 3 years ago

Apologies for not closing this previously. Another reboot (count 2) after installing the nvidia drivers plugin for Unraid, has this bug solved.