Build rtsp server:
Install dependencies
sudo apt update
sudo apt install build-essential gobject-introspection libcgroup-dev libgirepository1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev meson librga-dev
sudo apt-get install build-essential cmake git libdrm-dev librga-dev librockchip-mpp-dev libsdl2*-dev libx264-dev libx265-dev pkg-config
This needs to be compiled (only Build MPP and Build RGA)
Next, compile according to the instructions:
Then run (/rockchip/gstreamer/rtsp-server/gst-rtsp-server-1.18.4/build/examples )
./test-launch “( v4l2src device=/dev/video-camera0 io-mode=dmabuf ! video/x-raw,format=NV12,width=1280,height=720,framerate=60/1 ! mpph265enc ! rtph265pay name=pay0 pt=96 )”
or you can try this instruction: