From 88240ee44b03e78288530f37dd4886f716b4b85b Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 20 Jul 2022 16:39:19 -0700 Subject: [PATCH] webrtc: fix dropped frames in encoder process --- plugins/webrtc/src/ffmpeg-to-wrtc.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/webrtc/src/ffmpeg-to-wrtc.ts b/plugins/webrtc/src/ffmpeg-to-wrtc.ts index 40084cbf2..17b43462a 100644 --- a/plugins/webrtc/src/ffmpeg-to-wrtc.ts +++ b/plugins/webrtc/src/ffmpeg-to-wrtc.ts @@ -199,8 +199,7 @@ export async function createRTCPeerConnectionSink( "-b:v", bitrate.toString(), "-bufsize", (2 * bitrate).toString(), "-maxrate", bitrate.toString(), - // '-r', '15', - '-f:v', 'fps=15', + '-r', '15', ); const width = Math.max(640, Math.min(options?.screen?.width || 960, 1280));