diff options
-rw-r--r-- | shared/extra-utils/videos/live.ts | 4 |
1 files 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: { | |||
22 | command.inputOption('-re') | 22 | command.inputOption('-re') |
23 | 23 | ||
24 | if (copyCodecs) { | 24 | if (copyCodecs) { |
25 | command.outputOption('-c copy') | ||
26 | } else { | ||
25 | command.outputOption('-c:v libx264') | 27 | command.outputOption('-c:v libx264') |
26 | command.outputOption('-g 50') | 28 | command.outputOption('-g 50') |
27 | command.outputOption('-keyint_min 2') | 29 | command.outputOption('-keyint_min 2') |
28 | command.outputOption('-r 60') | 30 | command.outputOption('-r 60') |
29 | } else { | ||
30 | command.outputOption('-c copy') | ||
31 | } | 31 | } |
32 | 32 | ||
33 | command.outputOption('-f flv') | 33 | command.outputOption('-f flv') |