diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-06 15:06:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-06 15:06:47 +0200 |
commit | a1c63fe1a2159c5796e37a63c2e4acd96dc557ca (patch) | |
tree | 15b374da94e98297694185ca8c86f275304f3386 /shared/extra-utils | |
parent | 7942e72e38bde7f9a8d890643530b1e618aad054 (diff) | |
download | PeerTube-a1c63fe1a2159c5796e37a63c2e4acd96dc557ca.tar.gz PeerTube-a1c63fe1a2159c5796e37a63c2e4acd96dc557ca.tar.zst PeerTube-a1c63fe1a2159c5796e37a63c2e4acd96dc557ca.zip |
Fix send rtmp command
Diffstat (limited to 'shared/extra-utils')
-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') |