aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
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 /config
parent81b46cbc3417c46263c210c61b51a84a457abaaa (diff)
downloadPeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz
PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst
PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml6
-rw-r--r--config/production.yaml.example6
-rw-r--r--config/test.yaml2
3 files changed, 14 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 95df2e06c..3bbb3e5c4 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -233,7 +233,10 @@ transcoding:
233 # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file 233 # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
234 allow_audio_files: true 234 allow_audio_files: true
235 235
236 # Amount of threads used by ffmpeg for 1 transcoding job
236 threads: 1 237 threads: 1
238 # Amount of transcoding jobs to execute in parallel
239 concurrency: 1
237 240
238 # Choose the transcoding profile 241 # Choose the transcoding profile
239 # New profiles can be added by plugins 242 # New profiles can be added by plugins
@@ -312,6 +315,9 @@ live:
312import: 315import:
313 # Add ability for your users to import remote videos (from YouTube, torrent...) 316 # Add ability for your users to import remote videos (from YouTube, torrent...)
314 videos: 317 videos:
318 # Amount of import jobs to execute in parallel
319 concurrency: 1
320
315 http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html 321 http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
316 enabled: false 322 enabled: false
317 323
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 13a646918..d75e30276 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -244,7 +244,10 @@ transcoding:
244 # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file 244 # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
245 allow_audio_files: true 245 allow_audio_files: true
246 246
247 # Amount of threads used by ffmpeg for 1 transcoding job
247 threads: 1 248 threads: 1
249 # Amount of transcoding jobs to execute in parallel
250 concurrency: 1
248 251
249 # Choose the transcoding profile 252 # Choose the transcoding profile
250 # New profiles can be added by plugins 253 # New profiles can be added by plugins
@@ -323,6 +326,9 @@ live:
323import: 326import:
324 # Add ability for your users to import remote videos (from YouTube, torrent...) 327 # Add ability for your users to import remote videos (from YouTube, torrent...)
325 videos: 328 videos:
329 # Amount of import jobs to execute in parallel
330 concurrency: 1
331
326 http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html 332 http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
327 enabled: false 333 enabled: false
328 334
diff --git a/config/test.yaml b/config/test.yaml
index 6fedb1dc3..ae8011ba5 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -71,6 +71,7 @@ transcoding:
71 allow_additional_extensions: false 71 allow_additional_extensions: false
72 allow_audio_files: false 72 allow_audio_files: false
73 threads: 2 73 threads: 2
74 concurrency: 2
74 resolutions: 75 resolutions:
75 0p: false 76 0p: false
76 240p: true 77 240p: true
@@ -106,6 +107,7 @@ live:
106 107
107import: 108import:
108 videos: 109 videos:
110 concurrency: 2
109 http: 111 http:
110 enabled: true 112 enabled: true
111 proxy: 113 proxy: