mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-29 13:30:34 +00:00
vp9enc takes target-bitrate as a i32 and not u32
This commit is contained in:
parent
eca3fa9308
commit
c02a0d8757
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ fn configure_encoder(enc: &gst::Element, start_bitrate: u32) {
|
||||||
"vp8enc" | "vp9enc" => {
|
"vp8enc" | "vp9enc" => {
|
||||||
enc.set_property("deadline", 1i64);
|
enc.set_property("deadline", 1i64);
|
||||||
enc.set_property("threads", 12i32);
|
enc.set_property("threads", 12i32);
|
||||||
enc.set_property("target-bitrate", start_bitrate);
|
enc.set_property("target-bitrate", start_bitrate as i32);
|
||||||
enc.set_property("cpu-used", -16i32);
|
enc.set_property("cpu-used", -16i32);
|
||||||
enc.set_property("keyframe-max-dist", 2000i32);
|
enc.set_property("keyframe-max-dist", 2000i32);
|
||||||
enc.set_property_from_str("keyframe-mode", "disabled");
|
enc.set_property_from_str("keyframe-mode", "disabled");
|
||||||
|
|
Loading…
Reference in a new issue