Mpv failure on Rockchip BSP 6.1 with libmali g24p0

Running mpv with rkmpp video decoding results in blue screen for any of Jellyfin’s test videos(whether AVC, HEVC or AV1, even 8-bit videos). mpv config has been set with --hwdec=rkmpp --vd-lavc-o=afbc=on --vf=scale_rkrga=force_yuv=auto and running with drmprime, but mpv keeps throwing errors about [vo/gpu/drmprime] mapping DRM dmabuf failed, which I’m guessing is what’s causing mpv to display blue screen.

My setup is Armbian Noble with kernel compiled from radxa’s 6.1 rkr 4.1 source. Graphics driver is Mali DDK g25p0 with libmali userland g24p0-6, plus vulkan-wsi-layer from ginkage. Kernel has additional dmabuf patches to support system-uncached allocator. Desktop environment is GNOME (Wayland).

Can’t find any information online elsewhere about this blue screen issue with mpv, so would appreciate any guidance!

Which mpv version? If > 0.38 you need these patches:

Hmm weird I’m using mpv 0.37.0, do I still need these patches? Just to confirm you mean these 2 commits right?

yes those 2, but 0.37.0 should be fine without patches, i am guessing blob EGL is not treating nice to mpv…

MPV is known to not work properly with libmali (OpenGL ES). Unless you need the feature it provides, try switching to Panthor/Mesa 25.0+ for better MPV support.

1 Like