Skip to content

Commit

Permalink
Use half GOP size in h264
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Feb 11, 2024
1 parent 11295a2 commit 46067de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/encoder/h264/x264.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 46067de

Please sign in to comment.