From 10a4e469baa9d388bcc01b3e494463a2e53c93f9 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 13 Nov 2022 02:41:12 -0800 Subject: [PATCH] Revert to maxrate for bitrate https://github.com/pulsejet/memories/issues/190 --- stream.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", }...) }