diff options
author | MaZderMind <github@mazdermind.de> | 2015-05-23 13:15:18 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2015-05-23 13:15:18 +0200 |
commit | 73c26dc57606299cd0cb3ce99ed67a1cfe8cd9f4 (patch) | |
tree | f50ba9ba54f22cc10ae77896d214794594210d03 /voctocore/lib/videomix.py | |
parent | e1fae24a3b145d42eaa40d62f7aed8f00d6bdf51 (diff) |
Add a config option for the Side-by-Side gutter
Diffstat (limited to 'voctocore/lib/videomix.py')
-rw-r--r-- | voctocore/lib/videomix.py | 11 |
1 files changed, 8 insertions, 3 deletions
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) |