From: Chocobozzz Date: Fri, 15 Jan 2021 09:19:05 +0000 (+0100) Subject: Display debug ffmpeg stdout/stderr X-Git-Tag: v3.1.0-rc.1~320 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=dd9c7929e605be0b7341b19ab5f4aa3eb0cc4524;hp=d29ae17f3058006e4c88399800d30ee73a60ba5f;p=github%2FChocobozzz%2FPeerTube.git Display debug ffmpeg stdout/stderr --- 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()