webrtcsink: reduce latency with vpx encoders

The lag-in-frames property needs to be explicitly set to 0
This commit is contained in:
Mathieu Duponchelle 2022-03-23 02:42:52 +01:00
parent bd560fa9f9
commit 70e6227c9a

View file

@ -389,6 +389,7 @@ fn setup_encoding(
enc.set_property("resize-allowed", true);
enc.set_property("max-intra-bitrate", 250i32);
enc.set_property_from_str("error-resilient", "default");
enc.set_property("lag-in-frames", 0i32);
pay.set_property_from_str("picture-id-mode", "15-bit");
}
"x264enc" => {