Jellyfin Forum
Cant get transocding to work in new lxc - 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: Cant get transocding to work in new lxc (/t-cant-get-transocding-to-work-in-new-lxc)



Cant get transocding to work in new lxc - Squid - 2025-03-26

reinstalled and made a new lcx installation from https://community-scripts.github.io/ProxmoxVE/scripts?id=jellyfin

GPU passthrough works..

However, if i install 
Quote:nvidia-utils-535
i get that jellyfin/ffmpeg
Quote: Cannot load libnvidia-encode.so.1
.

So when i install 
Quote:apt install libnvidia-encode-535-server
but then with playback i get 

Quote:AVHWDeviceContext @ 0x60a689417e80] cu->cuInit(0) failed -> CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE: forward compatibility was attempted on non supported HW
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


if i then install back nvidia-utils-535 i get:
Quote:[av1_nvenc @ 0x63657994a300] Cannot load libnvidia-encode.so.1
[av1_nvenc @ 0x63657994a300] The minimum required Nvidia driver for nvenc is 520.56.06 or newer
[vost#0:0/av1_nvenc @ 0x636579949e80] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[fc#0 @ 0x63657984d600] Error sending frames to consumers: Operation not permitted
[fc#0 @ 0x63657984d600] Task finished with error code: -1 (Operation not permitted)
[fc#0 @ 0x63657984d600] Terminating thread with return code -1 (Operation not permitted)
[vost#0:0/av1_nvenc @ 0x636579949e80] Could not open encoder before EOF
[vost#0:0/av1_nvenc @ 0x636579949e80] Task finished with error code: -22 (Invalid argument)
[vost#0:0/av1_nvenc @ 0x636579949e80] Terminating thread with return code -22 (Invalid argument)
[out#0/hls @ 0x636579990540] 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   
Conversion failed!

What am i supposed to do to get both nvidia-smi to work AND transcoding the stuff, right now i just toggle between packages because installing one, removes the other and just tosses around a new error which searching the web doesnt help.

proxmox lxc, not docker.
JF 10.10.6
LXC: 
Quote:root@jellyfin:~# uname -a

Linux jellyfin 6.8.12-8-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-8 (2025-01-24T12:32Z) x86_64 x86_64 x86_64 GNU/Linux



RE: Cant get transocding to work in new lxc - bitmap - 2025-03-26

What GPU do you have? Could you also provide mediainfo or ffprobe of a file that causes transcoding to fail? In my experience, errors -1 and -22 generally mean something in the ffmpeg transcode is unsupported by the hardware acceleration selected.

Additionally, did you follow the HWA setup steps for NVIDIA?

https://jellyfin.org/docs/general/administration/hardware-acceleration/nvidia


RE: Cant get transocding to work in new lxc - TheDreadPirate - 2025-03-26

And also provide the output of this command.

Code:
sudo apt list --installed | egrep "libnv|nvidia"