From 23909bb56881e0fb7d79ec422ca9d1a70327e10a Mon Sep 17 00:00:00 2001 From: mikigal Date: Sat, 14 Oct 2023 15:44:26 +0200 Subject: [PATCH] Improved debug logging of ffmpeg --- ffmpeg.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg.go b/ffmpeg.go index f0241e2..edd655b 100644 --- a/ffmpeg.go +++ b/ffmpeg.go @@ -24,6 +24,9 @@ func handleUpscalingLogs(stderr io.ReadCloser) string { } if !strings.HasPrefix(line, "frame=") { + trim := strings.Replace(line, "\r", "", -1) + trim = strings.Replace(trim, "\n", "", -1) + logDebug(trim, false) ffmpegLogs += line }