I am using the playbin
using gst-python
:
player = Gst.ElementFactory.make("playbin", None)
player.set_property("uri", "file:///tmp/big_buck_bunny_720p_30mb.mp4")
Now I add some video-filters:
videocrop = Gst.ElementFactory.make('videocrop', None)
videocrop.set_property('top', 300)
This nicely crops the video. I can also do this with videoflip
. However, when I try to apply multiple filters, using a Bin
, my pipeline does not work. Code I am using:
video_filters = Gst.Bin("video_filters")
videocrop = Gst.ElementFactory.make('videocrop', None)
videocrop.set_property('top', 300)
video_filters.add(videocrop)
videoflip = Gst.ElementFactory.make('videoflip', None)
videoflip.set_property('method', 'clockwise')
video_filters.add(videoflip)
videocrop.link(videoflip)
player.set_property('video-filter', video_filters)
The pipeline won't play. What am I doing wrong?