aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-20 08:21:30 +0100
committerChocobozzz <me@florianbigard.com>2018-03-20 08:21:54 +0100
commit747b29900da27fb3476fa19ace8fd6eb2e16d4ce (patch)
tree4e8fc3e10fe8b3ac04baed9fd5bb422d488b8ca0 /server
parent749cedcc6043f98e9182f4e2246e90538d03ffa5 (diff)
downloadPeerTube-747b29900da27fb3476fa19ace8fd6eb2e16d4ce.tar.gz
PeerTube-747b29900da27fb3476fa19ace8fd6eb2e16d4ce.tar.zst
PeerTube-747b29900da27fb3476fa19ace8fd6eb2e16d4ce.zip
Display ffmpeg output errors
Diffstat (limited to 'server')
-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