• 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 SOLVED: RKMPP setup correct but missing a step to have full transcode?

     
    • 0 Vote(s) - 0 Average

    SOLVED: RKMPP setup correct but missing a step to have full transcode?

    CM3588 in LXC on proxmox - Jellyfin setup fine with RKMPP but won't transcode
    azngunit81
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Canada
    #1
    2025-01-05, 09:57 PM
    The version of Jellyfin you are running: 10.10.3
    Your installation method and platform: Proxmox + LXC Jellyfin

    I have followed the guide
    https://jellyfin.org/docs/general/admini...n/rockchip

    to get the hardware/drivers installed properly
    I've managed to reach the end with validation from the Jellyfin console that OpenCL and all the drivers are bootstrap
    When I launch the chrome browser OR the jellyfin client and try to transcode it fails
    Fail transcode log here:
    https://pastebin.com/8Bu0Rtzj

    However if i take the same FFMpeg CLI into the console - there is no error:
    https://pastebin.com/rQi3snAJ

    I'm lost as to what to do next to get the transcoding happen.
    All transcoding type is enabled as i read that it should be. I dont know what is my next step to get it working or to debug.
    Go to solution
    nyanmisaka
    Online

    Team Member

    Posts: 244
    Threads: 0
    Joined: 2023 Jun
    Reputation: 9
    #2
    2025-01-06, 10:36 AM
    Quote:[hevc_rkmpp @ 0x556fe36470] Failed to init MPP context: -1

       

    -1 means permission issue (-EPERM).
    azngunit81
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Canada
    #3
    2025-01-06, 02:54 PM
    (2025-01-06, 10:36 AM)nyanmisaka Wrote:
    Quote:[hevc_rkmpp @ 0x556fe36470] Failed to init MPP context: -1



    -1 means permission issue (-EPERM).

    I've granted privileges to the LXC Jellyfin container
    and
    Code:
    lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
    lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
    lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
    lxc.mount.entry: /dev/dma_heap dev/dma_heap none bind,optional,create=dir
    lxc.mount.entry: /dev/mpp_service dev/mpp_service none bind,optional,create=file
    lxc.mount.entry: /dev/rga dev/rga none bind,optional,create=file
    lxc.mount.entry: /dev/mali0 dev/mali0 none bind,optional,create=file
    lxc.cgroup2.devices.allow: a

    is there another missing permission that I missed in the documentation?
    azngunit81
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Canada
    #4
    2025-01-06, 06:21 PM (This post was last modified: 2025-01-06, 06:25 PM by azngunit81. Edited 1 time in total.)
    ive added 

    usermod -aG video jellyfin
    usermod -aG input jellyfin
    usermod -aG render jellyfin


    inside the LXC of jellyfish - I thought it would help resolve the issue but it didnt
    gnattu
    Offline

    Team Member

    Posts: 336
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #5
    2025-01-06, 06:53 PM
    I don't think the LXC container properly executes the udev rules so that only root user is allowed to access the transcoding hardware.
    azngunit81
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Canada
    #6
    2025-01-06, 07:48 PM
    So how do I fix this? like I've added Jellyfin to the user group
    the LXC is privileged

    maybe there is a mix up in the LXC config?
    here it is

    arch: arm64
    cores: 2
    features: nesting=1
    hostname: jellyfin
    memory: 2048
    mp0: data:100/vm-100-disk-0.raw,mp=/mnt/samba,size=1000G
    net0: name=eth0,bridge=wan,hwaddr=AA:21:21:13:16:12,ip=dhcp,type=veth
    onboot: 1
    ostype: debian
    rootfs: local:201/vm-201-disk-0.raw,size=10G
    swap: 512
    tags: proxmox-helper-scripts
    lxc.cgroup2.devices.allow: a
    lxc.cap.drop:
    lxc.cgroup2.devices.allow: c 188:* rwm
    lxc.cgroup2.devices.allow: c 189:* rwm
    lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir
    lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
    lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
    lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
    lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
    lxc.cgroup2.devices.allow: c 226:0 rwm
    lxc.cgroup2.devices.allow: c 226:128 rwm
    lxc.cgroup2.devices.allow: c 29:0 rwm
    lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
    lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
    lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
    lxc.mount.entry: /dev/dri/renderD129 dev/dri/renderD129 none bind,optional,create=file
    lxc.mount.entry: /dev/dma_heap dev/dma_heap none bind,optional,create=dir
    lxc.mount.entry: /dev/mpp_service dev/mpp_service none bind,optional,create=file
    lxc.mount.entry: /dev/rga dev/rga none bind,optional,create=file
    lxc.mount.entry: /dev/mali0 dev/mali0 none bind,optional,create=file
    lxc.cgroup2.devices.allow: a
    gnattu
    Offline

    Team Member

    Posts: 336
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #7
    2025-01-06, 08:51 PM
    Have you tried to chown those file to root:video and chmod them 0660 manually on the host? I *think* they are still root:root with 0660 permissions.

    Or, did you even properly set the udev rules as described in this section https://jellyfin.org/docs/general/admini...linux-host at all? That step is required.
    azngunit81
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Canada
    #8
    2025-01-06, 09:52 PM
    thanks @gnattu

    so two things I tried

    chmod -R 777 /dev/dma_heap/* && \
    chmod -R 777 /dev/mpp_service && \
    chmod -R 777 /dev/rga && \
    chmod -R 777 /dev/mali0


    this works but allowing 777 while root is a bit sketch

    so , I returned them to 660 but as you have mentioned ive put them into the video group instead

    chown -R root:video /dev/dma_heap && \
    chown root:video /dev/mpp_service && \
    chown root:video /dev/rga && \
    chown root:video /dev/mali0


    and that also worked!
    as an extra check on the host promos console I've
    watch -n 1 cat /sys/kernel/debug/rkrga/load

    and saw the process transcoded.

    the udev portion is not needed with this.

    thanks for the help!
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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