]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Display debug ffmpeg stdout/stderr
authorChocobozzz <me@florianbigard.com>
Fri, 15 Jan 2021 09:19:05 +0000 (10:19 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 15 Jan 2021 09:23:40 +0000 (10:23 +0100)
server/helpers/ffmpeg-utils.ts

index d01e6f80ecc65fd39aa304f9fc17231ee4a5d9b1..6f7c186d9b278c7ea533095e15a7caba154101d7 100644 (file)
@@ -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()