aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-28 09:37:26 +0100
committerChocobozzz <me@florianbigard.com>2021-01-28 15:55:39 +0100
commit529b37527cff5203a0689a15ce73dcee6e1eece2 (patch)
tree8ca9cbb725b59a8dfadf70526a0e470349c1c720 /server/initializers/constants.ts
parent923d3d5ad53cd23bf8107e936408e321f6175517 (diff)
downloadPeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.tar.gz
PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.tar.zst
PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.zip
Use a profile manager for transcoding
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 89491708e..0fab872a9 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -341,17 +341,6 @@ const VIDEO_TRANSCODING_FPS: VideoTranscodingFPS = {
341 KEEP_ORIGIN_FPS_RESOLUTION_MIN: 720 // We keep the original FPS on high resolutions (720 minimum) 341 KEEP_ORIGIN_FPS_RESOLUTION_MIN: 720 // We keep the original FPS on high resolutions (720 minimum)
342} 342}
343 343
344const VIDEO_TRANSCODING_ENCODERS = {
345 VIDEO: [ 'libx264' ],
346
347 // Try the first one, if not available try the second one etc
348 AUDIO: [
349 // we favor VBR, if a good AAC encoder is available
350 'libfdk_aac',
351 'aac'
352 ]
353}
354
355const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P 344const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P
356 345
357const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = { 346const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = {
@@ -828,7 +817,6 @@ export {
828 ACTOR_FOLLOW_SCORE, 817 ACTOR_FOLLOW_SCORE,
829 PREVIEWS_SIZE, 818 PREVIEWS_SIZE,
830 REMOTE_SCHEME, 819 REMOTE_SCHEME,
831 VIDEO_TRANSCODING_ENCODERS,
832 FOLLOW_STATES, 820 FOLLOW_STATES,
833 DEFAULT_USER_THEME_NAME, 821 DEFAULT_USER_THEME_NAME,
834 SERVER_ACTOR_NAME, 822 SERVER_ACTOR_NAME,