aboutsummaryrefslogtreecommitdiff
path: root/voctocore
diff options
context:
space:
mode:
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 = {