Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-05-19 17:48:50 (GMT)
committer Daniel Drake <dsd@laptop.org>2010-05-19 17:48:50 (GMT)
commit28bfe740b64bd20005b4eee84014536b4fd5ab06 (patch)
tree67a3b86a0da2a939d37042aebcac3c10c0e70595
parenta9432aeadf5c0bb33947990aee4d89a761008021 (diff)
Don't sync video preview with the clock
This should reduce resource usage a little (it'll display frames when is most convenient rather than worrying about the clock) and might reduce weirdness associated with trying to synchronize the video preview with the audio. Suggested and tested by Jon Nettleton
-rw-r--r--glive.py7
-rw-r--r--glivex.py4
2 files changed, 11 insertions, 0 deletions
diff --git a/glive.py b/glive.py
index b864cba..13ad361 100644
--- a/glive.py
+++ b/glive.py
@@ -223,11 +223,18 @@ class Glive:
xvsink.set_state(gst.STATE_NULL)
if xv_available:
+ # http://thread.gmane.org/gmane.comp.video.gstreamer.devel/29644
+ xvsink.set_property("sync", False)
+
self.pipeline.add(xvsink)
queue.link(xvsink)
else:
cspace = gst.element_factory_make("ffmpegcolorspace")
xsink = gst.element_factory_make("ximagesink")
+
+ # http://thread.gmane.org/gmane.comp.video.gstreamer.devel/29644
+ xsink.set_property("sync", False)
+
self.pipeline.add(cspace, xsink)
gst.element_link_many(queue, cspace, xsink)
diff --git a/glivex.py b/glivex.py
index f296bf6..6f2af24 100644
--- a/glivex.py
+++ b/glivex.py
@@ -90,6 +90,10 @@ class GliveX:
scalecaps = gst.Caps('video/x-raw-yuv,width='+str(ui.UI.dim_PIPW)+',height='+str(ui.UI.dim_PIPH))
colorspace = gst.element_factory_make("ffmpegcolorspace", "colorspace")
xsink = gst.element_factory_make("ximagesink", "xsink")
+
+ # http://thread.gmane.org/gmane.comp.video.gstreamer.devel/29644
+ xsink.set_property("sync", False)
+
self.pipeline.add(src, rate, queue, scale, colorspace, xsink)
src.link(rate, srccaps)
rate.link(queue, ratecaps)