def test_timeline(self): try: temp = ramdisk.path except: temp = "/tmp/%s" % str(os.getpid()) sp = videos["sp"] rc = videos["rc"] sp.freeze_in(3) text_time = sp.duration sp.freeze_out(3) t = Timeline(sp.duration + rc.duration, tmp_path=temp) t.asset_video(sp, start=0) t.asset_video(rc, start=sp.duration) text = Text("Hi Guys! Are You Feeling lucky? Hope you do, enjoy!", size=65, x=100, y=15, fit=True) # t.asset_fx(Blur(), start=0, end=3.1) # t.asset_fx(Blur(), start=text_time-0.1, end=sp.duration) t.asset_fx(text, start=0, end=3) text = Text("So, How was it? We hope you liked it, Thanks for Watching", size=65, x=100, y=15, fit=True) t.asset_fx(text, start=text_time, end=sp.duration) path = t.compile() print path # ramdisk.disk.umount() self.assertTrue(os.path.exists(path))