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 [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Yeah, that's it. Thank you.
tzicatl@hormiga-vaca:~$ python Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pygst >>> pygst.require("0.10") >>> import gst ** Message: pygobject_register_sinkfunc is deprecated (GstObject) >>> pipeline = gst.parse_launch("videotestsrc ! jpegenc ! multipartmux ! appsink name=endpoint") >>> endpoint = pipeline.get_by_name('endpoint') >>> endpoint <__main__.GstAppSink object (endpoint) at 0x254d0a0> >>> --- Noe 2011/4/13 Olivier Aubert <[hidden email]>: > 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 >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > -- -- Noe Nieto Estudiante de Psicología Holokinética Diplomados, noticias, libros, artículos, audios y videos gratuitos : percepcionunitaria.org _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |