mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
specific niceness for live transcoding
This commit is contained in:
parent
d8b34ee55b
commit
7abb6060a9
2 changed files with 9 additions and 3 deletions
|
@ -594,7 +594,10 @@ function presetOnlyAudio (command: ffmpeg.FfmpegCommand): ffmpeg.FfmpegCommand {
|
|||
|
||||
function getFFmpeg (input: string, type: 'live' | 'vod') {
|
||||
// We set cwd explicitly because ffmpeg appears to create temporary files when trancoding which fails in read-only file systems
|
||||
const command = ffmpeg(input, { niceness: FFMPEG_NICE.TRANSCODING, cwd: CONFIG.STORAGE.TMP_DIR })
|
||||
const command = ffmpeg(input, {
|
||||
niceness: type === 'live' ? FFMPEG_NICE.LIVE : FFMPEG_NICE.VOD,
|
||||
cwd: CONFIG.STORAGE.TMP_DIR
|
||||
})
|
||||
|
||||
const threads = type === 'live'
|
||||
? CONFIG.LIVE.TRANSCODING.THREADS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue