Yesterday, 08:53 PM
I installed Jellyfin in a privileged LXC container on proxmox. I passed through /dev/dri/card1 and /dev/dri/renderD128 and everything worked smoothly yesterday. I confirmed that HW transcoding (AMD AMF) was enabled and played a couple of 4K movies without issues.
This morning I noticed the container had halted. Oddly, even without rebooting the PC, /dev/dri/card1 was now card0. I updated the passthrough, powered it off and on. But now I can no longer play any videos with HW transcoding. Turning off HW transcoding enables me to play 480P movies but not 4K.
I also tried VAAPI but the same error. When I ran this command, it generated errors below.
/usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va
dev/dri/renderD128 -init_hw_device opencl@va
----
No matching devices found.
Device creation failed: -19.
Failed to set value 'opencl@va' for option 'init_hw_device': No such device
Error parsing global options: No such device
I installed the latest AMD GPU drivers and followed this guide.
1. https://amdgpu-install.readthedocs.io/en...lling.html
2. https://jellyfin.org/docs/general/post-i...ration/amd
Happy to upload logs if those are useful. Here's a snippet from my one of my streams which seemed relevant.
Stream mapping:
Stream #0:0 (mpeg2video) -> setparams:default
Stream #0:5 (dvdsub) -> scale:default
overlay:default -> Stream #0:0 (av1_amf)
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[av1_amf @ 0x5e6de9d417c0] DLL libamfrt64.so.1 failed to open
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or heigh
t.
[fc#0 @ 0x5e6de9d3b080] Error sending frames to consumers: Unknown error occurred
[fc#0 @ 0x5e6de9d3b080] Task finished with error code: -1313558101 (Unknown error occurred)
[fc#0 @ 0x5e6de9d3b080] Terminating thread with return code -1313558101 (Unknown error occurred)
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Could not open encoder before EOF
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Task finished with error code: -22 (Invalid argument)
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Terminating thread with return code -22 (Invalid argument)
[out#0/hls @ 0x5e6de9d4f4c0] 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
Thanks in advance for your assistance.
This morning I noticed the container had halted. Oddly, even without rebooting the PC, /dev/dri/card1 was now card0. I updated the passthrough, powered it off and on. But now I can no longer play any videos with HW transcoding. Turning off HW transcoding enables me to play 480P movies but not 4K.
I also tried VAAPI but the same error. When I ran this command, it generated errors below.
/usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va

----
No matching devices found.
Device creation failed: -19.
Failed to set value 'opencl@va' for option 'init_hw_device': No such device
Error parsing global options: No such device
I installed the latest AMD GPU drivers and followed this guide.
1. https://amdgpu-install.readthedocs.io/en...lling.html
2. https://jellyfin.org/docs/general/post-i...ration/amd
Happy to upload logs if those are useful. Here's a snippet from my one of my streams which seemed relevant.
Stream mapping:
Stream #0:0 (mpeg2video) -> setparams:default
Stream #0:5 (dvdsub) -> scale:default
overlay:default -> Stream #0:0 (av1_amf)
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[av1_amf @ 0x5e6de9d417c0] DLL libamfrt64.so.1 failed to open
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or heigh
t.
[fc#0 @ 0x5e6de9d3b080] Error sending frames to consumers: Unknown error occurred
[fc#0 @ 0x5e6de9d3b080] Task finished with error code: -1313558101 (Unknown error occurred)
[fc#0 @ 0x5e6de9d3b080] Terminating thread with return code -1313558101 (Unknown error occurred)
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Could not open encoder before EOF
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Task finished with error code: -22 (Invalid argument)
[vost#0:0/av1_amf @ 0x5e6de9d526c0] Terminating thread with return code -22 (Invalid argument)
[out#0/hls @ 0x5e6de9d4f4c0] 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
Thanks in advance for your assistance.