From: Chocobozzz Date: Tue, 20 Mar 2018 07:21:30 +0000 (+0100) Subject: Display ffmpeg output errors X-Git-Tag: v1.0.0-beta.1~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=747b29900da27fb3476fa19ace8fd6eb2e16d4ce;p=oweals%2Fpeertube.git Display ffmpeg output errors --- diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index 4d6cd3a82..8f9a03c26 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -102,9 +102,13 @@ function transcode (options: TranscodeOptions) { command = command.size(size) } - command.on('error', rej) - .on('end', res) - .run() + command + .on('error', (err, stdout, stderr) => { + logger.error('Error in transcoding job.', { stdout, stderr }) + return rej(err) + }) + .on('end', res) + .run() }) }