The entire process is as follows.
sudo apt update
sudo rsetup # system → update
sudo apt install task-a733-vpu
sudo apt -f install
sudo apt install -y
gstreamer1.0-tools
gstreamer1.0-plugins-base
gstreamer1.0-plugins-good
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-ugly
gstreamer1.0-libav
gstreamer1.0-nice
gstreamer1.0-plugins-rtp
gstreamer1.0-rtsp
ffmpeg
v4l-utils
#make file
sudo nano /etc/udev/rules.d/99-cedar-permissions.rules
#send to file ‘99-cedar-permissions.rules’ below 3 line
KERNEL==“cedar_dev*”, MODE=“0666”
SUBSYSTEM==“dma_heap”, KERNEL==“system”, MODE=“0666”
KERNEL==“video*”, MODE=“0666”, GROUP=“video”
#re launch
sudo udevadm control --reload-rules && sudo udevadm trigger
sudo usermod -aG video radxa
#check rights
ls -l /dev/cedar_dev* /dev/dma_heap/system
#omx enc test command
ffmpeg -f v4l2 -video_size 1280x480 -i /dev/video0 -f rawvideo -pix_fmt nv12 - |
gst-launch-1.0 fdsrc blocksize=921600 !
videoparse width=1280 height=480 format=nv12 framerate=15/1 !
queue max-size-buffers=100 !
omxh264videoenc ! h264parse !
video/x-h264,stream-format=byte-stream !
filesink location=stereo_final.h264
#check file size
ls -l stereo_final.h264
#install mediamtx
wget https://github.com/bluenviron/mediamtx/releases/download/v1.17.0/mediamtx_v1.17.0_linux_arm64.tar.gz
tar -xvzf mediamtx_v1.17.0_linux_arm64.tar.gz
#run on another session
#./mediamtx
#from usb camera
#run! but 30fps performance is lacking.
ffmpeg -f v4l2 -c:v mjpeg -video_size 3200x1200 -framerate 25 -i /dev/video0
-f rawvideo -pix_fmt yuvj422p - |
gst-launch-1.0 fdsrc blocksize=5760000 do-timestamp=true !
rawvideoparse width=3200 height=1200 format=y42b framerate=25/1 !
queue leaky=downstream max-size-buffers=1 !
videoconvert !
omxh264videoenc control-rate=constant target-bitrate=10000000
periodicity-idr=25 interval-intraframes=25 b-frames=0 !
video/x-h264,profile=baseline,stream-format=byte-stream ! h264parse !
rtspclientsink location=rtsp://localhost:8554/mystream protocols=udp sync=false
#check speed=1.0