diff options
Diffstat (limited to 'server/lib/transcoding')
-rw-r--r-- | server/lib/transcoding/video-transcoding-profiles.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/transcoding/video-transcoding-profiles.ts b/server/lib/transcoding/video-transcoding-profiles.ts index bca6dfccd..a8176dca5 100644 --- a/server/lib/transcoding/video-transcoding-profiles.ts +++ b/server/lib/transcoding/video-transcoding-profiles.ts | |||
@@ -14,7 +14,7 @@ import { canDoQuickAudioTranscode, ffprobePromise, getAudioStream, getMaxAudioBi | |||
14 | * * https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate | 14 | * * https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate |
15 | */ | 15 | */ |
16 | 16 | ||
17 | const defaultX264VODOptionsBuilder: EncoderOptionsBuilder = async (options: EncoderOptionsBuilderParams) => { | 17 | const defaultX264VODOptionsBuilder: EncoderOptionsBuilder = (options: EncoderOptionsBuilderParams) => { |
18 | const { fps, inputRatio, inputBitrate } = options | 18 | const { fps, inputRatio, inputBitrate } = options |
19 | if (!fps) return { outputOptions: [ ] } | 19 | if (!fps) return { outputOptions: [ ] } |
20 | 20 | ||
@@ -30,7 +30,7 @@ const defaultX264VODOptionsBuilder: EncoderOptionsBuilder = async (options: Enco | |||
30 | } | 30 | } |
31 | } | 31 | } |
32 | 32 | ||
33 | const defaultX264LiveOptionsBuilder: EncoderOptionsBuilder = async (options: EncoderOptionsBuilderParams) => { | 33 | const defaultX264LiveOptionsBuilder: EncoderOptionsBuilder = (options: EncoderOptionsBuilderParams) => { |
34 | const { streamNum, fps, inputBitrate, inputRatio } = options | 34 | const { streamNum, fps, inputBitrate, inputRatio } = options |
35 | 35 | ||
36 | const targetBitrate = capBitrate(inputBitrate, getAverageBitrate({ ...options, fps, ratio: inputRatio })) | 36 | const targetBitrate = capBitrate(inputBitrate, getAverageBitrate({ ...options, fps, ratio: inputRatio })) |