![]() |
Issues with HW transcoding - RK3588 - 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: Issues with HW transcoding - RK3588 (/t-issues-with-hw-transcoding-rk3588) Pages:
1
2
|
Issues with HW transcoding - RK3588 - krimanas - 2025-01-02 Hi, I am having issues with getting HW transcoding to work. Some hints on what is causing the transcoding to fail would be great! Error description: After enabling Hardware acceleration, and trying to play a HDR video on my Iphone, It fails with error Code: The AVPlayerItem instance has failed with error code -1008 and domain "NSURLErrorDomain". Logs: ![]() Transcoding logs: ![]() Docker Compose.yaml: Code: services: Setup: HW:
RE: Issues with HW transcoding - RK3588 - TheDreadPirate - 2025-01-02 What kernel are you running? RE: Issues with HW transcoding - RK3588 - krimanas - 2025-01-02 (2025-01-02, 01:38 PM)TheDreadPirate Wrote: What kernel are you running? Debian-bookworm-core-6.1-arm64 6.1.57 RE: Issues with HW transcoding - RK3588 - TheDreadPirate - 2025-01-02 You need to be using the Rockchip BSP kernel. https://jellyfin.org/docs/general/administration/hardware-acceleration/rockchip/#linux-setups RE: Issues with HW transcoding - RK3588 - krimanas - 2025-01-02 (2025-01-02, 02:48 PM)TheDreadPirate Wrote: You need to be using the Rockchip BSP kernel. Ah, I think I am? I am using rk3588-XYZ-debian-bookworm-core-6.1-arm64-YYYYMMDD.img.gz From https://wiki.friendlyelec.com/wiki/index.php/CM3588#Official_image RE: Issues with HW transcoding - RK3588 - TheDreadPirate - 2025-01-02 @nyanmisaka - Any ideas, Nyan? RE: Issues with HW transcoding - RK3588 - kanron - 2025-01-04 To piggyback off of this, I also can't get hardware decode/encode to work on the Rockchip 3588. My setup is as follows. * Hardware * FriendlyElec CM3588 Plus with the NAS SDK (32 GB RAM) * 4x NVMe drives * Software * Debian 12 base (installed from vendor-provided image, rk3588-eflasher-debian-bookworm-core-6.1-arm64-20241225.img.gz) * Kernel 6.1.57 * ZFS on Linux * Openmediavault 7.4.17-2 * omv-compose and omv-extras docker repo activated * Jellyfin docker container pulled through the "Add from examples" option in omv-compose I have completed the steps outlined in the documentation, namely * Checked for the existence of dma_heap, dri, mpp_service and rga in /dev on my host system -> OK * Installed the ARM Mali OpenCL runtime (libmali) on host (v1.9-1-55611b0 since I'm neither on Ubuntu nor Armbian - I hope this was correct? * Passed the relevant devices into the container (namely dma_heap, dri, mpp_service and rga, plus mali0 during troubleshooting attempts). My docker-compose file looks as follows: Code: --- I have attached the output of clinfo on the host (file 01...), the output of the test command inside the container (file 02...) and the corresponding logs from when the web player tells me playback had to be stopped due to a problem. I've tried to troubleshoot this to the best of my abilities, using google and GPT alike, but so far, no dice. The ffmpeg log says something about a failed device initialisation: Code: [hevc_rkmpp @ 0x5591452cb0] Failed to init MPP context: -1 The jellyfin log talks about an ffmpeg error code 187. The output of the ffmpeg debug command inside the container looks to me like it might indicate some problem: Code: [AVHWDeviceContext @ 0x5599053460] Failed to get number of OpenCL platforms: -1001. Did I screw up the setup for my GPU passthrough to the container somehow? They are, however, showing up inside the container: Code: root@24a170bd6af7:/# ls /dev Any help would be very much appreciated. RE: Issues with HW transcoding - RK3588 - hedefalk - 2025-05-23 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? RE: Issues with HW transcoding - RK3588 - nyanmisaka - 2025-05-23 Do not use the linuxserver.io image on RK3588, as it does not include the OpenCL runtime. Use the official image jellyfin/jellyfin. Another "Failed to init MPP context: -1" means missing permissions. Add one of the following settings to your docker configuration:
https://jellyfin.org/docs/general/post-install/transcoding/hardware-acceleration/rockchip#configure-with-linux-virtualization RE: Issues with HW transcoding - RK3588 - hedefalk - 2025-05-23 (2025-05-23, 04:01 PM)nyanmisaka Wrote: Do not use the linuxserver.io image on RK3588, as it does not include the OpenCL runtime. Use the official image jellyfin/jellyfin. This was key if for me. I was using hotio/jellyfin for some reason I no longer remember, but switched out now for the official jellyfin/jellyfin and now everything runs smooth. Thanks a lot! ![]() |