Commit Graph

26 Commits

Author SHA1 Message Date
cfccd300b0 Set local GOMODCACHE alongside GOCACHE for builds 2025-12-09 12:41:54 -05:00
1be4fa6a64 Use project-local GOCACHE to avoid system cache perms 2025-12-09 12:39:24 -05:00
7818d55a53 Clean Go cache automatically at build start 2025-12-09 12:05:27 -05:00
e4c09b15b3 Add VT helper scripts for 4K/1440p 60fps and smoothing 2025-12-09 00:57:48 -05:00
d9fa6f77f6 Add one-click AV1/HEVC helper scripts (sh/bat) 2025-12-09 00:53:56 -05:00
6ce55ec638 Add Windows clear-go-cache.bat helper 2025-12-09 00:51:11 -05:00
9dac96e7c7 Fix quoting in build-linux help line 2025-12-09 00:48:06 -05:00
7fea0da127 Mention clear-go-cache helper in build scripts 2025-12-09 00:43:00 -05:00
44795b6951 Show bitrate in kbps/Mbps and expand presets 2025-12-08 23:53:40 -05:00
35a90bdcd6 Add simple bitrate/resolution/aspect controls and cache helper 2025-12-08 23:22:28 -05:00
ffecea253f Remove regex warning in build script version detection 2025-12-08 20:51:40 -05:00
8b75158923 Fix feedback bundler export and use utils.NewFeedbackBundler 2025-12-08 16:06:58 -05:00
e0f5c1fca3 Show app version and diagnostics in build scripts 2025-12-08 16:00:02 -05:00
04fc954be9 Make Windows build skip ffmpeg download when already on PATH 2025-12-07 12:41:46 -05:00
9015ad7bab Add Windows helper scripts and conversion questionnaire 2025-12-07 11:37:45 -05:00
41158765c9 Handle already-installed MSYS2 in build script
Check if MSYS2 is already present by looking for the bash executable,
even if winget reports it's already installed. This allows the script
to continue with GCC installation instead of failing.
2025-12-04 17:50:58 -05:00
76efd14768 Replace all emojis with ASCII status indicators
Replaced all emoji characters with standard ASCII status prefixes
to prevent encoding issues on Windows systems:
- ✓/ → [OK]/[ERROR]
- ⚠️ → [WARN]
- 📦/🔨/🧹/⬇️/📥 → [INFO]

This ensures the script works correctly on all Windows configurations
regardless of console encoding settings.
2025-12-04 17:29:33 -05:00
7f8f700c8a Escape parentheses in echo statements within if blocks
Batch files interpret unescaped parentheses as block delimiters,
causing "was unexpected at this time" errors and improper branch
execution. All parentheses in echo statements are now escaped with ^.
2025-12-04 17:28:26 -05:00
699d51189d Fix ERRORLEVEL evaluation in all conditional checks
Capture ERRORLEVEL values immediately after each command execution
to prevent delayed expansion issues in nested conditionals. This
fixes the "was unexpected at this time" error and ensures proper
branch execution.
2025-12-04 17:24:12 -05:00
57f902ee24 Improve Windows build script with comprehensive dependency checking
Enhanced build.bat to automatically detect and offer to install all
required dependencies for users with minimal Windows dev environment:

- Check for winget availability (required for auto-installation)
- Detect and offer to install Git (recommended for development)
- Improved GCC/MinGW detection with fallback instructions
- Better error messages for users without winget
- Graceful degradation when automatic installation is not available

This ensures Jake and other users with just Go installed can run the
build script and get prompted to install everything needed automatically.
2025-12-04 17:19:43 -05:00
1d27a0fc5c Fix batch file ERRORLEVEL syntax in nested conditionals
Fixed "was unexpected at this time" error by capturing ERRORLEVEL
values into variables before using them in nested if statements.
This is required due to how batch file delayed expansion works.
2025-12-04 17:17:46 -05:00
6e6e8f1c74 Add dev14 fixes: progress tracking, AMD AMF support, DVD resolution fix, and Windows build automation
This commit includes three critical bug fixes and Windows build improvements:

**Bug Fixes:**

1. **Queue Conversion Progress Tracking** (main.go:1471-1534)
   - Enhanced executeConvertJob() to parse FPS, speed, and ETA from FFmpeg output
   - Queue jobs now show detailed progress metrics matching direct conversions
   - Stats stored in job.Config for display in the conversion stats bar

2. **AMD AMF Hardware Acceleration** (main.go)
   - Added "amf" to hardware acceleration options
   - Support for h264_amf, hevc_amf, and av1_amf encoders
   - Added AMF-specific error detection in FFmpeg output parsing

3. **DVD Format Resolution Forcing** (main.go:1080-1103, 4504-4517)
   - Removed automatic resolution forcing when DVD format is selected
   - Removed -target parameter usage which was forcing 720×480/720×576
   - Resolution now defaults to "Source" unless explicitly changed
   - DVD compliance maintained through manual bitrate/GOP/codec parameters

**Windows Build Improvements:**

- Updated build.bat to enable CGO (required for Fyne/OpenGL)
- Added automatic GCC/MinGW-w64 detection and installation
- Automated setup via winget for one-command Windows builds
- Improved error messages with fallback manual instructions

**Documentation:**

- Added comprehensive Windows setup guides
- Created platform.go for future platform-specific code
- Updated .gitignore for Windows build artifacts

All changes tested and working. Ready for production use.
2025-12-04 17:11:15 -05:00
b67490013e add build.bat script for Windows installation 2025-12-04 17:05:52 -05:00
ec893a3a2c Add cross-platform dependency installation and build scripts
Linux:
- install-deps-linux.sh: Auto-detect distro and install dependencies
  - Supports Fedora, Ubuntu, Arch, openSUSE
  - Installs Go, GCC, OpenGL, X11, ALSA, ffmpeg
  - Verification checks after installation

Windows:
- install-deps-windows.ps1: PowerShell dependency installer
  - Supports Chocolatey and Scoop package managers
  - Installs Go, MinGW (GCC), ffmpeg, Git
  - Admin and user-level installation options
  - GPU detection for NVIDIA/Intel/AMD

- build.ps1: Windows build script with error handling
  - Clean build option
  - Dependency verification
  - GPU detection and NVENC notification
  - File size reporting

Documentation:
- scripts/README.md: Comprehensive guide for both platforms
  - Installation instructions
  - Build commands and options
  - Troubleshooting section
  - GPU encoding setup
  - Development workflow

Prepares VideoTools for Windows users (Jake!) in dev14
2025-12-02 18:19:33 -05:00
97781b625f Fix convert layout stacking and cgo build 2025-11-30 00:01:06 -05:00
6296a0d3b4 Add build/run scripts and fix DVD options visibility
Added scripts folder with three convenience scripts:
  • scripts/build.sh - Clean build with dependency verification
  • scripts/run.sh - Run application (auto-builds if needed)
  • scripts/alias.sh - Create 'VideoTools' command alias

Usage:
  source scripts/alias.sh
  VideoTools              # Run app
  VideoToolsRebuild       # Force rebuild
  VideoToolsClean         # Clean artifacts

Fixed main.go DVD options:
  • Fixed callback ordering so updateDVDOptions is called on format selection
  • DVD aspect ratio selector now appears when DVD format is selected
  • DVD info display shows specs for NTSC and PAL formats
  • Works in both Simple and Advanced tabs

DVD options are now fully functional in the UI.
2025-11-29 19:53:47 -05:00