diff options
author | Daniel Drake <dsd@laptop.org> | 2010-05-19 17:48:50 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-05-19 17:48:50 (GMT) |
commit | 28bfe740b64bd20005b4eee84014536b4fd5ab06 (patch) | |
tree | 67a3b86a0da2a939d37042aebcac3c10c0e70595 | |
parent | a9432aeadf5c0bb33947990aee4d89a761008021 (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.py | 7 | ||||
-rw-r--r-- | glivex.py | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -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) @@ -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) |