aboutsummaryrefslogtreecommitdiff
path: root/voctocore
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-08-17 13:57:58 +0200
committerPeter Körner <pkoerner@seibert-media.net>2016-09-27 10:01:07 +0200
commit9834a6809d49ad63cf1af88b44efb02db6bca7ac (patch)
treefafebb7418708995e848733bb049a527ecb6834a /voctocore
parentbb795bad0b439f6236f74f79c04e88888867b1dd (diff)
add configurable decoders into the gui
Diffstat (limited to 'voctocore')
-rw-r--r--voctocore/default-config.ini2
-rw-r--r--voctocore/lib/avpreviewoutput.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/voctocore/default-config.ini b/voctocore/default-config.ini
index 8f816d3..4c85abb 100644
--- a/voctocore/default-config.ini
+++ b/voctocore/default-config.ini
@@ -62,7 +62,7 @@ mix_out=10000
enabled=false
deinterlace=false
-; use vaapi to encode the previews, can be h264, mpeg2 or jpeg
+; use vaapi to encode the previews, can be h264, mpeg2 or jpeg (BUT ONLY h264 IS TESTED)
; not all encoders are available on all CPUs
;vaapi=h264
diff --git a/voctocore/lib/avpreviewoutput.py b/voctocore/lib/avpreviewoutput.py
index b43b5c7..91e2031 100644
--- a/voctocore/lib/avpreviewoutput.py
+++ b/voctocore/lib/avpreviewoutput.py
@@ -24,6 +24,7 @@ class AVPreviewOutput(TCPMultiConnection):
deinterlace = "deinterlace mode=interlaced !"
venc = 'jpegenc quality=90'
+ if Config.has_option('previews', 'vaapi'):
try:
encoder = Config.get('previews', 'vaapi')
encoders = {