diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-05 10:36:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:18:07 +0200 |
commit | 84cae54e7a2595bea0c3ea106a4d111fd11a4ec6 (patch) | |
tree | 03fe73edf049ce60df6bbc34dcfb2031c07ea59c /server/initializers/config.ts | |
parent | 7e0f50d6e0c7dc583d40e196c283eb20dc386ae6 (diff) | |
download | PeerTube-84cae54e7a2595bea0c3ea106a4d111fd11a4ec6.tar.gz PeerTube-84cae54e7a2595bea0c3ea106a4d111fd11a4ec6.tar.zst PeerTube-84cae54e7a2595bea0c3ea106a4d111fd11a4ec6.zip |
Add option to not transcode original resolution
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index ba0f756ef..1a0b8942c 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -309,6 +309,7 @@ const CONFIG = { | |||
309 | get THREADS () { return config.get<number>('transcoding.threads') }, | 309 | get THREADS () { return config.get<number>('transcoding.threads') }, |
310 | get CONCURRENCY () { return config.get<number>('transcoding.concurrency') }, | 310 | get CONCURRENCY () { return config.get<number>('transcoding.concurrency') }, |
311 | get PROFILE () { return config.get<string>('transcoding.profile') }, | 311 | get PROFILE () { return config.get<string>('transcoding.profile') }, |
312 | get ALWAYS_TRANSCODE_ORIGINAL_RESOLUTION () { return config.get<boolean>('transcoding.always_transcode_original_resolution') }, | ||
312 | RESOLUTIONS: { | 313 | RESOLUTIONS: { |
313 | get '0p' () { return config.get<boolean>('transcoding.resolutions.0p') }, | 314 | get '0p' () { return config.get<boolean>('transcoding.resolutions.0p') }, |
314 | get '144p' () { return config.get<boolean>('transcoding.resolutions.144p') }, | 315 | get '144p' () { return config.get<boolean>('transcoding.resolutions.144p') }, |
@@ -361,6 +362,8 @@ const CONFIG = { | |||
361 | get THREADS () { return config.get<number>('live.transcoding.threads') }, | 362 | get THREADS () { return config.get<number>('live.transcoding.threads') }, |
362 | get PROFILE () { return config.get<string>('live.transcoding.profile') }, | 363 | get PROFILE () { return config.get<string>('live.transcoding.profile') }, |
363 | 364 | ||
365 | get ALWAYS_TRANSCODE_ORIGINAL_RESOLUTION () { return config.get<boolean>('live.transcoding.always_transcode_original_resolution') }, | ||
366 | |||
364 | RESOLUTIONS: { | 367 | RESOLUTIONS: { |
365 | get '144p' () { return config.get<boolean>('live.transcoding.resolutions.144p') }, | 368 | get '144p' () { return config.get<boolean>('live.transcoding.resolutions.144p') }, |
366 | get '240p' () { return config.get<boolean>('live.transcoding.resolutions.240p') }, | 369 | get '240p' () { return config.get<boolean>('live.transcoding.resolutions.240p') }, |