Jellyfin Forum
Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - 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: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide (/t-enabling-tone-mapping-with-opencl-intel-arc-a380-errors-when-following-guide)



Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - motoridersd - 2023-11-26

I've followed the Intel GPU guide here: https://jellyfin.org/docs/general/administration/hardware-acceleration/intel#linux-setups

Almost everything works, except for the OpenCL runtime status, I get a segmentation fault when I run the command in the guide:

Code:
sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va
ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      57. 28.100 / 57. 28.100
  libavcodec    59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter    8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample  4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[AVHWDeviceContext @ 0x55a76eebb4c0] libva: VA-API version 1.20.0
[AVHWDeviceContext @ 0x55a76eebb4c0] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x55a76eebb4c0] libva: Found init function __vaDriverInit_1_20
[AVHWDeviceContext @ 0x55a76eebb4c0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55a76eebb4c0] Initialised VAAPI connection: version 1.20
[AVHWDeviceContext @ 0x55a76eebb4c0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.4.0 (05e4d0d).
[AVHWDeviceContext @ 0x55a76eebb4c0] Driver not found in known nonstandard list, using standard behaviour.
Segmentation fault

If I disable tone-mapping, playback of Dolby Vision content works, but colors look off. If I enable tone-mapping, the playback fails. I have "Prefer OS native DXVA or VA-API hardware decoders" checked, but my guess is the problem is related to the error above. ffmpeg is crashing when trying to use openCL.

Wasn't able to find much when searching around.

edit: Plex says Tone Mapping on Intel GPUs is only supported with Kaby Lake or higher, so maybe it is my Skylake CPU causing the segmentation fault.


RE: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - TheDreadPirate - 2023-11-26

Which distro are you running?


RE: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - motoridersd - 2023-11-26

Oops, that would have been helfpul. I'm running Ubuntu 22.04.3 with kernel 6.2.0-37 on bare metal.


RE: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - TheDreadPirate - 2023-11-26

Two things I can think of. What is the output of

Code:
apt policy intel-opencl-icd

If it is

Code:
intel-opencl-icd:
  Installed: (none)
  Candidate: 22.14.22890-1

Then run

Code:
sudo apt install -y intel-opencl-icd

If you already did that, since you said you followed this guide, try enabling low power encoding. I am pretty sure that low power encoding is required for Arc.


RE: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - motoridersd - 2023-11-26

Thanks. Yes, I already have intel-opencl-icd, it's a newer version:

intel-opencl-icd:
Installed: 23.30.26918.50-736~22.04
Candidate: 23.30.26918.50-736~22.04

I have both low power encoding options checked:

Enable Intel Low-Power H.264 hardware encoder
Enable Intel Low-Power HEVC hardware encoder

What doesn't match the guide is the output when checking the opencl status, where ffpeg is basically having a segmentation fault. My CPU is an i5-6500. Not sure if an older CPU would prevent tone-mapping from working properly.


RE: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - TheDreadPirate - 2023-11-26

I'm wondering if it still using your iGPU. Disable it in your BIOS.


RE: Enabling Tone Mapping with OpenCL Intel Arc A380. Errors when following guide - motoridersd - 2023-11-27

It's disabled. There is only one video controller detected by my system:

03:00.0 VGA compatible controller [0300]: Intel Corporation Device [8086:56a5] (rev 05)

I realized yesterday that Plex is using the A380 GPU for both transcoding and tone-mapping correctly.