aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-08 10:51:10 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-08 15:38:45 +0100
commit9129b7694d577322327ee79e9b9aa64deee92765 (patch)
treeeb23b7a952048c3725f29109d38c36368976dec0 /shared/models/server
parent81b46cbc3417c46263c210c61b51a84a457abaaa (diff)
downloadPeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz
PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst
PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'shared/models/server')
-rw-r--r--shared/models/server/custom-config.model.ts3
-rw-r--r--shared/models/server/job.model.ts1
2 files changed, 4 insertions, 0 deletions
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
111export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { 112export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload {