Help with python bindings

Olivier Aubert olivier.aubert at liris.cnrs.fr
Wed Apr 13 01:26:52 PDT 2011


Spurious quotes in your name. With your pipeline definition, you can do
endpoint = pipeline.get_by_name("'endpoint'")
but you should rather remove the quotes around the endpoint name.

Olivier

On Tue, 2011-04-12 at 22:55 -0500, Noe Nieto
[http://percepcionunitaria.org]] wrote:
> I'm being lazy so I want to use gst.parse_launch() for my pipeline this way:
> 
> >>> import pygst
> >>> pygst.require("0.10")
> >>> import gst
> >>> pipeline = gst.parse_launch("videotestsrc ! jpegenc ! multipartmux ! appsink name='endpoint'")
> >>> type(pipeline)
> <type 'gst.Pipeline'>
> 
> I want to get a hold on the "endpoint" element. The problem is that
> the GstBin.get_by_name() returns None.
> 
> >>> endpoint = pipeline.get_by_name('endpoint')
> >>> endpoint
> >>> type (endpoint)
> <type 'NoneType'>
> 
> Why?
> 
> 
> --
> --
> Noe Nieto
> Estudiante de Psicología Holokinética
> 
> Diplomados, noticias, libros, artículos,
> 
> audios y videos gratuitos :   percepcionunitaria.org
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list