aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/ffmpeg-utils.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 1f5e8d8f6..d01e6f80e 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -594,7 +594,10 @@ function presetOnlyAudio (command: ffmpeg.FfmpegCommand): ffmpeg.FfmpegCommand {
594 594
595function getFFmpeg (input: string, type: 'live' | 'vod') { 595function getFFmpeg (input: string, type: 'live' | 'vod') {
596 // We set cwd explicitly because ffmpeg appears to create temporary files when trancoding which fails in read-only file systems 596 // We set cwd explicitly because ffmpeg appears to create temporary files when trancoding which fails in read-only file systems
597 const command = ffmpeg(input, { niceness: FFMPEG_NICE.TRANSCODING, cwd: CONFIG.STORAGE.TMP_DIR }) 597 const command = ffmpeg(input, {
598 niceness: type === 'live' ? FFMPEG_NICE.LIVE : FFMPEG_NICE.VOD,
599 cwd: CONFIG.STORAGE.TMP_DIR
600 })
598 601
599 const threads = type === 'live' 602 const threads = type === 'live'
600 ? CONFIG.LIVE.TRANSCODING.THREADS 603 ? CONFIG.LIVE.TRANSCODING.THREADS