RTSP over UDP fails

John McDermott egglue at gmail.com
Tue May 31 17:46:15 UTC 2022


Hi all

I have a camera that possibly has an unstable connection. FFMPEG can read the stream fine over UDP but not TCP. It takes a few second to setup, but it works fine over UDP nonetheless. The camera probably supports only UDP. However, the standard command:

gst-launch-1.0 rtspsrc location=rtsp://ip/stream ! queue ! rtph264depay ! h264parse ! fakesink

fails with the following:

Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Redistribute latency...
Redistribute latency...
Progress: (request) Sending PLAY request
Redistribute latency...
Redistribute latency...
Progress: (request) Sent PLAY request
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
../subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c(6554): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Parse error)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.

Is there a way to allow make Gstreamer to be as “resilient” as FFMPEG? My guess is that if GST could spend a few more seconds establishing the connection and/or reading the stream, it should work.

Thanks

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220601/f53e9f70/attachment.htm>


More information about the gstreamer-devel mailing list