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

Merge pull request #598 from lijunle/ffmpeg-log

Redirect ffmpeg output to logger.
This commit is contained in:
Patrik J. Braun 2023-01-25 12:18:04 +01:00 committed by GitHub
commit 3eeb62cf8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,10 @@ export class VideoConverterWorker {
})
.on('error', (e: any) => {
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('[FFmpeg] ' + line);
});
// set custom input options