[gst-devel] How can I add RTSP media mapping to the gst-rtsp-server in Python?
wl2776
wl2776 at gmail.com
Tue Sep 14 11:02:52 CEST 2010
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.
More information about the gstreamer-devel
mailing list