Skip to content

Commit

Permalink
lower preview latency when using h264
Browse files Browse the repository at this point in the history
  • Loading branch information
sophieschi committed Apr 11, 2024
1 parent 423884d commit a0cd12d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vocto/video_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
else:
vaapi_encoders = {
'h264': 'vaapih264enc',
'h264': 'vaapih264enc keyframe-period=1',
'jpeg': 'vaapijpegenc',
'mpeg2': 'vaapimpeg2enc',
}
Expand All @@ -43,6 +43,7 @@
else:
vaapi_decoders = {
'h264': 'vaapih264dec',
'jpeg': 'vaapijpegdec',
'mpeg2': 'vaapimpeg2dec',
}

Expand Down

0 comments on commit a0cd12d

Please sign in to comment.