diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index d01e6f80e..6f7c186d9 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -620,7 +620,9 @@ async function runCommand (command: ffmpeg.FfmpegCommand, onEnd?: Function) { rej(err) }) - command.on('end', () => { + command.on('end', (stdout, stderr) => { + logger.debug('FFmpeg command ended.', { stdout, stderr }) + if (onEnd) onEnd() res()