@@ -0,0 +1,869 @@
+#!/usr/bin/env python%0A%0Aimport pygst%0Apygst.require(%220.10%22)%0Aimport gst%0Aimport gtk%0A%0A%0Aclass Pipeline(object):%0A    def __init__(self):%0A        self.pipeline = gst.Pipeline(%22pipe%22)%0A        self.webcam = gst.element_factory_make(%22v4l2src%22, %22webcam%22)%0A        self.webcam.set_property(%22device%22, %22/dev/video0%22)%0A        self.pipeline.add(self.webcam)%0A        self.caps_filter = gst.element_factory_make(%22capsfilter%22, %22caps_filter%22)%0A        caps = gst.Caps(%22video/x-raw-yuv,width=640,height=480,framerate=30/1%22)%0A        self.caps_filter.set_property(%22caps%22, caps)%0A        self.pipeline.add(self.caps_filter)%0A%0A        self.sink = gst.element_factory_make(%22xvimagesink%22, %22sink%22)%0A        self.pipeline.add(self.sink)%0A%0A        self.webcam.link(self.caps_filter)%0A        self.caps_filter.link(self.sink)%0A        self.pipeline.set_state(gst.STATE_PLAYING)%0A%0Astart = Pipeline()%0Agtk.main()%0A

Add a video pipeline example.