Replies: 10 comments 9 replies
-
|
Does ffmpeg have the ability to use the Rockchip RGA2 from the mainline kernel? The support has been in the kernel since 6.12, and it's the same IP that's used by the rk3288 and rk3568. It might be able to used by the |
Beta Was this translation helpful? Give feedback.
-
|
Would it be okay to include a non-upstream ffmpeg build, similar to how the |
Beta Was this translation helpful? Give feedback.
-
Hacky DevelopmentFor my current proof of concept testing, I didn't bother trying to create a statically linked ffmpeg build with v4l2request hwaccel yet. I just built a dynamically linked ffmpeg on debian bookworm (to match frigate 0.16-beta2). Use a debian bookworm docker image, and compile the mesa rocket development branch https://gitlab.freedesktop.org/tomeu/mesa/-/tree/rocket Use a debian bookworm docker image, and compile the ffmpeg v4l2request development branch Create a new image from frigate:0.16.0-beta2-standard-arm64 |
Beta Was this translation helpful? Give feedback.
-
Slightly less HackyStarting with Frigate 0.17 beta, there is support for teflon. However, the libteflon.so TFLite delegate in Mesa 25.3's teflon has support for In the docker-compose.yaml, you can override the existing libteflon.so by adding it to the volumes In the docker-compose.yaml, you can override the existing ffmpeg_presets.py (#22102) by adding it to the volumes In the config.yaml, you can override the FFmpeg used. Now frigate will use the binaries placed at ...so you can use a stock |
Beta Was this translation helpful? Give feedback.
-
|
@jimmyhon I can see that you have
My frigate instance just dies: Any ideas ? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Radxa Rock 5B 16Gb.
Actual i use armbian: v25.11.2 for Rock 5B running Armbian Linux 6.1.115-vendor-rk35xx root@rock5b01:# ls -la /dev/dri/ /dev/accel* root@rock5b01:# dmesg | grep rocket |
Beta Was this translation helpful? Give feedback.
-
|
I'm a hobbyist working on a script to detect the NPU environment for ARM64 edge devices. Since I only have limited hardware, I’m looking for volunteers to run a quick test and see what is the environment on different NPU-equipped boards. This is a personal experimental project with no guarantees, just a survey to see what works and what doesn't. GitHub Repository: npu-toolbox Report Results: Please drop a comment in this survey issue: flappyjet/npu-toolbox#1 If you run the script, you will get a toml file like this Post updated: support NPU benchmark by |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jimmyhon ! |
Beta Was this translation helpful? Give feedback.
-
|
this is really good news, im glad to see we can use mainline kernel with our rockchip rk3588 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Rockchip BSP kernel
The current
-rkdocker images require the use of Rockchip's BSP kernel (5.10 or 6.1). They provide hardware acceleration by using theirrkmpplibrary, andrknnlibrary.Mainline kernel
Support for that hardware is also getting into upstream mainline kernel.
NPU
The RK3588 NPU can be used through as a TFLite Delegate by using Mesa's Teflon library with upcoming Rocket support in Mesa 25.3 and Kernel 6.18-rc1
Video Decoders
The RK3588 has two types of video decoders. The hantro_vpu has been upstream since kernel 6.12 for h.264.
The rkvdec (with H.264 and HEVC for resolutions of 1080p+) is being added in Kernel 7.0. https://lore.kernel.org/linux-rockchip/20260120222018.404741-1-detlev.casanova@collabora.com/
https://lore.kernel.org/linux-media/379e2cfb0ac6640936446b5e76dd24f854e7800c.camel@collabora.com/
Both of these hardware accelerators can be accessed by the v4l2-request API. FFmpeg support for the
v4l2-requesthas been submitted, but the latest development version can be found athttps://code.ffmpeg.org/Kwiboo/FFmpeg/commits/branch/v4l2request-v3
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20847
Adding more presets to Frigate https://github.com/jimmyhon/frigate/tree/v4l2request #22102
There are test binaries for ffmpeg at https://github.com/jimmyhon/frigate-builds/releases/tag/ffmpeg-8.0.1
To configure ffmpeg to build with the
v4l2requesthwaccel, the system will need to include libudev and have linux-libc-dev from a linux-6.1. The statically linked ffmpeg builder currently defaults to target linux 4.18, and does not build libudev yet. https://github.com/BtbN/FFmpeg-BuildsConfiguration
config.yaml
docker-compose.yml
On the RK3588, the hantro_vpu has issues with can cause ffmpeg to crash. Use rkvdec for video decoding.
ℹ️ I will try to keep this first post updated with current status
Beta Was this translation helpful? Give feedback.
All reactions