rtsp server connection timeout

漢障 吳 sakurazuka2001 at yahoo.com.tw
Wed Oct 23 08:57:43 CEST 2013


Hello 

I forgot to say that I had fellowed this thread ( http://gstreamer-devel.966125.n4.nabble.com/RTSP-Server-for-Windows-td3983864.html) changing my code to be executable in Win32, however the timeout ( connection ) problem still remained.

Now I've installed GStreamer & Dev files from http://gstreamer.freedesktop.org/data/pkg/windows/1.2.0/

and I also download latest pushed gst-rtsp-server from
http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/


I'll try if it will work or not.

Thank you. :)



Sebastian Dröge <sebastian at centricular.com> 於 2013/10/22 (週二) 3:19 PM 寫道﹕
 
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

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131023/ad38385c/attachment-0001.html>


More information about the gstreamer-devel mailing list