• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Issues with HW transcoding - RK3588

     
    • 0 Vote(s) - 0 Average

    Issues with HW transcoding - RK3588

    HW transcoding fails on RK3588 in docker
    kanron
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Jan
    Reputation: 0
    #7
    2025-01-04, 09:18 PM
    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:
    ---
    # https://hub.docker.com/r/linuxserver/jellyfin
    services:
      jellyfin:
        image: lscr.io/linuxserver/jellyfin:latest
        container_name: jellyfin
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Etc/UTC
          - JELLYFIN_PublishedServerUrl=omv-nas.fritz.box:8096/ #optional
        volumes:
          - CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/library:/config
          - CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/tvseries:/data/tvshows
          - CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/movies:/data/movies
          - type: bind
            source: /zfs-nvme/media/Medien/Filme
            target: /movies
            read_only: true
          - type: bind
            source: /zfs-nvme/media/Medien/Serien
            target: /tvshows
            read_only: true
        devices:
          - "/dev/dma_heap:/dev/dma_heap"
          - "/dev/dri:/dev/dri"
          - "/dev/mpp_service:/dev/mpp_service"
          - "/dev/rga:/dev/rga"
          - "dev/mali0:/dev/mali0"
        ports:
          - 8096:8096
        restart: unless-stopped

    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
    [vist#0:0/hevc @ 0x559140ef30] [dec:hevc_rkmpp @ 0x5591444190] Error while opening decoder: Generic error in an external library
    [vost#0:0/h264_rkmpp @ 0x5591442ae0] Error initializing a simple filtergraph
    Error opening output file /config/cache/transcodes/b809758c684ae89f5e1068c983d5ac77.m3u8.
    Error opening output files: Generic error in an external library

    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.
    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

    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
    core  dma_heap  dri  fd  full  mali0  mpp_service  mqueue  null  ptmx  pts  random  rga  shm  stderr  stdin  stdout  tty  urandom  zero

    Any help would be very much appreciated.


    Attached Files
    .txt   04 Log_FFmpeg.txt (Size: 10.95 KB / Downloads: 38)
    .txt   01 clinfo.txt (Size: 28.87 KB / Downloads: 46)
    .txt   03 Log_jf.txt (Size: 33.49 KB / Downloads: 37)
    .txt   02 container ffmpeg debug.txt (Size: 2.22 KB / Downloads: 40)
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Issues with HW transcoding - RK3588 - by krimanas - 2025-01-02, 11:10 AM
    RE: Issues with HW transcoding - RK3588 - by TheDreadPirate - 2025-01-02, 01:38 PM
    RE: Issues with HW transcoding - RK3588 - by krimanas - 2025-01-02, 02:09 PM
    RE: Issues with HW transcoding - RK3588 - by TheDreadPirate - 2025-01-02, 02:48 PM
    RE: Issues with HW transcoding - RK3588 - by krimanas - 2025-01-02, 04:28 PM
    RE: Issues with HW transcoding - RK3588 - by TheDreadPirate - 2025-01-02, 04:38 PM
    RE: Issues with HW transcoding - RK3588 - by kanron - 2025-01-04, 09:18 PM
    RE: Issues with HW transcoding - RK3588 - by hedefalk - 2025-05-23, 02:16 PM
    RE: Issues with HW transcoding - RK3588 - by nyanmisaka - 2025-05-23, 04:01 PM
    RE: Issues with HW transcoding - RK3588 - by hedefalk - 2025-05-23, 07:11 PM
    RE: Issues with HW transcoding - RK3588 - by bitmap - 2025-05-23, 07:25 PM
    RE: Issues with HW transcoding - RK3588 - by nyanmisaka - 2025-05-23, 08:46 PM
    RE: Issues with HW transcoding - RK3588 - by bitmap - 2025-05-23, 10:44 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode