From 70e6227c9a579d27ad7c5c5de9ea355e688110c3 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 23 Mar 2022 02:42:52 +0100 Subject: [PATCH] webrtcsink: reduce latency with vpx encoders The lag-in-frames property needs to be explicitly set to 0 --- plugins/src/webrtcsink/imp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/src/webrtcsink/imp.rs b/plugins/src/webrtcsink/imp.rs index 9ca1a1ba..5476490f 100644 --- a/plugins/src/webrtcsink/imp.rs +++ b/plugins/src/webrtcsink/imp.rs @@ -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" => {