Fix send rtmp command

pull/4317/head
Chocobozzz 2021-08-06 15:06:47 +02:00
parent 7942e72e38
commit a1c63fe1a2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -22,12 +22,12 @@ function sendRTMPStream (options: {
command.inputOption('-re') command.inputOption('-re')
if (copyCodecs) { if (copyCodecs) {
command.outputOption('-c copy')
} else {
command.outputOption('-c:v libx264') command.outputOption('-c:v libx264')
command.outputOption('-g 50') command.outputOption('-g 50')
command.outputOption('-keyint_min 2') command.outputOption('-keyint_min 2')
command.outputOption('-r 60') command.outputOption('-r 60')
} else {
command.outputOption('-c copy')
} }
command.outputOption('-f flv') command.outputOption('-f flv')