[gst-devel] How can I add RTSP media mapping to the gst-rtsp-server in Python?

André Dieb andre.dieb at gmail.com
Wed Jan 12 18:07:16 CET 2011


Hello,

The patch was commited (thanks devs!) today, so, if you're still interested,
you'll find the methods and sample code on test.py, included on the patch at
https://bugzilla.gnome.org/show_bug.cgi?id=622296.

On Tue, Sep 14, 2010 at 8:19 AM, André Dieb <andre.dieb at gmail.com> wrote:

> Hello,
>
> 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.
>
> On Tue, Sep 14, 2010 at 6:02 AM, wl2776 <wl2776 at gmail.com> wrote:
>
>>
>> I've created a server instance, but cannot add media-mapping to it.
>> Are there any examples of using gst-rtsp-server in Python?
>>
>> import gobject
>> gobject.threads_init()
>>
>> import sys
>> import pygst
>> pygst.require('0.10')
>>
>> import os
>>
>> from gst import rtspserver
>>
>> class myrtspserver:
>>    def __init__(self):
>>        self.server=rtspserver.Server()
>>        self.server.props.media_mapping.set_property('/test',
>>                                    '( videotestsrc is-live=1 ! x264enc !
>> rtph264pay name=pay0 pt=96 )')
>>
>>
>> The last line of the code above gives the error
>> TypeError: object of type `GstRTSPMediaMapping' does not have property
>> `/test'
>>
>> If I replace set_property with set_data, it doesn't give errors, but logs
>> show that the server cannot find the media mapping when processing
>> connection.
>> Tried also set_data
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/How-can-I-add-RTSP-media-mapping-to-the-gst-rtsp-server-in-Python-tp2538670p2538670.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
>
> --
> André Dieb Martins
>



-- 
André Dieb Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110112/84b74c3e/attachment.htm>


More information about the gstreamer-devel mailing list