2 import gobject; gobject.threads_init()
3 import pygst; pygst.require("0.10")
6 p = gst.parse_launch ("""
8 videoconvert ! queue ! video/x-raw,width=320,height=240,framerate=30/1 ! burn qos=true name=vf ! videoconvert ! timeoverlay ! xvimagesink
11 m = p.get_by_name ("vf")
12 m.set_property ("adjustment", 128)
14 control = gst.Controller(m, "adjustment")
15 control.set_interpolation_mode("adjustment", gst.INTERPOLATE_LINEAR)
16 control.set("adjustment", 0 * gst.SECOND, 128)
17 control.set("adjustment", 5 * gst.SECOND, 256)
18 control.set("adjustment", 25 * gst.SECOND, 0)
20 p.set_state (gst.STATE_PLAYING)
22 gobject.MainLoop().run()