aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorThéo Le Calvar <tlc@kher.nl>2021-04-03 18:48:14 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-09 15:53:18 +0200
commit5fb7cfbac50e2c55f04182e40bc6f84e5dd4a4da (patch)
tree8a253611577988fb71527477ae138be7eaf49c6b /server/helpers
parentd2466f0ac9c9877df10f62b7ac20bc3253a2a84a (diff)
downloadPeerTube-5fb7cfbac50e2c55f04182e40bc6f84e5dd4a4da.tar.gz
PeerTube-5fb7cfbac50e2c55f04182e40bc6f84e5dd4a4da.tar.zst
PeerTube-5fb7cfbac50e2c55f04182e40bc6f84e5dd4a4da.zip
add support for inputOptions in trancode plugins
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/ffmpeg-utils.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 01c3aa5f7..32bd3e44a 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -277,6 +277,7 @@ async function getLiveTranscodingCommand (options: {
277 logger.debug('Apply ffmpeg live video params from %s using %s profile.', builderResult.encoder, profile, builderResult) 277 logger.debug('Apply ffmpeg live video params from %s using %s profile.', builderResult.encoder, profile, builderResult)
278 278
279 command.outputOption(`${buildStreamSuffix('-c:v', i)} ${builderResult.encoder}`) 279 command.outputOption(`${buildStreamSuffix('-c:v', i)} ${builderResult.encoder}`)
280 command.addInputOptions(builderResult.result.inputOptions)
280 command.addOutputOptions(builderResult.result.outputOptions) 281 command.addOutputOptions(builderResult.result.outputOptions)
281 } 282 }
282 283
@@ -294,6 +295,7 @@ async function getLiveTranscodingCommand (options: {
294 logger.debug('Apply ffmpeg live audio params from %s using %s profile.', builderResult.encoder, profile, builderResult) 295 logger.debug('Apply ffmpeg live audio params from %s using %s profile.', builderResult.encoder, profile, builderResult)
295 296
296 command.outputOption(`${buildStreamSuffix('-c:a', i)} ${builderResult.encoder}`) 297 command.outputOption(`${buildStreamSuffix('-c:a', i)} ${builderResult.encoder}`)
298 command.addInputOptions(builderResult.result.inputOptions)
297 command.addOutputOptions(builderResult.result.outputOptions) 299 command.addOutputOptions(builderResult.result.outputOptions)
298 } 300 }
299 301
@@ -605,6 +607,7 @@ async function presetVideo (
605 localCommand.audioCodec(builderResult.encoder) 607 localCommand.audioCodec(builderResult.encoder)
606 } 608 }
607 609
610 command.addInputOptions(builderResult.result.inputOptions)
608 command.addOutputOptions(builderResult.result.outputOptions) 611 command.addOutputOptions(builderResult.result.outputOptions)
609 addDefaultEncoderParams({ command: localCommand, encoder: builderResult.encoder, fps }) 612 addDefaultEncoderParams({ command: localCommand, encoder: builderResult.encoder, fps })
610 } 613 }