gst-launch-1.0 libcamerasrc camera-name="/base/soc/bus@42000000/i2c@42540000/os08a20_mipi@36" ! video/x-raw,width=1920,height=1080,format=YUY2 ! tee name=main_tee \
main_tee. ! queue max-size-buffers=2 leaky=downstream ! imxvideoconvert_g2d ! video/x-raw,width=640,height=360 ! v4l2sink device=/dev/video61 \
main_tee. ! queue max-size-buffers=2 leaky=downstream ! imxvideoconvert_g2d ! video/x-raw,width=1280,height=720 ! v4l2h265enc ! h265parse ! rtph265pay config-interval=1 mtu=1400 ! udpsink host=127.0.0.1 port=5000
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! rtph265depay ! h265parse ! v4l2h265dec ! waylandsink