Skip to content

Commit

Permalink
Improved debug logging of ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
mikigal committed Oct 14, 2023
1 parent 40eba96 commit 23909bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 23909bb

Please sign in to comment.