I have been using gstreamer since some few weeks. Still I am not much aware of how things work internally. So I was following some tutorials online to learn how I can use it in efficient way. Here is the Github link to the tutorials https://github.com/gkralik/python-gst-tutorial
. But whenever I run the script using terminal I got something like this
Traceback (most recent call last):
File "gst2.py", line 23, in <module>
pipeline.add(source, filter_vertigo, videoconvert, sink)
TypeError: Gst.Bin.add() takes exactly 2 arguments (5 given)
I do not know what is wrong here. gstreamer is running video files from terminal directly using command lines. But when I write some codes then it gives error similar to above or does display at all. In the tutorial link above the first tutorial should play the default trailer of movie but it does not show any output to me.
Please suggest some fix. What version should I use to get it right or any other help will be appreciated. I am on Ubuntu 16.04 LTS . and using python 3.5 for tutorials. The gi version is 3.20.0.