From 73c26dc57606299cd0cb3ce99ed67a1cfe8cd9f4 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 23 May 2015 13:15:18 +0200 Subject: Add a config option for the Side-by-Side gutter --- voctocore/lib/videomix.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'voctocore/lib/videomix.py') diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py index 73efa04..d996967 100644 --- a/voctocore/lib/videomix.py +++ b/voctocore/lib/videomix.py @@ -101,9 +101,14 @@ class VideoMix(object): self.log.info('Updating Mixer-State for Side-by-side-Equal-Composition') width, height = self.getInputVideoSize() - gutter = int(width / 100) - - self.log.debug('Video-Size parsed as %u/%u, Gutter calculated to %upx', width, height, gutter) + self.log.debug('Video-Size parsed as %ux%u', width, height) + + try: + gutter = Config.getint('side-by-side-equal', 'gutter') + self.log.debug('Gutter configured to %u', gutter) + except: + gutter = int(width / 100) + self.log.debug('Gutter calculated to %u', gutter) targetWidth = int((width - gutter) / 2) targetHeight = int(targetWidth / width * height) -- cgit v1.2.3