From db124b5a5aaeda931c35754374eeea91d50e7ab2 Mon Sep 17 00:00:00 2001 From: mikigal Date: Wed, 11 Oct 2023 20:53:54 +0200 Subject: [PATCH] Added additional logs needed for debugging ffmpeg --- main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 4d4f15c..c9f2e53 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "syscall" ) -const version = "1.0" +const version = "1.0.1" var ( @@ -119,8 +119,11 @@ func startProcessing() { g.Update() outputPath := buildOutputPath(anime, outputFormat) - cmd := exec.Command(".\\ffmpeg\\ffmpeg.exe", - buildUpscalingParams(anime, resolution, shadersMode, compressionPreset, outputPath)...) + ffmpegParams := buildUpscalingParams(anime, resolution, shadersMode, compressionPreset, outputPath) + logMessage("FFMPEG params: ffmpeg.exe "+strings.Join(ffmpegParams, " "), false) + g.Update() + + cmd := exec.Command(".\\ffmpeg\\ffmpeg.exe", ffmpegParams...) cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} stderr, err := cmd.StderrPipe()