diff --git a/stream.go b/stream.go index 5144a455..21d86185 100644 --- a/stream.go +++ b/stream.go @@ -313,7 +313,8 @@ func (s *Stream) transcode(startId int) { if s.quality != "max" { args = append(args, []string{ "-vf", scale, - "-b:v", fmt.Sprintf("%dk", s.bitrate/1000), + "-maxrate", fmt.Sprintf("%dk", s.bitrate/1000), + "-bufsize", fmt.Sprintf("%dK", s.bitrate/1000), "-profile:v", "high", }...) }