Furkan, from the team, has been hard at work lately trying to get hardware accelerated video playback working on our devices. We can now announce that we have packages available in the repository for rockchip devices to enable this functionality. But there are some caveats though. It only works with local media, it needs a special ffmpeg package based on version 4.4, only works in wayland it seems, and only works with special mediaplayers compiled with the support, which we have provided as mpv-rk and kodi-rk. So to enable this functionality on your rockchip based device, install ffmpeg-rk, kernel-api-header-60 and mpv-rk or kodi-rk.
So this was from late december 2022. I went to pull these packages and the kernel-api-header-60 doesnt seem to exist, mpv-rk also didnt exist. I found out mpv-hwdec was where this was now. I pulled it and it pulled ffmpeg-rk along. I tried these out and it does say it’s trying to use drm to produce the video but I dont think it’s working right. I tried h264 and h265 1080p and 4k videos and it couldnt manage any of them well, from inside a desktop or launched from tty
I know the hardware is capable of smooth 4k60 because I’ve seen it on Libreelec. I had a good look around their kernel patches and ffmpeg patches, but excising that from the buildchain they have looked a pain. I was just looking for that kind of performance with a full linux install and not something Elec based. It looked like they were using v4l2_m2m and wrapping it in something else to escape the m2m part resulting in zero-copy output to drm. The old rkmmp stuff would also produce smooth 4k60 but who wants kernel 4.x these days.
Am I doing something wrong here?