From 9726f366f35479ca3fe40b623aabebc43efc71dc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 30 Jul 2023 02:03:40 +0200 Subject: [PATCH] add debug log --- src/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 8751adc..2078048 100644 --- a/src/main.ts +++ b/src/main.ts @@ -32,10 +32,15 @@ const getNewFilename = (ogFile: string, part: string) => { /** Merge all audios track of a video into one */ const mergeAudio = (file: string) => { const outFile = getNewFilename(file, "(merged audio) "); - child_process.exec( + const child = child_process.exec( `${ffmpegPath} -i "${file}" -filter_complex "[0:a]amerge=inputs=2[a]" -ac 1 -map 0:v -map "[a]" -c:v copy "${outFile}"` ); + /* debug */ + child.stderr.on("data", (err) => { + console.log("stderr", err.toString()); + }); + return outFile; };