Skip to content

Commit

Permalink
fix encoder bmult setting
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaad committed Aug 22, 2023
1 parent 8419412 commit ed0d82c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ func compress(inVideo string) bool {
video.Output.Bitrate.Video = video.Output.Bitrate.Total
}
}

// Apply video encoder bitrate multiplier
video.Output.Bitrate.Video = int(float64(video.Output.Bitrate.Video) * video.Output.Encoder.BMult)

if settings.Debug {
log.Println("Video bitrate:", video.Output.Bitrate.Video/1024)
log.Println("Audio bitrate:", video.Output.Bitrate.Audio/1024)
Expand Down

0 comments on commit ed0d82c

Please sign in to comment.