mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-24 18:08:15 +00:00
webrtcsink: vp8/9: don't hardcode threads property
and keep it at its default of 0 (automatic). Hardcoding that value triggered abnormally excessive CPU usage when connecting multiple consumers.
This commit is contained in:
parent
5b694988d1
commit
8605df4b16
1 changed files with 0 additions and 1 deletions
|
@ -368,7 +368,6 @@ fn configure_encoder(enc: &gst::Element, start_bitrate: u32) {
|
|||
match factory.name().as_str() {
|
||||
"vp8enc" | "vp9enc" => {
|
||||
enc.set_property("deadline", 1i64);
|
||||
enc.set_property("threads", 12i32);
|
||||
enc.set_property("target-bitrate", start_bitrate as i32);
|
||||
enc.set_property("cpu-used", -16i32);
|
||||
enc.set_property("keyframe-max-dist", 2000i32);
|
||||
|
|
Loading…
Reference in a new issue