See this post by Zac for RTSP transmission between two devices. He’s using gscam on ROS to get the output.
You can also modify the c code for gst_viewer.c and experiment with the pipeline.
For example, this will send it to a specific IP device.
pipe_proc = " decodebin ! jpegenc ! rtpjpegpay ! udpsink host=192.168.2.100 port=5000 qos=false sync=false";
You can get the IP addresses of the devices on your network with:
sudo arp-scan --interface=eth0 --localnet
Change the interface to your Wi-Fi card. The example above is Ethernet.
On a Jetson Nano, I am receiving the RTSP stream with this and viewing it as equirectangular. The pipeline is specific to a Jetson. However, you can get a basic idea of the concept.
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoscale ! video/x-raw,width=640,height=320 ! nveglglessink
If you get something working, please post.