Solving rtspsrc connectivity

Sergio Basurco sergio.b at coherentsynchro.com
Wed Mar 11 05:57:57 PDT 2015


Could this:

 > Additional debug info:
 > gstrtspsrc.c(4367): gst_rtspsrc_reconnect ():
 > /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
 > Could not receive any UDP packets for 5.0000 seconds, maybe your
 > firewall is blocking it. Retrying using a TCP connection.
 > 0:00:00.673178700  8036   07F57208 WARN         rtpjitterbuffer
 > rtpjitterbuffer.c:183:rtp_jitter_buffer_set_clock_rate: Clock rate
 > changed from 0 to 90000

be related to why the rtspsrc connection fails? I have disabled firewall 
and it still seems like the rtspsrc defaults to TCP instead of UDP.



El 10-Mar-15 a las 10:45 AM, Sergio Basurco escribió:
> Hello!
>
> I'm trying to solve rtspsrc connectivity. My pipeline works sometimes
> and sometimes it doesn't. It might be something to do with the camera
> and I'm trying to see where the issue comes from.
>
> Here's the pipeline:
>
> $ gst-launch-1.0.exe rtspsrc --gst-debug-level=3 location="rtsp://..." !
> fakesink
>
> And here's the output:
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Progress: (open) Opening Stream
> Progress: (connect) Connecting to
> rtsp://192.168.1.8/rtsp_tunnel?h26x=4&line=1&inst=1
> Progress: (open) Retrieving server options
> Progress: (open) Retrieving media info
> Progress: (request) SETUP stream 0
> Progress: (open) Opened Stream
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> Progress: (request) Sending PLAY request
> Progress: (request) Sending PLAY request
> 0:00:00.347981687  8464   07E47618 FIXME                default
> gstutils.c:3648:gst_pad_create_stream_id_printf_valist:<fakesrc0:src>
> Creating random stream-id, consider implementing a deterministic way of
> creating a stream-id
> 0:00:00.349280572  8464Progress: (request) Sent PLAY request
>     07E47438 WARN                  udpsrc
> gstudpsrc.c:548:gst_udpsrc_create:<udpsrc1> error: get available bytes
> failed
> 0:00:00.349552846  8464   07E47438 ERROR: from element
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: Could not
> read from resource.
> WARN                 basesrc
> gstbasesrc.c:2865:gst_base_src_loop:<udpsrc1> error: Internal data flow
> error.
> 0:00:00.349627706 Additional debug info:
> gstudpsrc.c(548): gst_udpsrc_create ():
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1:
> get available bytes failed
>   8464   07E47438 WARN    Execution ended after 0:00:00.002203245
>               basesrc gstbasesrc.c:2865:gst_base_src_loop:<udpsrc1>
> error: streaming task paused, reason error (-5)
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> 0:00:00.377982825  8464   07E47258 WARN                 rtspsrc
> gstrtspsrc.c:4996:gst_rtspsrc_try_send:<rtspsrc0> receive interrupted
> 0:00:00.378284681  8464   07E47258 WARN                 rtspsrc
> gstrtspsrc.c:6384:gst_rtspsrc_close:<rtspsrc0> TEARDOWN interrupted
> Freeing pipeline ...
>
>
>
>
> When the pipeline does work, I'm getting a UDP vs TCP report, with the
> same pipeline:
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Progress: (open) Opening Stream
> Progress: (connect) Connecting to
> rtsp://192.168.1.8/rtsp_tunnel?h26x=4&line=1&inst=1
> Progress: (open) Retrieving server options
> Progress: (open) Retrieving media info
> Progress: (request) SETUP stream 0
> Progress: (open) Opened Stream
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> Progress: (request) Sending PLAY request
> Progress: (request) Sending PLAY request
> 0:00:00.354254852  8036   07F575C8 FIXME                default
> gstutils.c:3648:gst_pad_create_stream_id_printf_valist:<fakesrc0:src>
> Creating random stream-id, consider implementing a deterministic way of
> creating a stream-id
> Progress: (request) Sent PLAY request
> 0:00:00.515505272  8036   07F57208 WARN                 rtspsrc
> gstrtspsrc.c:4367:gst_rtspsrc_reconnect:<rtspsrc0> warning: Could not
> receive any UDP packets for 5.0000 seconds, maybe your firewall is
> blocking it. Retrying using a TCP connection.
> WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could
> not read from resource.
> Additional debug info:
> gstrtspsrc.c(4367): gst_rtspsrc_reconnect ():
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
> Could not receive any UDP packets for 5.0000 seconds, maybe your
> firewall is blocking it. Retrying using a TCP connection.
> 0:00:00.673178700  8036   07F57208 WARN         rtpjitterbuffer
> rtpjitterbuffer.c:183:rtp_jitter_buffer_set_clock_rate: Clock rate
> changed from 0 to 90000
>
>
> I'm using 1.4.4 and Windows.
>
> Best!
>
>

-- 
Sergio Basurco,
Coherent Synchro


More information about the gstreamer-devel mailing list