I am using this pipeline on the Jetson AGX Orin:
gst-launch-1.0 v4l2src device=/dev/video3 ! 'video/x-raw,width=1280,height=720,framerate=60/1,format=UYVY' ! nvvidconv ! nvv4l2h264enc ! rtph264pay ! udpsink host=xxx.xxx.x.xx port=5500
I can view the stream on a connected laptop with this pipeline:
gst-launch-1.0 udpsrc port=5500 ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! queue ! avdec_h264 ! videoconvert ! autovideosink sync=false
When I end the pipelines on both the Jetson AGX Orin and my laptop (using Ctrl-C) and then enter the same commands again, I am unable to view a stream. The only fix I have found is changing both ports to something else (ie port=5600) before restarting the streams. This sounds like GStreamer is somehow holding those ports after shutdown. Is there any way to get GStreamer to release port 5500 after I end the pipeline?