Skip to content

Commit

Permalink
Added additional logs needed for debugging ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
mikigal committed Oct 11, 2023
1 parent 611b13d commit db124b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
)

const version = "1.0"
const version = "1.0.1"

var (

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit db124b5

Please sign in to comment.