1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Redirect ffmpeg output to logger.

This commit is contained in:
Junle Li 2023-01-25 01:26:10 -08:00
parent e7983a6def
commit 47768f8202

View File

@ -52,6 +52,10 @@ export class VideoConverterWorker {
}) })
.on('error', (e: any) => { .on('error', (e: any) => {
reject('[FFmpeg] ' + e.toString() + ' executed: ' + executedCmd); reject('[FFmpeg] ' + e.toString() + ' executed: ' + executedCmd);
})
.on('stderr', function (line: string) {
// Although this is under `stderr` event, all of ffmpeg output come here.
Logger.debug(line);
}); });
// set custom input options // set custom input options