Reduce ref bitrate

monorepo
Varun Patil 2023-10-26 21:56:31 -07:00
parent c743d14e5d
commit 3513b543b3
1 changed files with 1 additions and 1 deletions

View File

@ -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 // Get the reference bitrate. This is the same as the current bitrate
// if the video is H.264, otherwise use double 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 { if m.probe.CodecName != CODEC_H264 {
refBitrate *= 2 refBitrate *= 2
} }