From a1c63fe1a2159c5796e37a63c2e4acd96dc557ca Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Aug 2021 15:06:47 +0200 Subject: [PATCH] Fix send rtmp command --- shared/extra-utils/videos/live.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts index 6aa405b19..9a6df07a8 100644 --- a/shared/extra-utils/videos/live.ts +++ b/shared/extra-utils/videos/live.ts @@ -22,12 +22,12 @@ function sendRTMPStream (options: { command.inputOption('-re') if (copyCodecs) { + command.outputOption('-c copy') + } else { command.outputOption('-c:v libx264') command.outputOption('-g 50') command.outputOption('-keyint_min 2') command.outputOption('-r 60') - } else { - command.outputOption('-c copy') } command.outputOption('-f flv')