From 3513b543b318024a24ec66a27276ee6205c099e1 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 26 Oct 2023 21:56:31 -0700 Subject: [PATCH] Reduce ref bitrate --- go_vod/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go_vod/manager.go b/go_vod/manager.go index 948b6d54..31e2b706 100644 --- a/go_vod/manager.go +++ b/go_vod/manager.go @@ -79,7 +79,7 @@ func NewManager(c *Config, path string, id string, close chan string) (*Manager, // Get the reference bitrate. This is the same as the current bitrate // if the video is H.264, otherwise use double the current bitrate. - refBitrate := m.probe.BitRate + refBitrate := int(float64(m.probe.BitRate) / 2.0) if m.probe.CodecName != CODEC_H264 { refBitrate *= 2 }