rtsp server connection timeout

Sebastian Dröge sebastian at centricular.com
Tue Oct 22 09:18:02 CEST 2013


On Di, 2013-10-22 at 11:16 +0800, 漢障 吳 wrote:
> 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. 

Yes, but 0.10.7 is a very very old version of GStreamer. The RTSP server
is working fine with 1.2.0 on Windows, you can find binaries of
GStreamer here: http://gstreamer.freedesktop.org/data/pkg/windows/1.2.0/

You will have to build gst-rtsp-server yourself from GIT as there was no
release yet unfortunately.

gst-rtsp-server in 0.10.X did not work properly to my knowledge due to
differences with networking on Windows.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131022/96c9ef35/attachment-0001.pgp>


More information about the gstreamer-devel mailing list