Python Bindings for GStreamer on Ubuntu
Mathieu Duponchelle
mathieu at centricular.com
Tue Jul 24 13:17:09 UTC 2018
Hello,
Have you installed the "python-gst-1.0" package? It contains the overrides that make,
amongst other things, Gst.Bin.add accept an arbitrary number of arguments.
--
Mathieu Duponchelle ยท https://www.centricular.com
On 07/24/2018 02:19 PM, vk_gst wrote:
> Hello,
>
> I am trying to learn to use python with Gstreamer. I am following the
> tutorials mentioned here
> <https://github.com/gkralik/python-gst-tutorial/blob/master/basic-tutorial-2-ex-vertigo.py>
> . I installed the python-gst using 'sudo apt-get install python-gst-1.0'.
>
> However, when I run the script, I get the following errors:
>
> Traceback (most recent call last):
> File "basic2.py", line 28, in <module>
> pipeline.add(source, filter_vertigo, videoconvert, sink)
> TypeError: Gst.Bin.add() takes exactly 2 arguments (5 given)
>
> Changing the first line in script to '#!/usr/bin/env python2.7' makes it
> work.
> I am trying to understand why the gstreamer does not work with python3.
>
> Which packages should I install to get it working?
>
> I am running a Ubuntu 18.04 with Gstreamer1.0.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list