Jellyfin Forum
SOLVED: Issues using Hardware Acceleration for encoding - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Issues using Hardware Acceleration for encoding (/t-solved-issues-using-hardware-acceleration-for-encoding)



Issues using Hardware Acceleration for encoding - infarmerlelho - 2024-11-25

Jellyfin 10.10.3
Running on a Ubuntu Proxmox LXC Container

Trying to get my Nvidia Geforce 940MX to do some transcoding and ffmpeg exits out every time.
I've checked out https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new and it looks like my GPU supports NVENC

Jellyfin logs:
Quote: FFmpeg exited with code 218

FFMPEG logs:
Quote: 
[h264_nvenc @ 0x5aaccb923ec0] OpenEncodeSessionEx failed: unsupported device (2): (no details)
[vost#0:0/h264_nvenc @ 0x5aaccb8b14c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x5aaccb83bec0] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x5aaccb83bec0] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x5aaccb83bec0] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_nvenc @ 0x5aaccb8b14c0] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 0x5aaccb8b14c0] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 0x5aaccb8b14c0] Terminating thread with return code -22 (Invalid argument)
[out#0/hls @ 0x5aaccb8b1f40] 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   

Any help? Does my card not actually support transcoding? am I cooked?

Also, confirming I have drivers setup correctly (I think)

> nvidia-smi
Quote:Mon Nov 25 18:33:08 2024     
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.135                Driver Version: 550.135        CUDA Version: 12.4    |
|-----------------------------------------+------------------------+----------------------+
| 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 940MX          Off |  00000000:01:00.0 Off |                  N/A |
| N/A  47C    P0            N/A /  200W |      0MiB /  2048MiB |      0%      Default |
|                                        |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                       
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU  GI  CI        PID  Type  Process name                              GPU Memory |
|        ID  ID                                                              Usage      |
|=========================================================================================|
|  No running processes found                                                            |
+-----------------------------------------------------------------------------------------+



RE: Issues using Hardware Acceleration for encoding - infarmerlelho - 2024-11-25

Nevermind, found out my specific chipset doesnt support encoding. I'm cooked