CM5 and mpph264enc

I want to use hardware H264 encoder with gstreamer, but performance is very bad. I have 1080p@25fps and YUY2 format from camera, but I receive like few frames every few seconds. For example, x264enc works much better, even with default values can get almost smooth stream.

Gstreamer pipeline:
gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)YUY2,width=1920,height=1080,framerate=25/1" ! queue ! mpph264enc bps=5000000 rc-mode=0 ! h264parse config-interval=2 ! video/x-h264, stream-format=byte-stream ! queue ! mpegtsmux alignment=7 ! rtpmp2tpay ! udpsink host=192.168.1.1 port=1234

I have bookworm, updated to latest packages and kernel - 6.1.84-5-rk2410.

Any suggestions or ideas how to fix or debug?

Maybe related to this https://github.com/Joshua-Riek/ubuntu-rockchip/issues/773

Thank you for sharing this. I solved problem with using Ubuntu 24.4 from Joshua-Riek (https://joshua-riek.github.io/ubuntu-rockchip-download/boards/radxa-cm5-io.html). There is also kernel 6.1, but all works well. I also tried to reflash official version (radxa-cm5-io_bookworm_kde_b3.output.img), but was the same as before. Also mpph265enc does not work as should.

I did not tried to recompile gstreamer-rockchip from there as suggested on that link, so can not say if it would help or not on official image.