diff --git a/internal/benchmark/benchmark.go b/internal/benchmark/benchmark.go index 7e83c1f..ad061cf 100644 --- a/internal/benchmark/benchmark.go +++ b/internal/benchmark/benchmark.go @@ -7,6 +7,8 @@ import ( "os/exec" "path/filepath" "time" + + "git.leaktechnologies.dev/stu/VideoTools/internal/utils" ) // Result stores the outcome of a single encoder benchmark test @@ -60,6 +62,7 @@ func (s *Suite) GenerateTestVideo(ctx context.Context, duration int) (string, er } cmd := exec.CommandContext(ctx, s.FFmpegPath, args...) + utils.ApplyNoWindow(cmd) // Hide command window on Windows during benchmark test video generation if err := cmd.Run(); err != nil { return "", fmt.Errorf("failed to generate test video: %w", err) } @@ -131,6 +134,7 @@ func (s *Suite) TestEncoder(ctx context.Context, encoder, preset string) Result // Measure encoding time start := time.Now() cmd := exec.CommandContext(ctx, s.FFmpegPath, args...) + utils.ApplyNoWindow(cmd) // Hide command window on Windows during benchmark encoding test if err := cmd.Run(); err != nil { result.Error = fmt.Sprintf("encoding failed: %v", err)