<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi all<br />
<br />
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:<br />
<br />
gst-launch-1.0 rtspsrc location=rtsp://ip/stream ! queue ! rtph264depay ! h264parse ! fakesink<br />
<br />
fails with the following:<br />
<br />
Progress: (open) Retrieving media info<br />
Progress: (request) SETUP stream 0<br />
Progress: (request) SETUP stream 1<br />
Progress: (open) Opened Stream<br />
Setting pipeline to PLAYING ...<br />
New clock: GstSystemClock<br />
Progress: (request) Sending PLAY request<br />
Redistribute latency...<br />
Redistribute latency...<br />
Progress: (request) Sending PLAY request<br />
Redistribute latency...<br />
Redistribute latency...<br />
Progress: (request) Sent PLAY request<br />
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.<br />
Additional debug info:<br />
../subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c(6554): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:<br />
Could not receive message. (Parse error)<br />
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.<br />
<br />
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.<br />
<br />
Thanks<br />
<br />
John</div>
</div>
</body>
</html>