rtsp server connection timeout

漢障 吳 sakurazuka2001 at yahoo.com.tw
Tue Oct 22 05:16:06 CEST 2013


Hello everyone.

I'm now trying to establish a rtsp server based on GStreamer 0.10.7 ( Ossbuild ) and gst-rtsp-server-RELEASE-0.10.8. My platform is Windows7 and develop tool is VS2010 Express. I had adopt a sort part of code to Winsock and compile without problem.

I wrote a simple console problem, basically exactly the same with http://0rz.tw/GZuvZ but without audio pipeline.

Then as I start to run server. I always got client says timeout. I tried GStreamer 0.10.7, & 1.2 & VLC 2.1.0

From different RTSP Clients, I got fellow messages:

GStreamer 0.10.7:
gst-launch -v rtspsrc location=rtsp://127.0.0.1:554 ! rtph264depay ! queue2 ! h264parse ! ffdec_h264 ! d3dvideosink
ImportError: No module named pygtk
ImportError: No module named pygtk
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Resource not found.
Additional debug info:
..\..\..\..\..\Source\gst-plugins-good\gst\rtsp\gstrtspsrc.c(4637): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Not Found
Freeing pipeline ...

GStreamer 1.2:

gst-launch rtspsrc location=rtsp://10.100.0.84:554 ! rtph264depay ! queue2 ! h264parse ! avdec_h264 ! d3dvideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://10.100.0.84:554
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(4955): gst_rtspsrc_try_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

VLC 2.1.0:
main debug: processing request item: rtsp://10.100.0.84:554/test, node: 播放清單, skip: 0
main debug: resyncing on rtsp://10.100.0.84:554/test
main debug: rtsp://10.100.0.84:554/test is at 4
main debug: starting playback of the new playlist item
main debug: resyncing on rtsp://10.100.0.84:554/test
main debug: rtsp://10.100.0.84:554/test is at 4
main debug: creating new input thread
main debug: Creating an input for 'rtsp://10.100.0.84:554/test'
main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\John Smith\AppData\Local\Temp'
main debug: `rtsp://10.100.0.84:554/test' gives access `rtsp' demux `' path `10.100.0.84:554/test'
main debug: creating demux: access='rtsp' demux='' location='10.100.0.84:554/test' file='\\10.100.0.84:554\test'
main debug: looking for access_demux module matching "rtsp": 12 candidates
live555 debug: version 2012.12.18
qt4 debug: IM: Setting an input
live555 debug: connection timeout
live555 error: Failed to connect with rtsp://10.100.0.84:554/test
main debug: no access_demux modules matched
main debug: creating access 'rtsp' location='10.100.0.84:554/test', path='\\10.100.0.84:554\test'
main debug: looking for access module matching "rtsp": 20 candidates
main debug: net: connecting to 10.100.0.84 port 554
main debug: connection succeeded (socket = 1572)
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
main debug: no access modules matched
main error: open of `rtsp://10.100.0.84:554/test' failed
main debug: finished input
main debug: dead input
main debug: changing item without a request (current 4/5)
main debug: nothing to play
qt4 debug: IM: Deleting the input

It seems like that client is waiting for sever sending media related information but timeout. Did anyone have succeeded running GStreamer on Windows before? Did I missed something? Thanks. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131022/72f4ffc8/attachment.html>


More information about the gstreamer-devel mailing list