self.layer = self.timeline.append_layer()
- def add_clip(self, clip_uri, start_time, duration):
+ def add_clip(self, clip_path, start_time, duration):
+ clip_uri = Gst.filename_to_uri(clip_path)
asset = GES.UriClipAsset.request_sync(clip_uri)
self.layer.add_asset(asset, start_time * Gst.SECOND, 0,
duration * Gst.SECOND, GES.TrackType.UNKNOWN)
ges_pipeline.set_timeline(self.timeline)
Player(ges_pipeline).play()
- def save(self, uri):
+ def save(self, path):
+ uri = Gst.filename_to_uri(path)
self.project.save(self.timeline, uri, None, False)