Please follow the documentation to upgrade your system to latest version.
The video node is /dev/video60.
Only for 6.12 kernel.
Record video and perform H264 encoding:
gst-launch-1.0 -e v4l2src device=/dev/video60 io-mode=dmabuf num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! amlvenc bitrate=8000 ! h264parse ! qtmux ! filesink location=test-h264.mp4
Record video and perform H265 encoding:
gst-launch-1.0 -e v4l2src device=/dev/video60 io-mode=dmabuf num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! amlvenc bitrate=8000 ! h265parse ! qtmux ! filesink location=test-h265.mp4
TODO
You can use gstreamer waylandsink to preview the video on Ubuntu Wayland desktop:
gst-launch-1.0 v4l2src device=/dev/video60 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! waylandsink
You can use the command below to check display fps:
gst-launch-1.0 -v v4l2src device=/dev/video60 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! fpsdisplaysink video-sink=waylandsink sync=false text-overlay=false