aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/helpers/ffmpeg-utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 7bfd5d44a..02c66cd01 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -270,7 +270,8 @@ type TranscodeOptions =
270function transcode (options: TranscodeOptions) { 270function transcode (options: TranscodeOptions) {
271 return new Promise<void>(async (res, rej) => { 271 return new Promise<void>(async (res, rej) => {
272 try { 272 try {
273 let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING }) 273 // we set cwd explicitly because ffmpeg appears to create temporary files when trancoding which fails in read-only file systems
274 let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING, cwd: CONFIG.STORAGE.TMP_DIR })
274 .output(options.outputPath) 275 .output(options.outputPath)
275 276
276 if (options.type === 'quick-transcode') { 277 if (options.type === 'quick-transcode') {