From bb795bad0b439f6236f74f79c04e88888867b1dd Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 17 Aug 2016 13:40:41 +0200 Subject: tune preview encoders --- voctocore/lib/avpreviewoutput.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'voctocore/lib') 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: -- cgit v1.2.3