From b7e758c2836e4c4b982e18382a6bf1854ee65644 Mon Sep 17 00:00:00 2001 From: spkprsnts Date: Mon, 11 May 2026 03:49:57 +0500 Subject: [PATCH] perf(ffmpeg): reduce VPx encoding latency --- internal/transport/videochannel/ffmpeg.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/transport/videochannel/ffmpeg.go b/internal/transport/videochannel/ffmpeg.go index 69e14a0..81c1136 100644 --- a/internal/transport/videochannel/ffmpeg.go +++ b/internal/transport/videochannel/ffmpeg.go @@ -106,6 +106,7 @@ func vp9CodecSpec() codecSpec { argCodecVideo, "libvpx-vp9", "-deadline", "realtime", "-cpu-used", "8", + "-lag-in-frames", "0", "-error-resilient", "1", "-static-thresh", "0", "-g", "1", @@ -128,6 +129,7 @@ func vp8CodecSpec() codecSpec { argCodecVideo, codecLibVPX, "-deadline", "realtime", "-cpu-used", "8", + "-lag-in-frames", "0", "-error-resilient", "1", "-static-thresh", "0", "-g", "1",