Hello,<div><br></div><div>Currently gst-rtsp-server (master) can't add media mappings. I'm currently in the process of cleaning up my python-gst-rtsp-server patches, which include MediaMapping and MediaFactory bindings. It's likely to be submitted to bugzilla this week (at least an initial version). If you're interested, I can send you the dirty patches :) passing a launch string to the factory already works.</div>
<div><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 6:02 AM, wl2776 <span dir="ltr"><<a href="mailto:wl2776@gmail.com">wl2776@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I've created a server instance, but cannot add media-mapping to it.<br>
Are there any examples of using gst-rtsp-server in Python?<br>
<br>
import gobject<br>
gobject.threads_init()<br>
<br>
import sys<br>
import pygst<br>
pygst.require('0.10')<br>
<br>
import os<br>
<br>
from gst import rtspserver<br>
<br>
class myrtspserver:<br>
def __init__(self):<br>
self.server=rtspserver.Server()<br>
self.server.props.media_mapping.set_property('/test',<br>
'( videotestsrc is-live=1 ! x264enc !<br>
rtph264pay name=pay0 pt=96 )')<br>
<br>
<br>
The last line of the code above gives the error<br>
TypeError: object of type `GstRTSPMediaMapping' does not have property<br>
`/test'<br>
<br>
If I replace set_property with set_data, it doesn't give errors, but logs<br>
show that the server cannot find the media mapping when processing<br>
connection.<br>
Tried also set_data<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-can-I-add-RTSP-media-mapping-to-the-gst-rtsp-server-in-Python-tp2538670p2538670.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-can-I-add-RTSP-media-mapping-to-the-gst-rtsp-server-in-Python-tp2538670p2538670.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing.<br>
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>André Dieb Martins<br>
</div>