From a0cd12d96c5a202398de7642f3b4c89e92485334 Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Thu, 11 Apr 2024 23:03:18 +0200 Subject: [PATCH] lower preview latency when using h264 --- vocto/video_codecs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vocto/video_codecs.py b/vocto/video_codecs.py index c2585230..33998f94 100644 --- a/vocto/video_codecs.py +++ b/vocto/video_codecs.py @@ -19,7 +19,7 @@ } else: vaapi_encoders = { - 'h264': 'vaapih264enc', + 'h264': 'vaapih264enc keyframe-period=1', 'jpeg': 'vaapijpegenc', 'mpeg2': 'vaapimpeg2enc', } @@ -43,6 +43,7 @@ else: vaapi_decoders = { 'h264': 'vaapih264dec', + 'jpeg': 'vaapijpegdec', 'mpeg2': 'vaapimpeg2dec', }