Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Display debug ffmpeg stdout/stderr

Chocobozzzdd9c7929e605
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index d01e6f80ec..6f7c186d9b 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -620,7 +620,9 @@ async function runCommand (command: ffmpeg.FfmpegCommand, onEnd?: Function) {
rej(err)
})
- command.on('end', () => {
+ command.on('end', (stdout, stderr) => {
+ logger.debug('FFmpeg command ended.', { stdout, stderr })
+
if (onEnd) onEnd()
res()