Display ffmpeg output errors
This commit is contained in:
parent
749cedcc60
commit
747b29900d
1 changed files with 7 additions and 3 deletions
|
@ -102,9 +102,13 @@ function transcode (options: TranscodeOptions) {
|
||||||
command = command.size(size)
|
command = command.size(size)
|
||||||
}
|
}
|
||||||
|
|
||||||
command.on('error', rej)
|
command
|
||||||
.on('end', res)
|
.on('error', (err, stdout, stderr) => {
|
||||||
.run()
|
logger.error('Error in transcoding job.', { stdout, stderr })
|
||||||
|
return rej(err)
|
||||||
|
})
|
||||||
|
.on('end', res)
|
||||||
|
.run()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue