diff options
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 4 |
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 }) |