mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-15 13:45:28 +00:00
Set constant bitrate rate-control for VAAPI encoder
This commit is contained in:
parent
e4846d0d53
commit
3c81afa7b2
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue