<div>The core won't handle python elements by itself. The trick is that there is a python plugin that works as a python element loader that will do the job.<br/>
<br/>
It didn't work out of the box for me, here's what I did:<br/>
<br/>
1)  Check if it isn't working already<br/>
<br/>
~# gst-inspect python<br/>
No such element or plugin 'python'<br/>
<br/>
2) Inspect the library explicitely to see what the problem may be. I bet you already have this lib installed,  if not,  I'm pretty sure it comes in python-gst<br/>
<br/>
~# gst-inspect /usr/lib/gstreamer-0.10/<a href="http://libgstpython.so">libgstpython.so</a> <br/>
ImportError: No module named pygtk<br/>
<br/>
3) Extend python path with the missing pygtk module location.  This may vary in your system.<br/>
<br/>
~# export PYTHONPATH=/usr/lib/python2.7/dist-packages/<br/>
~# gst-inspect /usr/lib/gstreamer-0.10/<a href="http://libgstpython.so">libgstpython.so</a> <br/>
Plugin Details:<br/>
  Name:            python<br/>
  Description:        loader for plugins written in python<br/>
  Filename:        /usr/lib/gstreamer-0.10/<a href="http://libgstpython.so">libgstpython.so</a><br/>
  Version:        <a href="tel:01022">0.10.22</a><br/>
  License:        LGPL<br/>
  Source module:    gst-python<br/>
  Source release date:    <a href="tel:20111029">2011-10-29</a><br/>
  Binary package:    GStreamer Python Bindings<br/>
  Origin URL:        <a href="http://gstreamer.freedesktop.org">http://gstreamer.freedesktop.org</a><br/>
<br/>
<br/>
  0 features:<br/>
<br/>
4) The plugin will likely continue to appear as unexistent because it has been blacklisted on the registry. Force registry regeneration.<br/>
<br/>
~# gst-inspect python<br/>
No such element or plugin 'python'<br/>
<br/>
~# rm ~/.gstreamer-0.10/*<br/>
~# gst-inspect python<br/>
<br/>
Plugin Details:<br/>
  Name:            python<br/>
  Description:        loader for plugins written in python<br/>
  Filename:        /usr/lib/gstreamer-0.10/<a href="http://libgstpython.so">libgstpython.so</a><br/>
  Version:        <a href="tel:01022">0.10.22</a><br/>
  License:        LGPL<br/>
  Source module:    gst-python<br/>
  Source release date:    <a href="tel:20111029">2011-10-29</a><br/>
  Binary package:    GStreamer Python Bindings<br/>
  Origin URL:        <a href="http://gstreamer.freedesktop.org">http://gstreamer.freedesktop.org</a><br/>
<br/>
<br/>
  0 features:<br/>
<br/>
5) Now you may develop your element in python.  There are a few examples online.  Store them under /urs/lib/gstreamer-0.10/python/  and they should appear on the inspect. I don't know if this is supported yet on the 1.0 version.  <br/>
<br/>
Michael<br/><br/>-----Original Message-----<br/>From: Josh Doe <josh@joshdoe.com><br/>To: Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br/>Sent: Wed, 05 Feb 2014 11:03<br/>Subject: Re: Embedding scripting language in a filter element<br/><br/></div>On Wed, Feb 5, 2014 at 9:53 AM, Michael Grüner <br/>
<<a href="mailto:michael.gruner@ridgerun.com">michael.gruner@ridgerun.com</a>> wrote: <br/>
> Yes, plugins written in python behave like any other. You can inspect them, <br/>
> use them with gst-launch or within your app. <br/>
<br/>
It's very hard to come up with information about using Python with <br/>
GStreamer 1.0. This has some good info: <br/>
<a href="https://wiki.ubuntu.com/Novacut/GStreamer1.0">https://wiki.ubuntu.com/Novacut/GStreamer1.0</a> <br/>
<br/>
I could only come up with a single example of an element by searching <br/>
for "Gst.Element.register": <br/>
<a href="http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/plugin-1.0">http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/plugin-1.0</a> <br/>
<br/>
This asks exactly my question, but has no answer: <br/>
<a href="http://stackoverflow.com/q/17969041/403491">http://stackoverflow.com/q/17969041/403491</a> <br/>
<br/>
So as I understand it I install PyGObject <br/>
(<a href="http://sourceforge.net/projects/pygobjectwin32">http://sourceforge.net/projects/pygobjectwin32</a>/), create my plugin as <br/>
in the example above, but then what? Where do I put the py/pyc/pyo <br/>
file? I can't find anything in GStreamer core about loading Python <br/>
plugins, so there must be another plugin that then searches for and <br/>
registers them. <br/>
<br/>
Thanks for any help you can provide. <br/>
_______________________________________________ <br/>
gstreamer-devel mailing list <br/>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a> <br/>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a> <br/>