rtspsrc async connect returns ERRNO_IS_EINPROGRESS

manojrb18 manojrb18 at gmail.com
Mon Jul 2 06:27:36 PDT 2012


Hi,

I am using gstreamer (v0.10.36), gst-base (v0.10.36) & gst-plugins-good
(v0.10.31)

I have VLC server (on WinXP machine) streaming .mp4 over RTSP and the below
pipeline running on target device, 
gst-launch rtspsrc location=rtsp://192.168.91.92:5000/stream ! rtpmp4gdepay
! fakesink

This pipeline always ends up in,
0:00:29.161349159   810 0x10022ed0 ERROR                rtspsrc
gstrtspsrc.c:3387:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to
server. (System error: Success)

More debug of this tells me that, below section of code generates
'sys_error' with async connect  ERRNO_IS_EINPROGRESS.

  /* we are going to connect ASYNC now */
  ret = connect (fd, ai->ai_addr, ai->ai_addrlen);
  if (ret == 0)
    goto done;

  if (!ERRNO_IS_EINPROGRESS)
  {
    goto sys_error;
  }

Am I missing something to achieve the correct rtspsrc setup ? 
Many thanks in advance.

Manoj





Log below for more reference : 

0:00:28.752255610   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:6765:gst_rtspsrc_uri_set_uri:<rtspsrc0> parsing URI
0:00:28.758048878   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:6772:gst_rtspsrc_uri_set_uri:<rtspsrc0> configuring URI
0:00:28.763761018   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:6788:gst_rtspsrc_uri_set_uri:<rtspsrc0> set uri:
rtsp://192.168.91.92:5000/stream
0:00:28.768780048   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:6790:gst_rtspsrc_uri_set_uri:<rtspsrc0> request uri is:
rtsp://192.168.91.92:5000/stream
Setting pipeline to PAUSED ...
0:00:29.036701723   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:6568:gst_rtspsrc_start:<rtspsrc0> starting
0:00:29.052658254   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 0
Pipeline is live and does not need PREROLL ...
0:00:29.070786259   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6513:gst_rtspsrc_thread:<rtspsrc0> got command 0
0:00:29.075938502   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3429:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
0:00:29.091358174   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3334:gst_rtsp_conninfo_connect:<rtspsrc0> creating connection
(rtsp://192.168.91.92:5000/stream)...
0:00:29.098266226 Setting pipeline to PLAYING ...
  810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3342:gst_rtsp_conninfo_connect:<rtspsrc0> sanitized uri
rtsp://192.168.91.92:5000/stream
0:00:29.114811699   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3360:gst_rtsp_conninfo_connect:<rtspsrc0> connecting
(rtsp://192.168.91.92:5000/stream)...
0:00:29.125664063   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126->gst_rtsp_connection_connect: [874] : Entered
:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 4
0:00:29.142878606   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 1
->gst_rtsp_connection_connect: [908] : do_connect ... Failed
->gst_rtsp_conninfo_connect: [3364] : goto could_not_connect
0:00:29.161349159   810 0x10022ed0 ERROR                rtspsrc
gstrtspsrc.c:3387:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to
server. (System error: Success)
New clock: GstSystemClock
0:00:29.173302284   810 0x10022ed0 WARN                 rtspsrc
gstrtspsrc.c:5694:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: Failed to
connect. (System error: Success)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(5694): gst_rtspsrc_retrieve_sdp ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (System error: Success)
Execution ended after 43136018 ns.
Setting pipeline to PAUSED ...
0:00:29.195498799   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 4
0:00:29.203425481   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 2
0:00:29.190289464   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:5739:gst_rtspsrc_retrieve_sdp:<rtspsrc0> free connection
Setting pipeline to READY ...
0:00:29.220166267   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3404:gst_rtsp_conninfo_close:<rtspsrc0> freeing connection...
0:00:29.225514824   810 0x10022ed0 WARN                 rtspsrc
gstrtspsrc.c:5773:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:29.235638021   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6513:gst_rtspsrc_thread:<rtspsrc0> got command 2
0:00:29.241206932   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3429:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
0:00:29.246285056   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6311:gst_rtspsrc_pause:<rtspsrc0> PAUSE...
0:00:29.251728767   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6070:gst_rtspsrc_ensure_open:<rtspsrc0> the stream was in error
0:00:29.256685697   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6384:gst_rtspsrc_pause:<rtspsrc0> failed to open stream
0:00:29.233064904   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 3
0:00:29.275126202   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6513:gst_rtspsrc_thread:<rtspsrc0> got command 3
0:00:29.280418671   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3429:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
Setting pipeline to NULL ...
0:00:29.290102164   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:5794:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...
0:00:29.295025041   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:5797:gst_rtspsrc_close:<rtspsrc0> not ready, doing cleanup
0:00:29.306309095   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:5860:gst_rtspsrc_close:<rtspsrc0> closing connection...
0:00:29.311749800   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:1197:gst_rtspsrc_cleanup:<rtspsrc0> cleanup
0:00:29.305266427   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:6598:gst_rtspsrc_stop:<rtspsrc0> stopping
0:00:29.324395033   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:4126:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 4
0:00:29.330308494   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:6513:gst_rtspsrc_thread:<rtspsrc0> got command 4
0:00:29.335421675   810 0x10022ed0 DEBUG                rtspsrc
gstrtspsrc.c:3429:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
0:00:29.341983174   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:5794:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...
0:00:29.346903045   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:5797:gst_rtspsrc_close:<rtspsrc0> not ready, doing cleanup
0:00:29.352594151   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:5860:gst_rtspsrc_close:<rtspsrc0> closing connection...
0:00:29.357538061   799 0x10014160 DEBUG                rtspsrc
gstrtspsrc.c:1197:gst_rtspsrc_cleanup:<rtspsrc0> cleanup





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtspsrc-async-connect-returns-ERRNO-IS-EINPROGRESS-tp4655459.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list