diff options
author | MaZderMind <git@mazdermind.de> | 2015-08-29 18:06:38 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-08-29 18:06:38 +0200 |
commit | ef755f38c8e4bb7b7b92018a901c7c18e7b47b18 (patch) | |
tree | 845ff50001d3eea4205f89dfaa697e55b6580fbe /voctocore/lib/videomix.py | |
parent | d1a70bf2bb1fb08d6a4859cf98595d914a14b0c0 (diff) |
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
Diffstat (limited to 'voctocore/lib/videomix.py')
-rw-r--r-- | voctocore/lib/videomix.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |