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/lib/video-transcoding-profiles.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'server/lib') diff --git a/server/lib/video-transcoding-profiles.ts b/server/lib/video-transcoding-profiles.ts index d802e2c9d..81f5e1962 100644 --- a/server/lib/video-transcoding-profiles.ts +++ b/server/lib/video-transcoding-profiles.ts @@ -24,10 +24,9 @@ import { VIDEO_TRANSCODING_FPS } from '../initializers/constants' const defaultX264VODOptionsBuilder: EncoderOptionsBuilder = async ({ input, resolution, fps }) => { const targetBitrate = await buildTargetBitrate({ input, resolution, fps }) - if (!targetBitrate) return { inputOptions: [ ], outputOptions: [ ] } + if (!targetBitrate) return { outputOptions: [ ] } return { - inputOptions: [ ], outputOptions: [ `-preset veryfast`, `-r ${fps}`, @@ -41,7 +40,6 @@ const defaultX264LiveOptionsBuilder: EncoderOptionsBuilder = async ({ resolution const targetBitrate = getTargetBitrate(resolution, fps, VIDEO_TRANSCODING_FPS) return { - inputOptions: [ ], outputOptions: [ `-preset veryfast`, `${buildStreamSuffix('-r:v', streamNum)} ${fps}`, @@ -57,7 +55,7 @@ const defaultAACOptionsBuilder: EncoderOptionsBuilder = async ({ input, streamNu if (await canDoQuickAudioTranscode(input, probe)) { logger.debug('Copy audio stream %s by AAC encoder.', input) - return { copy: true, inputOptions: [ ], outputOptions: [ ] } + return { copy: true, outputOptions: [ ] } } const parsedAudio = await getAudioStream(input, probe) @@ -72,14 +70,14 @@ const defaultAACOptionsBuilder: EncoderOptionsBuilder = async ({ input, streamNu logger.debug('Calculating audio bitrate of %s by AAC encoder.', input, { bitrate: parsedAudio.bitrate, audioCodecName }) if (bitrate !== undefined && bitrate !== -1) { - return { inputOptions: [ ], outputOptions: [ buildStreamSuffix('-b:a', streamNum), bitrate + 'k' ] } + return { outputOptions: [ buildStreamSuffix('-b:a', streamNum), bitrate + 'k' ] } } - return { inputOptions: [ ], outputOptions: [ ] } + return { outputOptions: [ ] } } const defaultLibFDKAACVODOptionsBuilder: EncoderOptionsBuilder = ({ streamNum }) => { - return { inputOptions: [ ], outputOptions: [ buildStreamSuffix('-q:a', streamNum), '5' ] } + return { outputOptions: [ buildStreamSuffix('-q:a', streamNum), '5' ] } } // Used to get and update available encoders -- cgit v1.2.3