aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/helpers/ffmpeg-utils.ts10
1 files 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) {
102 command = command.size(size) 102 command = command.size(size)
103 } 103 }
104 104
105 command.on('error', rej) 105 command
106 .on('end', res) 106 .on('error', (err, stdout, stderr) => {
107 .run() 107 logger.error('Error in transcoding job.', { stdout, stderr })
108 return rej(err)
109 })
110 .on('end', res)
111 .run()
108 }) 112 })
109} 113}
110 114