gst-rtsp-server blocks while connect to rtsp

Pavel Aborilov aborilov at gmail.com
Thu Feb 26 05:19:43 PST 2015


Hello!
I have two cameras, one of them not work very well sometimes, but when
gst-rtst-server try to connect to bad camera, it can't connect to good
camera too. Only when gst-rtsp-server drop connection by timeout to bad
camera, it connects to good one. It looks like gst-rtsp-server blocks
somewhere.

Filtered log in attache.

>From log clearly see that after client to bad camera attached to context
and enter mainloop, client to good camera connected, but stack on attaching
it to context. And only  after bad client exit mainloop, client to good
camera start to work.

Simple test:

from gi.repository import Gst, GObject, GstRtspServer
Gst.init(None)
rtsp_server = GstRtspServer.RTSPServer()
rtsp_server.attach(None)
factory = GstRtspServer.RTSPMediaFactoryURI()
factory.set_uri('rtsp://good_camera_url')
rtsp_server.get_mount_points().add_factory('/good', factory)
factory = GstRtspServer.RTSPMediaFactoryURI()
factory.set_uri('rtsp://bad_camera_url')
rtsp_server.get_mount_points().add_factory('/bad', factory)
GObject.MainLoop().run()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150226/47c0a185/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gst.log
Type: text/x-log
Size: 9547 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150226/47c0a185/attachment.bin>


More information about the gstreamer-devel mailing list