From a60696ab185406700a5277edae54016b0add7b89 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Apr 2021 15:31:09 +0200 Subject: Add scale filter to documentation --- server/helpers/ffmpeg-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers') 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 if (options.resolution !== undefined) { scaleFilterValue = options.isPortraitMode === true - ? `${options.resolution}:-2` - : `-2:${options.resolution}` + ? `w=${options.resolution}:h=-2` + : `w=-2:h=${options.resolution}` } command = await presetVideo({ command, input: options.inputPath, transcodeOptions: options, fps, scaleFilterValue }) -- cgit v1.2.3