Jellyfin Forum
Added Arc A380 for transcoding: Failed to get number of OpenCL platforms: -1001. - 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: Added Arc A380 for transcoding: Failed to get number of OpenCL platforms: -1001. (/t-added-arc-a380-for-transcoding-failed-to-get-number-of-opencl-platforms-1001)



Added Arc A380 for transcoding: Failed to get number of OpenCL platforms: -1001. - toomanytoons - 2025-11-27

Followed the guide as best I could, no errors, until I got to this command:

Code:
sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va

ffmpeg version 7.1.2-Jellyfin Copyright © 2000-2025 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.3.0-6ubuntu2~24.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      59. 39.100 / 59. 39.100
  libavcodec    61. 19.101 / 61. 19.101
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample  5.  3.100 /  5.  3.100
  libpostproc    58.  3.100 / 58.  3.100
[AVHWDeviceContext @ 0x5baf74685880] libva: VA-API version 1.22.0
[AVHWDeviceContext @ 0x5baf74685880] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x5baf74685880] libva: Found init function __vaDriverInit_1_22
[AVHWDeviceContext @ 0x5baf74685880] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x5baf74685880] Initialised VAAPI connection: version 1.22
[AVHWDeviceContext @ 0x5baf74685880] VAAPI driver: Intel iHD driver for Intel® Gen Graphics - 25.3.4 (192fe0f).
[AVHWDeviceContext @ 0x5baf74685880] Driver not found in known nonstandard list, using standard behaviour.
WARNING: Small BAR detected for device 0000:03:00.0
[AVHWDeviceContext @ 0x5baf746c87c0] Failed to get number of OpenCL platforms: -1001.
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

Is any of that anything I need to try to correct?  It does seem to be working, CPU usage did not hit 100% and the transcode log said it was using QSV.  Hit almost 500fps transcoding for the playback in Mozilla, before on the same file it was just under 60fps.  I don't have BAR support, it's 4th Gen i5. Lastest jellyfin 10.11.3 of course.  Ubuntu baremetal 24.04; tried adding  NEOReadDebugKeys=1 OverrideGpuAddressSpace=48 to the environment like I found in an old github forum post for the intel compute-runtime.  Didn't seem to make a difference.

Thanks for looking.


RE: Added Arc A380 for transcoding: Failed to get number of OpenCL platforms: -1001. - alleycat - 2025-11-27

(4 hours ago)toomanytoons Wrote: Followed the guide as best I could, no errors, until I got to this command:

Code:
sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va

...

Is any of that anything I need to try to correct?  It does seem to be working, CPU usage did not hit 100% and the transcode log said it was using QSV.  Hit almost 500fps transcoding for the playback in Mozilla, before on the same file it was just under 60fps.  I don't have BAR support, it's 4th Gen i5. Lastest jellyfin 10.11.3 of course.  Ubuntu baremetal 24.04; tried adding  NEOReadDebugKeys=1 OverrideGpuAddressSpace=48 to the environment like I found in an old github forum post for the intel compute-runtime.  Didn't seem to make a difference.

Thanks for looking.

I'm using the ARC A310, basically the same. Here's what your command looks like on my system.
I have the iGPU in bios turned off and I also don't have resizable BAR. (not a requirement)  

Code:
tom@tyson:~$ sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va
[sudo] password for tom:
ffmpeg version 7.1.2-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.3.0-6ubuntu2~24.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      59. 39.100 / 59. 39.100
  libavcodec    61. 19.101 / 61. 19.101
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample  5.  3.100 /  5.  3.100
  libpostproc    58.  3.100 / 58.  3.100
[AVHWDeviceContext @ 0x5fefacf7f880] libva: VA-API version 1.22.0
[AVHWDeviceContext @ 0x5fefacf7f880] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x5fefacf7f880] libva: Found init function __vaDriverInit_1_22
[AVHWDeviceContext @ 0x5fefacf7f880] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x5fefacf7f880] Initialised VAAPI connection: version 1.22
[AVHWDeviceContext @ 0x5fefacf7f880] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 25.3.4 (192fe0f).
[AVHWDeviceContext @ 0x5fefacf7f880] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x5fefacfc27c0] 0.0: Intel(R) OpenCL Graphics / Intel(R) Arc(TM) A310 Graphics
[AVHWDeviceContext @ 0x5fefacfc27c0] Intel QSV to OpenCL mapping function found (clCreateFromVA_APIMediaSurfaceINTEL).
[AVHWDeviceContext @ 0x5fefacfc27c0] Intel QSV in OpenCL acquire function found (clEnqueueAcquireVA_APIMediaSurfacesINTEL).
[AVHWDeviceContext @ 0x5fefacfc27c0] Intel QSV in OpenCL release function found (clEnqueueReleaseVA_APIMediaSurfacesINTEL).

Here's my "neofetch" info also:

OS: Ubuntu 24.04.3 LTS x86_64
Host: OptiPlex 7050
Kernel: 6.8.0-87-generic
Uptime: 9 days, 15 hours, 26 mins
Packages: 1115 (dpkg)
Shell: bash 5.2.21
Terminal: /dev/pts/0
CPU: Intel i7-6700 (Nerd-face @ 4.000GHz
GPU: Intel DG2 [Arc A310]
Memory: 1180MiB / 31998MiB

This is an old thread where I was asking some of the same questions...
https://forum.jellyfin.org/t-transcoding-with-the-arc-a310

------------------------------------------------------------------------
tom@tyson:~$ apt list --installed | grep intel

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

intel-gpu-tools/noble,now 1.28-1ubuntu2 amd64 [installed]
intel-media-va-driver/noble-updates,now 24.1.0+dfsg1-1ubuntu0.1 amd64 [installed,automatic]
intel-microcode/noble-updates,noble-security,now 3.20250812.0ubuntu0.24.04.1 amd64 [installed,automatic]
intel-opencl-icd/noble,now 23.43.27642.40-1ubuntu3 amd64 [installed]
libdrm-intel1/now 2.4.122-1~ubuntu0.24.04.1 amd64 [installed,upgradable to: 2.4.122-1~ubuntu0.24.04.2]
tom@tyson:~$