diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-23 16:23:52 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-25 10:07:51 +0100 |
commit | 9252a33d115bba85adcfbc18ab3725924642871c (patch) | |
tree | 94365b67fc25cb0d9ce046a820d07344742179f6 /server/initializers/constants.ts | |
parent | daf6e4801052d3ca6be2fafd20bae2323b1ce175 (diff) | |
download | PeerTube-9252a33d115bba85adcfbc18ab3725924642871c.tar.gz PeerTube-9252a33d115bba85adcfbc18ab3725924642871c.tar.zst PeerTube-9252a33d115bba85adcfbc18ab3725924642871c.zip |
Export encoders options in a dedicated struct
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 5c6d06077..945185f62 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -336,6 +336,17 @@ const VIDEO_TRANSCODING_FPS: VideoTranscodingFPS = { | |||
336 | KEEP_ORIGIN_FPS_RESOLUTION_MIN: 720 // We keep the original FPS on high resolutions (720 minimum) | 336 | KEEP_ORIGIN_FPS_RESOLUTION_MIN: 720 // We keep the original FPS on high resolutions (720 minimum) |
337 | } | 337 | } |
338 | 338 | ||
339 | const VIDEO_TRANSCODING_ENCODERS = { | ||
340 | VIDEO: [ 'libx264' ], | ||
341 | |||
342 | // Try the first one, if not available try the second one etc | ||
343 | AUDIO: [ | ||
344 | // we favor VBR, if a good AAC encoder is available | ||
345 | 'libfdk_aac', | ||
346 | 'aac' | ||
347 | ] | ||
348 | } | ||
349 | |||
339 | const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P | 350 | const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P |
340 | 351 | ||
341 | const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = { | 352 | const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = { |
@@ -804,6 +815,7 @@ export { | |||
804 | ACTOR_FOLLOW_SCORE, | 815 | ACTOR_FOLLOW_SCORE, |
805 | PREVIEWS_SIZE, | 816 | PREVIEWS_SIZE, |
806 | REMOTE_SCHEME, | 817 | REMOTE_SCHEME, |
818 | VIDEO_TRANSCODING_ENCODERS, | ||
807 | FOLLOW_STATES, | 819 | FOLLOW_STATES, |
808 | DEFAULT_USER_THEME_NAME, | 820 | DEFAULT_USER_THEME_NAME, |
809 | SERVER_ACTOR_NAME, | 821 | SERVER_ACTOR_NAME, |