Jellyfin Forum
HW transcoding not working... Cannot load libcuda.so.1 - 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: HW transcoding not working... Cannot load libcuda.so.1 (/t-hw-transcoding-not-working-cannot-load-libcuda-so-1)



HW transcoding not working... Cannot load libcuda.so.1 - WuNgUn - 2023-12-23

UnRAID 6.9.2
Have a GTX960 mounted in my server for HW transcoding. Using official Jellyfin docker. 
HW transcoding enabled in options. 
Tried with and without the usual --runtime=nvidia and visible devices/capabilities = all variables added. 
Makes no diff 
Ffmpeg log spits out this.... 

[AVHWDeviceContext @ 0x561dfb9d1a80] Cannot load libcuda.so.1

[AVHWDeviceContext @ 0x561dfb9d1a80] Could not dynamically load CUDA

Device creation failed: -1.

Failed to set value 'cuda=cu:0' for option 'init_hw_device': Operation not permitted

Error parsing global options: Operation not permitted

I'm not very fluent with unraid or Linux but I can fluff my way around. But I can't figure this one out. 🤷

Nvidia driver 515.43.04 installed 
Shows my GPU present

Anyone have any ideas, would be greatly appreciated.


RE: HW transcoding not working... Cannot load libcuda.so.1 - tmsrxzar - 2023-12-23

did you follow https://docs.linuxserver.io/images/docker-jellyfin/#nvidia ?


RE: HW transcoding not working... Cannot load libcuda.so.1 - WuNgUn - 2023-12-23

(2023-12-23, 07:53 PM)tmsrxzar Wrote: did you follow https://docs.linuxserver.io/images/docker-jellyfin/#nvidia ?

Apparently I need nvidia toolkit? Except, I don't know how to dowmload/install it outsode of unraid Gui docker screen.... And it ain't there. 

Did I mention I was a newb?


RE: HW transcoding not working... Cannot load libcuda.so.1 - tmsrxzar - 2023-12-23

try this post https://forum.jellyfin.org/t-gpu-transcoding-on-unraid


RE: HW transcoding not working... Cannot load libcuda.so.1 - WuNgUn - 2023-12-23

(2023-12-23, 09:17 PM)tmsrxzar Wrote: try this post https://forum.jellyfin.org/t-gpu-transcoding-on-unraid

That looks like it KINDA worked... 
HEVC 4K content plays now (yay!) but CPU's still taking a big hit. 
But GPU is showing an active process but the encoder is only seeing 6 to 9% utilization...? 🤷

Edit: enabling HEVC (H265) transcoding fixed it. I was testing a 4k HEVC movie with it switched off and therefore was seeing the high CPU load and low GPU utilization.