diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 6 | ||||
-rw-r--r-- | config/production.yaml.example | 6 | ||||
-rw-r--r-- | config/test.yaml | 2 |
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: | |||
312 | import: | 315 | import: |
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: | |||
323 | import: | 326 | import: |
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 | ||
107 | import: | 108 | import: |
108 | videos: | 109 | videos: |
110 | concurrency: 2 | ||
109 | http: | 111 | http: |
110 | enabled: true | 112 | enabled: true |
111 | proxy: | 113 | proxy: |