diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-08 10:51:10 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-08 15:38:45 +0100 |
commit | 9129b7694d577322327ee79e9b9aa64deee92765 (patch) | |
tree | eb23b7a952048c3725f29109d38c36368976dec0 /shared | |
parent | 81b46cbc3417c46263c210c61b51a84a457abaaa (diff) | |
download | PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip |
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/server/config.ts | 2 | ||||
-rw-r--r-- | shared/models/server/custom-config.model.ts | 3 | ||||
-rw-r--r-- | shared/models/server/job.model.ts | 1 |
3 files changed, 6 insertions, 0 deletions
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 | |||
112 | allowAdditionalExtensions: true, | 112 | allowAdditionalExtensions: true, |
113 | allowAudioFiles: true, | 113 | allowAudioFiles: true, |
114 | threads: 1, | 114 | threads: 1, |
115 | concurrency: 3, | ||
115 | profile: 'default', | 116 | profile: 'default', |
116 | resolutions: { | 117 | resolutions: { |
117 | '0p': false, | 118 | '0p': false, |
@@ -153,6 +154,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti | |||
153 | }, | 154 | }, |
154 | import: { | 155 | import: { |
155 | videos: { | 156 | videos: { |
157 | concurrency: 3, | ||
156 | http: { | 158 | http: { |
157 | enabled: false | 159 | enabled: false |
158 | }, | 160 | }, |
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 { | |||
87 | allowAudioFiles: boolean | 87 | allowAudioFiles: boolean |
88 | 88 | ||
89 | threads: number | 89 | threads: number |
90 | concurrency: number | ||
90 | 91 | ||
91 | profile: string | 92 | profile: string |
92 | 93 | ||
@@ -120,6 +121,8 @@ export interface CustomConfig { | |||
120 | 121 | ||
121 | import: { | 122 | import: { |
122 | videos: { | 123 | videos: { |
124 | concurrency: number | ||
125 | |||
123 | http: { | 126 | http: { |
124 | enabled: boolean | 127 | enabled: boolean |
125 | } | 128 | } |
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 { | |||
106 | isPortraitMode?: boolean | 106 | isPortraitMode?: boolean |
107 | resolution: VideoResolution | 107 | resolution: VideoResolution |
108 | copyCodecs: boolean | 108 | copyCodecs: boolean |
109 | isMaxQuality: boolean | ||
109 | } | 110 | } |
110 | 111 | ||
111 | export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { | 112 | export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { |