Skip to content

Commit 3eeb62c

Browse files
authored
Merge pull request #598 from lijunle/ffmpeg-log
Redirect ffmpeg output to logger.
2 parents 23b315a + 7cee413 commit 3eeb62c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/backend/model/threading/VideoConverterWorker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export class VideoConverterWorker {
5252
})
5353
.on('error', (e: any) => {
5454
reject('[FFmpeg] ' + e.toString() + ' executed: ' + executedCmd);
55+
})
56+
.on('stderr', function (line: string) {
57+
// Although this is under `stderr` event, all of ffmpeg output come here.
58+
Logger.debug('[FFmpeg] ' + line);
5559
});
5660

5761
// set custom input options

0 commit comments

Comments
 (0)