]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix send rtmp command
authorChocobozzz <me@florianbigard.com>
Fri, 6 Aug 2021 13:06:47 +0000 (15:06 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 6 Aug 2021 13:06:47 +0000 (15:06 +0200)
shared/extra-utils/videos/live.ts

index 6aa405b1964545a4515e4f23e1ddc2bcb55674c1..9a6df07a87f1433231f0f12033b42762693b1888 100644 (file)
@@ -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')