aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/helpers/ffmpeg-utils.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 9ad4b7f3b..61c8a6db2 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -703,6 +703,10 @@ async function runCommand (options: {
703 const { command, silent = false, job } = options 703 const { command, silent = false, job } = options
704 704
705 return new Promise<void>((res, rej) => { 705 return new Promise<void>((res, rej) => {
706 let shellCommand: string
707
708 command.on('start', cmdline => { shellCommand = cmdline })
709
706 command.on('error', (err, stdout, stderr) => { 710 command.on('error', (err, stdout, stderr) => {
707 if (silent !== true) logger.error('Error in ffmpeg.', { stdout, stderr }) 711 if (silent !== true) logger.error('Error in ffmpeg.', { stdout, stderr })
708 712
@@ -710,7 +714,7 @@ async function runCommand (options: {
710 }) 714 })
711 715
712 command.on('end', (stdout, stderr) => { 716 command.on('end', (stdout, stderr) => {
713 logger.debug('FFmpeg command ended.', { stdout, stderr }) 717 logger.debug('FFmpeg command ended.', { stdout, stderr, shellCommand })
714 718
715 res() 719 res()
716 }) 720 })