Display debug ffmpeg stdout/stderr

pull/3610/head
Chocobozzz 2021-01-15 10:19:05 +01:00
parent d29ae17f30
commit dd9c7929e6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View 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()