Set constant bitrate rate-control for VAAPI encoder

This commit is contained in:
Nils Kattenbeck 2022-04-28 16:47:00 +02:00 committed by Mathieu Duponchelle
parent e4846d0d53
commit 3c81afa7b2

View file

@ -339,6 +339,7 @@ fn configure_encoder(enc: &gst::Element) {
"vaapih264enc" | "vaapivp8enc" => {
enc.set_property("bitrate", 2048u32);
enc.set_property("keyframe-period", 2560u32);
enc.set_property_from_str("rate-control", "cbr");
}
_ => (),
}