I have an application written with gst-python for GStreamer 0.10 that I am trying to port to GStreamer 1.0.
In my application, I have some custom elements written in Python (subclasses of gst.BaseSrc
and gst.BaseTransform
). Each python-element has its own file and is placed in /usr/lib/gstreamer-0.10/python
so that gst-launch
and gst-inspect
can pick them up (which they do).
This is very handy, since it makes it possible for me to experiment with different pipelines directly on the command line.
Now that I am trying to port my application (according to this guide https://wiki.ubuntu.com/Novacut/GStreamer1.0) it looks like even if it is still possible to write python-elements with PyGI, it seems like the possibility to store them in separate files and have them integrated in GStreamer is gone.
All examples I have found talks about placing the elements in the program you are writing and then registering them with a call Gst.Element.register
, but if I would do so, it would only be possible to reach my custom elements directly from this program and I want them to work standalone (with gst-launch) without having to write my filter chains in a program.
So does anyone know if this is still possible with GStreamer 1.0?
In order to help other people struggling with this, I am now answering this myself.
After some deep research I have now found out that it has not been possible to have any standalone python elements before gst-python 1.4.0 was released on 2014-10-20.
For the release notes take a look here:
http://gstreamer.freedesktop.org/releases/gst-python/1.4.0.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With