X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fffmpeg-utils.ts;h=02c66cd014cc89b60651336f83445a6f87b44e1c;hb=110d463fece85e87a26aca48a6048ae0017a27b3;hp=7bfd5d44acce0b5160a377c2fa0438fa85810bc9;hpb=dca0fe12ec2e47be51884c4eb05ebe6f358cb9de;p=github%2FChocobozzz%2FPeerTube.git 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 = function transcode (options: TranscodeOptions) { return new Promise(async (res, rej) => { try { - let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING }) + // we set cwd explicitly because ffmpeg appears to create temporary files when trancoding which fails in read-only file systems + let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING, cwd: CONFIG.STORAGE.TMP_DIR }) .output(options.outputPath) if (options.type === 'quick-transcode') {