VideoTools/internal
Stu Leak b41e41e5ad fix(windows): Hide command prompt windows during benchmarking
Issue:
- Jake reported command prompts popping up during benchmark runs on Windows
- FFmpeg processes were showing console windows during tests
- Disruptive user experience, not discreet

Root Cause:
- exec.CommandContext on Windows shows command prompt by default
- Benchmark suite runs multiple FFmpeg processes (test video generation + encoder tests)
- No platform-specific window hiding applied

Solution:
- Apply utils.ApplyNoWindow() to all FFmpeg benchmark commands
- Uses SysProcAttr{HideWindow: true} on Windows
- No-op on Linux/macOS (cross-platform safe)

Implementation:
- Import internal/utils in benchmark package
- Call ApplyNoWindow() on test video generation command
- Call ApplyNoWindow() on each encoder benchmark test command
- Ensures all benchmark processes run hidden on Windows

Files Changed:
- internal/benchmark/benchmark.go: Added ApplyNoWindow() calls

Platform-Specific Code:
- internal/utils/proc_windows.go: HideWindow implementation (existing)
- internal/utils/proc_other.go: No-op implementation (existing)

Impact:
- Clean, discreet benchmarking on Windows
- No console windows popping up during tests
- Same behavior on all platforms

Reported-by: Jake (Windows command prompt popups)
Tested-on: Linux (build successful, no-op behavior verified)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-28 19:25:55 -05:00
..
app Format cleanup and minor fixes 2025-12-23 21:56:47 -05:00
benchmark fix(windows): Hide command prompt windows during benchmarking 2025-12-28 19:25:55 -05:00
convert Format cleanup and minor fixes 2025-12-23 21:56:47 -05:00
interlace Format cleanup and minor fixes 2025-12-23 21:56:47 -05:00
logging Refactor to modular architecture with rainbow UI (v0.1.0-dev8) 2025-11-23 14:56:37 -05:00
metadata Add queue error copy, auto naming helper, and metadata templating 2025-12-07 12:03:21 -05:00
modules Group DVD modules and add responsive menu 2025-12-24 00:08:56 -05:00
player Implement VT_Player module with frame-accurate video playback 2025-12-21 16:31:44 -05:00
queue Add rip job type 2025-12-23 21:22:37 -05:00
sysinfo Format cleanup and minor fixes 2025-12-23 21:56:47 -05:00
thumbnail Import json/strconv for thumbnail ffprobe parsing 2025-12-17 19:09:43 -05:00
ui fix(queue): Prevent massive goroutine leak from StripedProgress animations 2025-12-28 19:24:17 -05:00
utils Add configurable temp directory with SSD hint 2025-12-20 19:55:13 -05:00