diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-28 15:52:44 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-28 15:55:39 +0100 |
commit | 1896bca09e088b0da9d5e845407ecebae330618c (patch) | |
tree | 56041c445c0cd49aca536d0fd6b586730f4d341e /server/initializers/config.ts | |
parent | 529b37527cff5203a0689a15ce73dcee6e1eece2 (diff) | |
download | PeerTube-1896bca09e088b0da9d5e845407ecebae330618c.tar.gz PeerTube-1896bca09e088b0da9d5e845407ecebae330618c.tar.zst PeerTube-1896bca09e088b0da9d5e845407ecebae330618c.zip |
Support transcoding options/encoders by plugins
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index fc4a8b709..7322b89e2 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -188,6 +188,7 @@ const CONFIG = { | |||
188 | get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') }, | 188 | get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') }, |
189 | get ALLOW_AUDIO_FILES () { return config.get<boolean>('transcoding.allow_audio_files') }, | 189 | get ALLOW_AUDIO_FILES () { return config.get<boolean>('transcoding.allow_audio_files') }, |
190 | get THREADS () { return config.get<number>('transcoding.threads') }, | 190 | get THREADS () { return config.get<number>('transcoding.threads') }, |
191 | get PROFILE () { return config.get<string>('transcoding.profile') }, | ||
191 | RESOLUTIONS: { | 192 | RESOLUTIONS: { |
192 | get '0p' () { return config.get<boolean>('transcoding.resolutions.0p') }, | 193 | get '0p' () { return config.get<boolean>('transcoding.resolutions.0p') }, |
193 | get '240p' () { return config.get<boolean>('transcoding.resolutions.240p') }, | 194 | get '240p' () { return config.get<boolean>('transcoding.resolutions.240p') }, |
@@ -221,6 +222,7 @@ const CONFIG = { | |||
221 | TRANSCODING: { | 222 | TRANSCODING: { |
222 | get ENABLED () { return config.get<boolean>('live.transcoding.enabled') }, | 223 | get ENABLED () { return config.get<boolean>('live.transcoding.enabled') }, |
223 | get THREADS () { return config.get<number>('live.transcoding.threads') }, | 224 | get THREADS () { return config.get<number>('live.transcoding.threads') }, |
225 | get PROFILE () { return config.get<string>('live.transcoding.profile') }, | ||
224 | 226 | ||
225 | RESOLUTIONS: { | 227 | RESOLUTIONS: { |
226 | get '240p' () { return config.get<boolean>('live.transcoding.resolutions.240p') }, | 228 | get '240p' () { return config.get<boolean>('live.transcoding.resolutions.240p') }, |