From 085d622cace617e9d0a04b91c3bebe73e352bc96 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sat, 24 Aug 2024 14:20:07 +0200 Subject: [PATCH] log extract track command --- src/renderer/src/ffmpeg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/ffmpeg.ts b/src/renderer/src/ffmpeg.ts index 05091307..64f867a2 100644 --- a/src/renderer/src/ffmpeg.ts +++ b/src/renderer/src/ffmpeg.ts @@ -425,7 +425,7 @@ async function extractNonAttachmentStreams({ customOutDir, filePath, streams, en ...streamArgs, ]; - const { stdout } = await runFfmpeg(ffmpegArgs); + const { stdout } = await runFfmpeg(ffmpegArgs, undefined, { logCli: true }); console.log(stdout.toString('utf8')); return outPaths; @@ -461,7 +461,7 @@ async function extractAttachmentStreams({ customOutDir, filePath, streams, enabl ]; try { - const { stdout } = await runFfmpeg(ffmpegArgs); + const { stdout } = await runFfmpeg(ffmpegArgs, undefined, { logCli: true }); console.log(stdout.toString('utf8')); } catch (err) { // Unfortunately ffmpeg will exit with code 1 even though it's a success