From ef755f38c8e4bb7b7b92018a901c7c18e7b47b18 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 29 Aug 2015 18:06:38 +0200 Subject: enforce pixel-aspect-ratio=1/1 inbetween videoscaler and compositor to fix compatibility with current gstreamer RC 1.5.90 see https://bugzilla.gnome.org/show_bug.cgi?id=752913 and https://bugzilla.gnome.org/show_bug.cgi?id=754291 --- voctocore/lib/videomix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'voctocore/lib') diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py index d50b5a1..9fcea9f 100644 --- a/voctocore/lib/videomix.py +++ b/voctocore/lib/videomix.py @@ -161,7 +161,7 @@ class VideoMix(object): xa = 0 xb = width - targetWidth - scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u' % (targetWidth, targetHeight)) + scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u,pixel-aspect-ratio=1/1' % (targetWidth, targetHeight)) for idx, name in enumerate(self.names): pad = self.padState[idx] @@ -274,8 +274,8 @@ class VideoMix(object): ] self.log.debug('PIP-Position calculated to %u/%u', pippos[0], pippos[1]) - scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u' % tuple(pipsize)) noScaleCaps = Gst.Caps.from_string('video/x-raw') + scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u,pixel-aspect-ratio=1/1' % tuple(pipsize)) for idx, name in enumerate(self.names): pad = self.padState[idx] -- cgit v1.2.3