From 9129b7694d577322327ee79e9b9aa64deee92765 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Feb 2021 10:51:10 +0100 Subject: Allow to specify transcoding and import jobs concurrency --- shared/extra-utils/server/config.ts | 2 ++ shared/models/server/custom-config.model.ts | 3 +++ shared/models/server/job.model.ts | 1 + 3 files changed, 6 insertions(+) (limited to 'shared') diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts index db5a473ca..efe569243 100644 --- a/shared/extra-utils/server/config.ts +++ b/shared/extra-utils/server/config.ts @@ -112,6 +112,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti allowAdditionalExtensions: true, allowAudioFiles: true, threads: 1, + concurrency: 3, profile: 'default', resolutions: { '0p': false, @@ -153,6 +154,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti }, import: { videos: { + concurrency: 3, http: { enabled: false }, diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index d23b8abef..93b2d3417 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts @@ -87,6 +87,7 @@ export interface CustomConfig { allowAudioFiles: boolean threads: number + concurrency: number profile: string @@ -120,6 +121,8 @@ export interface CustomConfig { import: { videos: { + concurrency: number + http: { enabled: boolean } diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index ddd678b91..44f92abf1 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts @@ -106,6 +106,7 @@ export interface HLSTranscodingPayload extends BaseTranscodingPayload { isPortraitMode?: boolean resolution: VideoResolution copyCodecs: boolean + isMaxQuality: boolean } export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { -- cgit v1.2.3