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 --- .../edit-custom-config.component.html | 33 ++++++++++++++++++++++ .../edit-custom-config.component.ts | 5 ++++ 2 files changed, 38 insertions(+) (limited to 'client/src/app/+admin/config') diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 48678a194..5f0a5ff6c 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -436,8 +436,25 @@
+ +
+ + + allows to import multiple videos in parallel. ⚠️ Requires a PeerTube restart. + + +
+ +
+
{{ formErrors.import.concurrency }}
+
+
{{ formErrors.transcoding.threads }}
+
+ + + allows to transcode multiple files in parallel. ⚠️ Requires a PeerTube restart. + + +
+ +
+
{{ formErrors.transcoding.concurrency }}
+
+
new transcoding profiles can be added by PeerTube plugins diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index ae6a9e844..48fb86968 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts @@ -9,6 +9,7 @@ import { ADMIN_EMAIL_VALIDATOR, CACHE_CAPTIONS_SIZE_VALIDATOR, CACHE_PREVIEWS_SIZE_VALIDATOR, + CONCURRENCY_VALIDATOR, INDEX_URL_VALIDATOR, INSTANCE_NAME_VALIDATOR, INSTANCE_SHORT_DESCRIPTION_VALIDATOR, @@ -36,6 +37,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A resolutions: { id: string, label: string, description?: string }[] = [] liveResolutions: { id: string, label: string, description?: string }[] = [] + concurrencyOptions: number[] = [] transcodingThreadOptions: { label: string, value: number }[] = [] liveMaxDurationOptions: { label: string, value: number }[] = [] @@ -103,6 +105,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A { value: 4, label: '4' }, { value: 8, label: '8' } ] + this.concurrencyOptions = [ 1, 2, 3, 4, 5, 6 ] this.vodTranscodingProfileOptions = [ 'default' ] this.liveTranscodingProfileOptions = [ 'default' ] @@ -230,6 +233,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A }, import: { videos: { + concurrency: CONCURRENCY_VALIDATOR, http: { enabled: null }, @@ -262,6 +266,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A allowAdditionalExtensions: null, allowAudioFiles: null, profile: null, + concurrency: CONCURRENCY_VALIDATOR, resolutions: {}, hls: { enabled: null -- cgit v1.2.3