aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-08-17 13:40:41 +0200
committerPeter Körner <pkoerner@seibert-media.net>2016-09-27 10:00:05 +0200
commitbb795bad0b439f6236f74f79c04e88888867b1dd (patch)
tree7a4e101cf15e02bb226eb47bfb12b0919d228824
parent49188f70b86387f64b40aa8c86ec4633ebf534ad (diff)
tune preview encoders
-rw-r--r--voctocore/lib/avpreviewoutput.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/voctocore/lib/avpreviewoutput.py b/voctocore/lib/avpreviewoutput.py
index b2e8b4a..b43b5c7 100644
--- a/voctocore/lib/avpreviewoutput.py
+++ b/voctocore/lib/avpreviewoutput.py
@@ -27,9 +27,9 @@ class AVPreviewOutput(TCPMultiConnection):
try:
encoder = Config.get('previews', 'vaapi')
encoders = {
- 'h264': 'vaapih264enc',
- 'jpeg': 'vaapijpegenc',
- 'mpeg2': 'vaapimpeg2enc',
+ 'h264': 'vaapih264enc rate-control=cqp init-qp=23 cabac=false max-bframes=0 keyframe-period=60',
+ 'jpeg': 'vaapijpegenc quality=90 keyframe-period=0',
+ 'mpeg2': 'vaapimpeg2enc keyframe-period=60',
}
venc = encoders[encoder]
except Exception as e: