Jellyfin Forum
OpenCL No matching devices found - 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: OpenCL No matching devices found (/t-opencl-no-matching-devices-found)



OpenCL No matching devices found - KodiCraft - 2024-02-05

Hello,

Whenever I attempt to view HDR content with tonemapping enabled, Jellyfin doesn't let me play it. Checking the logs, it appears like ffmpeg doesn't find any OpenCL devices:
Code:
[AVHWDeviceContext @ 0x2a9d600] No matching devices found.
Device creation failed: -19.
Failed to set value 'opencl=ocl:.0,device_vendor=Advanced Micro Devices' for option 'init_hw_device': No such device
Error parsing global options: No such device
This doesn't make sense since clinfo reports my device correctly.
Code:
Platform #0: AMD Accelerated Parallel Processing
`-- Device #0: gfx1030
While running the ffmpeg command manually, I noticed that the issue doesn't show up if I remove the VAAPI argument (-init_hw_device vaapi=va:/dev/dri/renderD128). The device is correctly found and used as far as I can tell. However, I am unsure of how to get Jellyfin to do this if it's even something I should do.

(For the record, disabling hardware acceleration or trying to use AMD VMF allows me to view my video but it is not tone mapped. For some reason direct playback of the file via mpv looks tone mapped or at the very least significantly brighter.)

What would be some next steps for troubleshooting, how should I try to deal with this? All help is appreciated.


RE: OpenCL No matching devices found - TheDreadPirate - 2024-02-05

What linux distro and what are the server specs?


RE: OpenCL No matching devices found - nyanmisaka - 2024-02-05

TBH you could give Jellyfin 10.9 & jellyfin-ffmpeg6 a try. It enables Vulkan filtering support on Linux for amdgpu so OpenCL is no longer needed. And it should work out of the box.


RE: OpenCL No matching devices found - KodiCraft - 2024-02-06

Right, I use NixOS on the 23.11 channel. My server uses a Ryzen 9 5900X and a Radeon RX 6800 XT.

NixOS doesn't appear to ship Jellyfin 10.9 yet but I'll give it a try. Thank you.