vp9enc takes target-bitrate as a i32 and not u32

This commit is contained in:
Jimmi Holst Christensen 2022-05-10 10:28:13 +02:00 committed by Sebastian Dröge
parent eca3fa9308
commit c02a0d8757

View file

@ -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");