H264 Hardware encoding

Hello i use the ubuntu 22.04 from august (test-developper-only) thats enable the USB3 UVC camera support for linux V4L.
right now i can reach pretty good results by streaming a 1280x720@60fps H264 stream on rtsp/webrtc without any latency.(it is the value specified in the usb camera 1280x720@60!!!)
zzzzzaa

the vim4 cpus are at about 30% usage, witch is already awesome. can i push it by encoding H264 direct in hardware on the VIM4? here you are my gst pipe:

gst-launch-1.0 v4l2src ! video/x-raw,width=1280,height=720,format=UYVY ! videorate ! video/x-raw,framerate=60/1 ! videoconvert ! video/x-raw,format=I420 ! x264enc tune=zerolatency speed-preset=ultrafast bitrate=6000 ! queue ! rtspclientsink location=rtsp://localhost:8554/video

i send it to a local mediamtx rtsp server.

thanks!

Me back, i’ve found a solution here:
VIM4 Hardware Encoding [Khadas Docs]
but the gstreamer-aml is not reachable.
sudo apt install gstreamer-aml

maybe i need to add some PPA
i’ve those ones inside the VIM4:
zzea

thanks

This package is preinstalled by default for current image, you don’t need to install it manually. You can check with the command below:

root@Khadas:~# dpkg -l | grep gstreamer-aml
ii  gstreamer-aml                          0.5-202406                                        arm64        gstreamer-aml.