def __init__(self, effects): ges.init() self.mainloop = glib.MainLoop() self.timeline = ges.timeline_new_audio_video() layer = ges.TimelineLayer() self.src = ges.TimelineTestSource() self.src.set_start(long(0)) self.src.set_duration(long(3000000000)) self.src.set_vpattern("smpte75") layer.add_object(self.src) self.timeline.add_layer(layer) self.add_effects(effects) self.pipeline = ges.TimelinePipeline() self.pipeline.add_timeline(self.timeline) bus = self.pipeline.get_bus() bus.set_sync_handler(self.bus_handler)
""" Main PiTiVi package """ import gobject import ges # This call must be made before any "import gst" call! gobject.threads_init() ges.init()