mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add scale filter to documentation
This commit is contained in:
parent
3e03b961b8
commit
a60696ab18
4 changed files with 15 additions and 11 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue