[gst-devel] gstreamer-python and playbin

Charles charles at bityard.net
Wed Aug 5 07:35:19 CEST 2009


Christian Fredrik Kalager Schaller wrote:
> Hi,
> playbin (or uridecodebin) will automatically decode the incoming stream 
> unless you specifically tells it not to. uridecodebin and playbin2 got a
> property called 'caps' which you can use to tell it to stop autopluggin
> on certain caps. If you create a list of possible container formats caps
> there, it will not try to demux and decode and you can save it directly
> to disk.
> 
> Here is an example that should work (haven't tested though):
> 
> self.remuxcaps = gst.Caps()
> self.remuxcaps.append_structure(gst.Structure("video/quicktime"))
> self.remuxcaps.append_structure(gst.Structure("video/x-ms-asf"))
> self.uridecoder.set_property("caps", self.remuxcaps)
> 
> Hope this helps,
> Christian

Thanks, Christian. I was hoping to not have to explicitly list the media 
type (or other properties of the stream), but maybe this will get me 
headed in the right direction.

Charles
-- 
http://bityard.net




More information about the gstreamer-devel mailing list