1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

specific niceness for live transcoding

This commit is contained in:
Rigel Kent 2021-01-10 21:02:55 +01:00 committed by Chocobozzz
parent d8b34ee55b
commit 7abb6060a9
2 changed files with 9 additions and 3 deletions

View file

@ -356,8 +356,11 @@ const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = {
}
const FFMPEG_NICE: { [ id: string ]: number } = {
THUMBNAIL: 2, // 2 just for don't blocking servers
TRANSCODING: 15
// parent process defaults to niceness = 0
// reminder: lower = higher priority, max value is 19, lowest is -20
THUMBNAIL: 2, // low value in order to avoid blocking server
LIVE: 9, // prioritize over VOD
VOD: 15
}
const VIDEO_CATEGORIES = {