aboutsummaryrefslogtreecommitdiff
path: root/voctocore/lib
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-08-17 13:40:33 +0200
committerMaZderMind <git@mazdermind.de>2016-08-17 13:46:10 +0200
commit58706980c493676bb60db016e4d195124abb648d (patch)
tree415c75205c2ca0312229f9c7fa65f324064714c4 /voctocore/lib
parentc72a92181b2356ce7e77238d379aedd4255bb58c (diff)
make deinterlacer configurable
Diffstat (limited to 'voctocore/lib')
-rw-r--r--voctocore/lib/avpreviewoutput.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/voctocore/lib/avpreviewoutput.py b/voctocore/lib/avpreviewoutput.py
index b05457a..d5c2c66 100644
--- a/voctocore/lib/avpreviewoutput.py
+++ b/voctocore/lib/avpreviewoutput.py
@@ -17,10 +17,14 @@ class AVPreviewOutput(TCPMultiConnection):
else:
vcaps_out = Config.get('mix', 'videocaps')
+ deinterlace = ""
+ if Config.getboolean('previews', 'deinterlace'):
+ deinterlace = "deinterlace mode=interlaced !"
+
pipeline = """
intervideosrc channel=video_{channel} !
{vcaps_in} !
- deinterlace mode=interlaced !
+ {deinterlace}
videoscale !
videorate !
{vcaps_out} !
@@ -47,7 +51,8 @@ class AVPreviewOutput(TCPMultiConnection):
channel=self.channel,
acaps=Config.get('mix', 'audiocaps'),
vcaps_in=Config.get('mix', 'videocaps'),
- vcaps_out=vcaps_out
+ vcaps_out=vcaps_out,
+ deinterlace=deinterlace
)
self.log.debug('Creating Output-Pipeline:\n%s', pipeline)