Hi,
Please refer to the samples about launching RTSP source:
I got the RTSP video stream on the jetson nano and ran it for about 50 frames before returning false - #7 by DaneLLL
Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL
See if you can run the samples and apply to your usecase.