nvenc doesn't work in docker container. #5467

Closed
opened 2025-12-22 01:46:41 +01:00 by backuprepo · 1 comment
Owner

Originally created by @nexussapphire on GitHub (Feb 17, 2024).

Description
I updated Debian 12 to find the NVENC encoder doesn't work in jelly fin anymore despite the jelly-fin container reporting the driver version and CUDA version in NVIDIA-smi. I've included the NVIDIA container toolkit stuff but I don't really see anything obvious about it. I'm taking a shot in the dark and saying it probably has something to with the jelly-fin docker or something I messed up. I had to freeze the kernel version because NVIDIA drivers were failing to compile with the newer kernel version. They released an update to the NVIDIA driver and I updated back to the latest driver and kernel version.

Sat Feb 17 18:40:57 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05   Driver Version: 525.147.05   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:05:00.0 Off |                  N/A |
|  0%   45C    P8    12W / 120W |      1MiB /  6144MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Media Info of the file

HEVC (MKV container) being converted to AVC using nvenc
media information.txt

Logs

Log.log
Nvidia container toolkit.log

FFmpeg Logs

FFmpeg.Transcode.log

Stats for Nerds Screenshots

No video playback available.

Server System (please complete the following information):

  • OS: Docker on Debian 12 (linuxserver/jellyfin)
  • Jellyfin Version: 10.8.13
  • Hardware settings & device: NVENC on GTX1060
  • Reverse proxy: apache
  • Other hardware notes: ZFS filesystem, consumer grade hardware.

Client System (please complete the following information):

  • Device: android tv, andorid phones, linux, and one ios device
  • OS: iOS, Android, archlinux, fedora, linux mint
  • Client: web browser, Android, Android TV
  • Browser (if Web client):Firefox, Safari]
  • Client and Browser Version: firefox version 122.0.1
Originally created by @nexussapphire on GitHub (Feb 17, 2024). **Description** I updated Debian 12 to find the NVENC encoder doesn't work in jelly fin anymore despite the jelly-fin container reporting the driver version and CUDA version in NVIDIA-smi. I've included the NVIDIA container toolkit stuff but I don't really see anything obvious about it. I'm taking a shot in the dark and saying it probably has something to with the jelly-fin docker or something I messed up. I had to freeze the kernel version because NVIDIA drivers were failing to compile with the newer kernel version. They released an update to the NVIDIA driver and I updated back to the latest driver and kernel version. ``` lee@lotus:~$ docker exec -it jellyfin nvidia-smi Sat Feb 17 18:40:57 2024 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... On | 00000000:05:00.0 Off | N/A | | 0% 45C P8 12W / 120W | 1MiB / 6144MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ ``` **Media Info of the file** <!-- Use the Media Info tool (set to text format, download here: https://mediaarea.net/en/MediaInfo) or copy the info from the web ui for the file with the playback issue. --> HEVC (MKV container) being converted to AVC using nvenc [media information.txt](https://github.com/jellyfin/jellyfin/files/14319855/media.information.txt) **Logs** <!-- Please paste any log messages from during the playback issue. --> [Log.log](https://github.com/jellyfin/jellyfin/files/14319830/Log.log) [Nvidia container toolkit.log](https://github.com/jellyfin/jellyfin/files/14319837/Nvidia.container.toolkit.log) **FFmpeg Logs** <!-- Please paste any FFmpeg logs if remuxing or transcoding appears to be part of the issue. --> [FFmpeg.Transcode.log](https://github.com/jellyfin/jellyfin/files/14319831/FFmpeg.Transcode.log) **Stats for Nerds Screenshots** <!-- If available, add screenshots of the stats for nerds screen to help show the issue problem. --> No video playback available. **Server System (please complete the following information):** - OS: Docker on Debian 12 (linuxserver/jellyfin) - Jellyfin Version: 10.8.13 - Hardware settings & device: NVENC on GTX1060 - Reverse proxy: apache - Other hardware notes: ZFS filesystem, consumer grade hardware. **Client System (please complete the following information):** - Device: android tv, andorid phones, linux, and one ios device - OS: iOS, Android, archlinux, fedora, linux mint - Client: web browser, Android, Android TV - Browser (if Web client):Firefox, Safari] - Client and Browser Version: firefox version 122.0.1
Author
Owner

@nexussapphire commented on GitHub (Feb 17, 2024):

For whatever reason completely wiping all NVIDIA stuff from Debian and reinstalling it fixed it. I was a little confused about the fact apt wanted to auto-remove a lot of graphics and NVIDIA packages all of the sudden after updating to the latest kernel/video-driver.

Sorry for the trouble and keep up the good work!

@nexussapphire commented on GitHub (Feb 17, 2024): For whatever reason completely wiping all NVIDIA stuff from Debian and reinstalling it fixed it. I was a little confused about the fact apt wanted to auto-remove a lot of graphics and NVIDIA packages all of the sudden after updating to the latest kernel/video-driver. Sorry for the trouble and keep up the good work!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#5467
No description provided.