diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-15 10:19:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-15 10:23:40 +0100 |
commit | dd9c7929e605be0b7341b19ab5f4aa3eb0cc4524 (patch) | |
tree | e380f10803d945d95dd9ba66c32d598307cf371e /server/helpers/ffmpeg-utils.ts | |
parent | d29ae17f3058006e4c88399800d30ee73a60ba5f (diff) | |
download | PeerTube-dd9c7929e605be0b7341b19ab5f4aa3eb0cc4524.tar.gz PeerTube-dd9c7929e605be0b7341b19ab5f4aa3eb0cc4524.tar.zst PeerTube-dd9c7929e605be0b7341b19ab5f4aa3eb0cc4524.zip |
Display debug ffmpeg stdout/stderr
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
620 | rej(err) | 620 | rej(err) |
621 | }) | 621 | }) |
622 | 622 | ||
623 | command.on('end', () => { | 623 | command.on('end', (stdout, stderr) => { |
624 | logger.debug('FFmpeg command ended.', { stdout, stderr }) | ||
625 | |||
624 | if (onEnd) onEnd() | 626 | if (onEnd) onEnd() |
625 | 627 | ||
626 | res() | 628 | res() |