mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-21 15:49:38 +08:00
codec/vaapi: calculate max bit-rate from BaseParam
This commit is contained in:

committed by
Lukas Herman

parent
a3c9949c90
commit
7bb7c9e927
@@ -67,7 +67,7 @@ func main() {
|
||||
// This example is using libva's hardware accelerated codec.
|
||||
// Set encoder parameters to prohibit bitrate overshoot as possible.
|
||||
cp.RateControlMode = vaapi.RateControlVBR
|
||||
cp.RateControl.BitsPerSecond = 400000
|
||||
cp.BitRate = 400000
|
||||
cp.RateControl.TargetPercentage = 95
|
||||
c.VideoEncoderBuilders = []codec.VideoEncoderBuilder{&cp}
|
||||
},
|
||||
|
Reference in New Issue
Block a user