Rock 3a mpv 硬解码问题

板子:ROCK 3A RK3568
系统:Armbian_22.05.3_Rock-3a_bullseye_edge_5.18.0.img
内核:5.18.0

ffmpeg编译
./configure --enable-rkmpp --enable-version3 --enable-libdrm

boy@rock-3a:~$ mpv --geometry=800x450+0+0 --vo=gpu --hwdec=rkmpp ~/big.mp4
(+) Video --vid=1 () (h264 1920x1080 25.000fps)
(+) Audio --aid=1 (
) (aac 2ch 44100Hz)
File tags:
Artist: created with SUPER©.v2011.bld.49
Comment: 09:51:32
Title: big_buck_bunny_1080p_surround.avi_006.AVI.MP4
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 yuv420p
AV: 00:00:44 / 00:00:45 (100%) A-V: 0.000

Exiting… (End of file)

从CPU占用率看明显是软解压,请问 如何才能让MPV实现硬解压播放?谢谢

1 Like

主线内核的Armbian没有rkmpp。目前也无法实现mpv硬解播放。只有kodi可以,参考:[app] Kodi on armbian with hardware accelerating decode

在Armbian_22.05.3_Rock-3a_bullseye_edge_5.18.0.img系统下运行
boy@rock-3a:~$ kodi
failed to open zone.tab
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/rockchip_drv_video.so
libva info: va_openDriver() returns -1
Failed to open VDPAU backend libvdpau_rockchip.so: cannot open shared object file: No such file or directory

在rock-3a-debian-buster-xfce4-arm64-20220311-0428-gpt.img系统下运行
rock@rock-3a:~$ kodi
libEGL warning: DRI2: failed to authenticate

从CPU占用率看还是软解压.在rock-3a-debian-buster-xfce4-arm64-20220311-0428-gpt系统中的表现比在Armbian_22.05.3_Rock-3a_bullseye_edge_5.18.0.img系统中差,CPU占用更高

1,需要编译支持v4l2-request的ffmpeg
2,需要编译kodi,使用编译参数-DAPP_RENDER_SYSTEM=gles
3,在wayland桌面环境下运行kodi-standalone --windowing=wayland
4,kodi界面中启用Allow using DRM PRIME decoder Allow hardware acceleration with DRM PRIME

1 Like

“主线内核”没有,那么radxa提供的系统,用的那个修改版4.19内核有硬解码么?

有,可以用mpp,都是瑞芯微的方案,我没试过,应该是没问题的。

1 Like

请问,这个rkmpp具体支持什么。哪里可以看到呢?我想知道支不支持硬编码