2025-05-23, 02:16 PM
(This post was last modified: 2025-05-23, 03:09 PM by hedefalk. Edited 3 times in total.)
I'm having the same issue.
I'm also running jellyfin on a FriendlyElec CM3588 Plus with the NAS SDK (32 GB RAM)
I'm running on a k3s cluster, but I've mapped the devices I think are needed (not mali0 though, but I have deselected tone mapping:
I guess most relevant thing here is what got me to find this thread:
>Failed to set value 'opencl=ocl@rk' for option 'init_hw_device': No such device
In the jellyfin main logs I see:
and in the ffmpegtranscode logs I have:
On my host I'm only seeing a subset of the devices listed in the docs, but this exact subset is mentioned here too:
root@CM3588-Plus:~# for dev in dri dma_heap mali0 rga mpp_service \
iep mpp-service vpu_service vpu-service \
hevc_service hevc-service rkvdec rkvenc vepu h265e ; do \
[ -e "/dev/$dev" ] && echo " --device /dev/$dev"; \
done
--device /dev/dri
--device /dev/dma_heap
--device /dev/mali0
--device /dev/rga
--device /dev/mpp_service
Are these other devices needed too?
I'm also running jellyfin on a FriendlyElec CM3588 Plus with the NAS SDK (32 GB RAM)
I'm running on a k3s cluster, but I've mapped the devices I think are needed (not mali0 though, but I have deselected tone mapping:
root@jellyfin-5d8cbd85c9-9btsr
# ls -l /dev | grep -E "mpp|rga|dri|dma_heap"
drwxr-xr-x 2 root root 160 Jan 1 1970 dma_heap
drwxr-xr-x 3 root root 140 Jan 26 2024 dri
crw------- 1 root root 241, 0 Jan 26 2024 mpp_service
crw------- 1 root root 10, 122 Jan 26 2024 rga
I guess most relevant thing here is what got me to find this thread:
>Failed to set value 'opencl=ocl@rk' for option 'init_hw_device': No such device
root@jellyfin-5d8cbd85c9-9btsr
# /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device rkmpp=rk -init_hw_device opencl=ocl@rk
ffmpeg version 7.1.1-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=arm64 --cross-prefix=/usr/bin/aarch64-linux-gnu- --toolchain=hardened --enable-cross-compile --enable-rkmpp --enable-rkrga --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
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'rkmpp=rk'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'opencl=ocl@rk'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument rkmpp=rk.
Applying option init_hw_device (initialise hardware device) with argument opencl=ocl@rk.
[AVHWDeviceContext @ 0x55a12d6f00] Failed to get number of OpenCL platforms: -1001.
Device creation failed: -19.
Failed to set value 'opencl=ocl@rk' for option 'init_hw_device': No such device
Error parsing global options: No such device
In the jellyfin main logs I see:
MediaBrowser.Common.FfmpegException: FFmpeg exited with code 187
and in the ffmpegtranscode logs I have:
[hevc_rkmpp @ 0x558e173500] Failed to init MPP context: -1
[vist#0:0/hevc @ 0x558dcdfeb0] [dec:hevc_rkmpp @ 0x558e172d80] Error while opening decoder: Generic error in an external library
[fc#0 @ 0x558dc92750] Error binding an input stream to complex filtergraph input setparams:default.
Error binding filtergraph inputs/outputs: Generic error in an external library
On my host I'm only seeing a subset of the devices listed in the docs, but this exact subset is mentioned here too:
root@CM3588-Plus:~# for dev in dri dma_heap mali0 rga mpp_service \
iep mpp-service vpu_service vpu-service \
hevc_service hevc-service rkvdec rkvenc vepu h265e ; do \
[ -e "/dev/$dev" ] && echo " --device /dev/$dev"; \
done
--device /dev/dri
--device /dev/dma_heap
--device /dev/mali0
--device /dev/rga
--device /dev/mpp_service
Are these other devices needed too?