aboutsummaryrefslogtreecommitdiff
path: root/voctocore/lib
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-10-01 18:24:54 +0200
committerMaZderMind <git@mazdermind.de>2016-10-01 18:25:34 +0200
commit9ade42e13e8e59405cb9c1a0686bb6b0b0dfe6a0 (patch)
tree9699da4a65f0324afdaa7e31008c690897c2c99d /voctocore/lib
parent70a456519018db33c41f543e1130a7cdcce40eaa (diff)
fix non-vaapi-pipeline
Diffstat (limited to 'voctocore/lib')
-rw-r--r--voctocore/lib/avpreviewoutput.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/voctocore/lib/avpreviewoutput.py b/voctocore/lib/avpreviewoutput.py
index 05f1ceb..2be4a52 100644
--- a/voctocore/lib/avpreviewoutput.py
+++ b/voctocore/lib/avpreviewoutput.py
@@ -124,12 +124,22 @@ class AVPreviewOutput(TCPMultiConnection):
def construct_native_video_pipeline(self, target_caps):
do_deinterlace = Config.getboolean('previews', 'deinterlace')
- return '''
+ if do_deinterlace:
+ pipeline = '''
+ deinterlace mode={imode} !
+ videorate !
+ '''
+ else:
+ pipeline = ''
+
+
+ pipeline += '''
videoscale !
{target_caps} !
- deinterlace mode={imode} !
jpegenc quality=90
- '''.format(
+ '''
+
+ return pipeline.format(
imode='interlaced' if do_deinterlace else 'disabled',
target_caps=target_caps,
)