aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorJorropo <jorropo.pgm@gmail.com>2018-07-27 11:45:05 +0200
committerChocobozzz <me@florianbigard.com>2018-08-01 10:57:13 +0200
commit80bc88c1330c5cf6f5da0ec9252f905e30037f59 (patch)
treea0a6f5b4b39687b74c538693e2ee30c7c2c3d573 /server/initializers/constants.ts
parent4a5ccac5f1df4cbe1f016d1b6aad0a334bba33ae (diff)
downloadPeerTube-80bc88c1330c5cf6f5da0ec9252f905e30037f59.tar.gz
PeerTube-80bc88c1330c5cf6f5da0ec9252f905e30037f59.tar.zst
PeerTube-80bc88c1330c5cf6f5da0ec9252f905e30037f59.zip
Nice ffmpeg to 15 and 2
Niceness 15 for video conversionNiceness 2 for image generation (niceness 2 doesn't make it slower, just don't block servers and other app)
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 6256cf38e..bec343bb7 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -316,6 +316,11 @@ const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = {
316 DISLIKE: 'dislike' 316 DISLIKE: 'dislike'
317} 317}
318 318
319const FFMPEG_NICE: { [ id: string ]: number } = {
320 THUMBNAIL: 2, // 2 just for don't blocking servers
321 TRANSCODING: 15
322}
323
319const VIDEO_CATEGORIES = { 324const VIDEO_CATEGORIES = {
320 1: 'Music', 325 1: 'Music',
321 2: 'Films', 326 2: 'Films',
@@ -570,6 +575,7 @@ export {
570 VIDEO_RATE_TYPES, 575 VIDEO_RATE_TYPES,
571 VIDEO_MIMETYPE_EXT, 576 VIDEO_MIMETYPE_EXT,
572 VIDEO_TRANSCODING_FPS, 577 VIDEO_TRANSCODING_FPS,
578 FFMPEG_NICE,
573 JOB_REQUEST_TIMEOUT, 579 JOB_REQUEST_TIMEOUT,
574 JOB_REQUEST_TTL, 580 JOB_REQUEST_TTL,
575 USER_PASSWORD_RESET_LIFETIME, 581 USER_PASSWORD_RESET_LIFETIME,