aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts12
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
339const 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
339const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P 350const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P
340 351
341const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = { 352const 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,