Skip to content

Commit

Permalink
Merge branch 'main' into loop
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Sep 15, 2023
2 parents 05b7409 + 1fddac3 commit 10f20c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/pipeline/builder/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,12 @@ func (b *VideoBin) addEncoder() error {
}
bufCapacity = uint(time.Duration(b.conf.GetSegmentConfig().SegmentDuration) * (time.Second / time.Millisecond))
}

if bufCapacity > 10000 {
// Max value allowed by gstreamer
bufCapacity = 10000
}

if err = x264Enc.SetProperty("vbv-buf-capacity", bufCapacity); err != nil {
return err
}
Expand Down

0 comments on commit 10f20c3

Please sign in to comment.