Hi,
We have tried to set up UDP and don’t have much experience about setting up RTSP. This would need other users to share experience.
Have searched online and this may help:
How to create x264 RTSP server with OpenCV Python with GStreamer backend - Stack Overflow