Skip to content

Commit 46067de

Browse files
committed
Use half GOP size in h264
1 parent 11295a2 commit 46067de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/encoder/h264/x264.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func NewEncoder(w, h int, th int, opts *Options) (encoder *H264, err error) {
9191
param.i_width = C.int(w)
9292
param.i_height = C.int(h)
9393
param.i_log_level = C.int(opts.LogLevel)
94+
param.i_keyint_max = 120
9495
param.i_sync_lookahead = 0
9596
param.i_threads = C.int(th)
9697
if th != 1 {

0 commit comments

Comments
 (0)