From 747b29900da27fb3476fa19ace8fd6eb2e16d4ce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 20 Mar 2018 08:21:30 +0100 Subject: [PATCH] Display ffmpeg output errors --- server/helpers/ffmpeg-utils.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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() }) } -- 2.25.1