I am trying to interface my IP camera with Jetson TX2 to store the video stream on Jetson. I would like to know how do I capture the RTSP signal outputted by the IP Camera so that I get the video steam and store it. Any insights?
You may check if URI is valid by running video playback:
$ gst-launch-1.0 uridecodebin uri=rtsp://admin:firstname.lastname@example.org:554/ISAPI/Streaming/channels/101 ! nvoverlaysink
If the URI is good, you can set
$ export GST_DEBUG=*FACTORY*:4
to print which elements are picked.
And construct a pipeline like
rtspsrc ! rtph264depay ! h264parse ! video/x-h264,stream-format=byte-stream ! filesink
to save the h264(or h265) stream.