[Sugar-devel] how to use custom gstreamer elements bundled in activities?

Aleksey Lim alsroot at member.fsf.org
Sat Dec 11 02:40:25 EST 2010


On Sat, Dec 11, 2010 at 01:30:22AM -0500, Erik Blankinship wrote:
> Some more research suggests I need to specify a GST_PLUGIN_PATH for my
> activity.
> http://stackoverflow.com/questions/2120444/gstreamer-plugin-search-path
> 
> I am having a hard time figuring out how to do this in pygst.  The bindings
> are great, but sometimes obscure.  Any pygst experts out there?

I guess just setting envar before including any gst related imports
should work:

    import os
    from sugar.activity.activity import get_bundle_path

    os.environ['GST_PLUGIN_PATH'] = get_bundle_path()

> 
> Thanks,
> Erik
> 
> Additional resources:
> http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/GstRegistry.html
> http://www.gstreamer.net/data/doc/gstreamer/head/pwg/html/chapter-building-testapp.html
> 
> On Sat, Dec 11, 2010 at 1:05 AM, Erik Blankinship <erikb at mediamods.com>wrote:
> 
> > I have created a gstreamer plugin I want to bundle with an activity.
> >
> > I looked at one way mp3 support is handled, and it requires a permanent
> > addition to /usr/lib/gstreamer
> > http://wiki.laptop.org/go/Fluendo_mp3_decoder
> >
> > I would like to avoid that extra step.
> >
> > Any suggestions how to reference a bundled gstreamer plugin so it can be
> > used in sugar activity gstreamer pipelines?  Thanks!
> >

> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
Aleksey


More information about the Sugar-devel mailing list