perf(ffmpeg): reduce VPx encoding latency

This commit is contained in:
spkprsnts
2026-05-11 03:49:57 +05:00
parent ba3d622233
commit b7e758c283

View File

@@ -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",