aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 15:31:09 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-09 15:53:18 +0200
commita60696ab185406700a5277edae54016b0add7b89 (patch)
tree5a2b4a813af3afe02251551147033f9f903dbb34 /server/helpers
parent3e03b961b8ab897500dfea626f808c009f64e551 (diff)
downloadPeerTube-a60696ab185406700a5277edae54016b0add7b89.tar.gz
PeerTube-a60696ab185406700a5277edae54016b0add7b89.tar.zst
PeerTube-a60696ab185406700a5277edae54016b0add7b89.zip
Add scale filter to documentation
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/ffmpeg-utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index aa4223cda..75297df8f 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -396,8 +396,8 @@ async function buildx264VODCommand (command: ffmpeg.FfmpegCommand, options: Tran
396 396
397 if (options.resolution !== undefined) { 397 if (options.resolution !== undefined) {
398 scaleFilterValue = options.isPortraitMode === true 398 scaleFilterValue = options.isPortraitMode === true
399 ? `${options.resolution}:-2` 399 ? `w=${options.resolution}:h=-2`
400 : `-2:${options.resolution}` 400 : `w=-2:h=${options.resolution}`
401 } 401 }
402 402
403 command = await presetVideo({ command, input: options.inputPath, transcodeOptions: options, fps, scaleFilterValue }) 403 command = await presetVideo({ command, input: options.inputPath, transcodeOptions: options, fps, scaleFilterValue })