Use half GOP size in h264

This commit is contained in:
Sergey Stepanov 2024-02-11 15:01:27 +03:00
parent 11295a28f6
commit 46067dec8f
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B

View file

@ -91,6 +91,7 @@ func NewEncoder(w, h int, th int, opts *Options) (encoder *H264, err error) {
param.i_width = C.int(w)
param.i_height = C.int(h)
param.i_log_level = C.int(opts.LogLevel)
param.i_keyint_max = 120
param.i_sync_lookahead = 0
param.i_threads = C.int(th)
if th != 1 {