Commit Graph

86 Commits

Author SHA1 Message Date
Stu
fa3f4e4944 Note blocker: video load not firing 2025-12-04 07:29:17 -05:00
Stu
e1b1f0bb94 Fix build: import net/url 2025-12-04 07:16:50 -05:00
Stu
3f43b3fe4b Rename app/window to VT Player 2025-12-04 07:10:18 -05:00
Stu
b7b5788938 Harden drag/drop path handling and user feedback 2025-12-04 07:08:12 -05:00
Stu
ffca39811a Improve drag/drop path handling and landing layout 2025-12-04 06:59:08 -05:00
Stu
e749a32926 Remove legacy compare/convert hooks 2025-12-04 06:40:00 -05:00
Stu
66c79cee91 Remove duplicate compare/queue handlers 2025-12-04 06:28:06 -05:00
Stu
f13f13d05b Doc: add compare sync tasks 2025-12-04 06:12:23 -05:00
Stu
7fe4f78b94 Add compare view and drop-to-play only handler 2025-12-04 06:12:02 -05:00
Stu
d5458f7050 Simplify player view and enable drop-to-play 2025-12-04 06:04:35 -05:00
Stu
5cc42c9ca0 Update VT Player done/todo docs 2025-12-04 06:04:26 -05:00
Stu
eaea93e0e6 Initial import for VT Player 2025-12-04 05:03:02 -05:00
71a282b828 Add Compare module and Target File Size encoding feature
This commit implements two new features:

1. Compare Module:
   - New UI module for side-by-side video comparison
   - Loads two video files and displays detailed metadata comparison
   - Shows format, resolution, codecs, bitrates, frame rate, color info, etc.
   - Accessible via GUI module button or CLI: videotools compare <file1> <file2>
   - Added formatBitrate() helper function for consistent bitrate display

2. Target File Size Encoding Mode:
   - New bitrate mode "Target Size" for convert module
   - Allows users to specify desired output file size (e.g., "25MB", "100MB", "8MB")
   - Automatically calculates required video bitrate based on:
     * Target file size
     * Video duration
     * Audio bitrate
     * Container overhead (3% reserved)
   - Implemented ParseFileSize() to parse size strings (KB, MB, GB)
   - Implemented CalculateBitrateForTargetSize() for bitrate calculation
   - Works in both GUI convert view and job queue execution

Additional changes:
- Updated printUsage() to include compare command
- Added compare button to module grid with pink color
- Added compareFile1 and compareFile2 to appState
- Consistent "Target Size" naming throughout (UI and code)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 20:14:31 -05:00
6a2f1fff3f Add target file size feature and fix multiple encoding issues
- Add TargetFileSize mode with automatic bitrate calculation
- Add CalculateBitrateForTargetSize and ParseFileSize utility functions
- Fix NVENC hardware encoding (remove incorrect -hwaccel cuda flag)
- Fix auto-detection override when hardware accel set to none
- Fix 10-bit pixel format incompatibility (change to 8-bit yuv420p)
- Add enhanced video metadata display (PAR, color space, GOP size, audio bitrate, chapters)
- Improve error reporting with FFmpeg stderr capture and exit code interpretation
- Add interpretFFmpegError function for human-readable error messages
2025-12-03 10:00:14 -05:00
292da5c59e 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
220c273bcf Plan Windows compatibility for dev14
Add comprehensive Windows support roadmap:
- Cross-compilation and build system
- Platform-specific path handling
- Windows GPU detection (NVENC/QSV/AMF)
- Installer and distribution
- Testing checklist

Goal: Make VideoTools available for Jake and Windows users
2025-12-02 18:16:30 -05:00
50163f6ea5 Release v0.1.0-dev12: Advanced encoding and compatibility
Major Features:
- Automatic hardware encoder detection (NVENC/QSV/VA-API)
- iPhone compatibility with H.264 profile/level support
- Dual deinterlacing methods (bwdif + yadif)
- 10-bit encoding for 10-20% size reduction
- Browser desync fix with genpts and CFR enforcement
- Audio normalization (stereo + 48kHz)
- Extended resolution support (8K)
- Black bar cropping infrastructure

Technical Improvements:
- Automatic best encoder selection
- VFR to CFR conversion prevents playback issues
- Backward compatible with legacy settings
- Comprehensive encoding decision logging

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 18:12:50 -05:00
50f2bc8ff6 Stop tracking built binary 2025-11-30 03:09:35 -05:00
e8ae7b745f Update DONE for dev11 and outline dev12 plan 2025-11-30 02:46:45 -05:00
81daccde60 Track current convert filenames to label UI correctly 2025-11-30 01:13:06 -05:00
cd3a9dcb68 Return from queue to last module when opened in-context 2025-11-30 01:09:52 -05:00
26c4af25af Count active direct convert in main menu queue label 2025-11-30 01:07:20 -05:00
14de3d494d Refresh queue view during direct conversion progress 2025-11-30 01:06:00 -05:00
c5124e4b29 Skip cover art for DVD targets to avoid mux errors 2025-11-30 01:02:48 -05:00
cf700b2050 Include direct convert in queue totals 2025-11-30 01:00:05 -05:00
58773c509c Track direct conversion progress in stats and queue 2025-11-30 00:58:46 -05:00
d71a50eff1 Clarify direct conversion in stats and queue list 2025-11-30 00:52:26 -05:00
846cd64419 Defer queue start until direct convert finishes 2025-11-30 00:50:54 -05:00
e0e7c33445 Preserve queue scroll and show active conversion inline 2025-11-30 00:48:56 -05:00
0116b53479 Show active direct conversion in stats and queue view 2025-11-30 00:40:33 -05:00
e094872fce Allow queueing while a conversion is in progress 2025-11-30 00:37:14 -05:00
a345b5a457 Fix DVD target option ordering for direct and queued converts 2025-11-30 00:34:32 -05:00
c85fd8503e Align queued DVD jobs with direct convert settings 2025-11-30 00:29:05 -05:00
c237cb8a8e Fix queue scroll jump and DVD format codec selection 2025-11-30 00:15:04 -05:00
54eab7d800 Enforce DVD codecs and targets for mpg outputs 2025-11-30 00:05:40 -05:00
64ac00b881 Remove accidental build artifacts 2025-11-30 00:01:35 -05:00
1187a77f43 Fix convert layout stacking and cgo build 2025-11-30 00:01:06 -05:00
704ed38fcd Prevent simultaneous conversions - enforce queue-only mode when queue is running
Implements mutual exclusion between 'Convert Now' and queue processing:

Behavior:
- If queue is running: 'Convert Now' button is DISABLED
- If user tries to click 'Convert Now' while queue runs: Shows info dialog
  with message and auto-adds video to queue instead
- Only one conversion method active at a time

This prevents:
- Multiple simultaneous FFmpeg processes competing for system resources
- Confusion about which conversion is running
- Queue and direct conversion interfering with each other

When queue is active:
- 'Convert Now' button: DISABLED (grey out)
- 'Add to Queue' button: ENABLED (highlighted)
- Clear UI signal: Only use queue mode for batch operations

Perfect for batch workflows where user loads multiple videos
and expects them all to process sequentially in the queue,
not spawn random direct conversions.
2025-11-29 20:36:13 -05:00
b3db00c533 Auto-start queue when adding jobs from Convert module
Implements automatic queue processing when jobs are added from the Convert
module via the 'Add to Queue' button:

Features:
- IsRunning() method added to queue package to check processing status
- 'Add to Queue' button now auto-starts queue if not already running
- Eliminates need to manually open Queue view and click 'Start Queue'
- Seamless workflow: Add video → Queue → Auto-starts conversion

Before:
1. Load video
2. Click 'Add to Queue'
3. Click 'View Queue'
4. Click 'Start Queue'

After:
1. Load video
2. Click 'Add to Queue' (auto-starts!)
3. Load next video
4. Click 'Add to Queue' (already running)

Perfect for batch operations where user loads multiple videos and expects
them to start encoding immediately.
2025-11-29 20:31:52 -05:00
f306cf32e6 Add batch settings management UI for multi-video conversions
Implements clear batch settings control for converting multiple videos:

Features:
- Settings persistence: All conversion settings automatically persist across videos
- Clear UI messaging: Explains that settings carry over between videos
- Reset button: One-click ability to reset all settings to defaults
- Batch workflow: Load video → set format/quality once → convert multiple videos

How it works:
1. User loads first video and configures settings (format, quality, codecs, etc)
2. Settings are stored in state.convert and persist across video loads
3. User can load additional videos - settings remain the same
4. When converting multiple videos, all use the same settings
5. User can change settings anytime - affects all subsequent videos
6. Reset button available to restore defaults if needed

This eliminates the need to reconfigure every video while allowing:
- Batch processing with same settings
- Individual video settings override when needed
- Clear visual indication of what's happening

Perfect for the user's workflow of converting 5 European videos to
DVD-NTSC format - set once, convert all 5!
2025-11-29 20:30:39 -05:00
eab41057aa Implement DVD format FFmpeg codec selection and settings
Critical fix: When a DVD format (NTSC or PAL) is selected, now properly
override the video and audio codec to use DVD-compliant standards:

Video:
- Forces MPEG-2 codec (mpeg2video)
- NTSC: 6000k bitrate, 9000k max, gop=15
- PAL: 8000k bitrate, 9500k max, gop=12

Audio:
- Forces AC-3 codec for DVD container compatibility
- 192 kbps bitrate
- 48 kHz sample rate (DVD standard)
- Stereo channels (2)

This ensures that selecting a DVD format produces DVDStyler-compatible
MPEG files without codec errors. Previously, the code was using the
default H.264 + AAC, which caused 'unsupported audio codec' errors
when trying to write to MPEG container.

Fixes the issue where DVD conversions were failing with:
  'Unsupported audio codec. Must be one of mp1, mp2, mp3, 16-bit pcm_dvd,
   pcm_s16be, ac3 or dts.'
2025-11-29 20:28:12 -05:00
684dc961e8 Fix Fyne threading error by using async Do() instead of DoAndWait()
The setContent function was calling fyne.DoAndWait() from the main goroutine,
which created a deadlock. Changed to use fyne.Do() (asynchronous) to properly
marshal UI updates without blocking.

This resolves the error:
  'fyne.Do[AndWait] called from main goroutine'

The async approach is correct here since we don't need to wait for the
content update to complete before continuing.
2025-11-29 20:25:57 -05:00
47f07e3447 Add comprehensive DVD conversion testing guide with step-by-step instructions 2025-11-29 20:22:21 -05:00
2ba8c07990 Add comprehensive update summary for latest improvements 2025-11-29 20:17:52 -05:00
5d22bc306c Add comprehensive installation system with install.sh and INSTALLATION.md
The new installation system provides a painless, one-command setup for all users:

install.sh Enhancements:
- 5-step installation wizard with visual progress indicators
- Auto-detects bash/zsh shell and updates rc files appropriately
- Automatically adds PATH exports for system-wide or user-local installation
- Automatically sources alias.sh for convenience commands
- Clear instructions for next steps
- Better error messages and validation
- Supports both sudo and non-sudo installation paths
- Default to user-local installation (no sudo required)

INSTALLATION.md Documentation:
- Comprehensive installation guide for all user types
- Multiple installation options (system-wide vs user-local)
- Detailed troubleshooting section
- Manual installation instructions for advanced users
- Platform-specific notes (Linux, macOS, Windows WSL)
- Uninstallation instructions
- Verification steps

README.md Updates:
- Updated Quick Start section to reference install.sh
- Added INSTALLATION.md to documentation index
- Clear distinction between user and developer setup

This enables users to set up VideoTools with:
  bash install.sh
  source ~/.bashrc
  VideoTools

No manual shell configuration needed!
2025-11-29 20:17:18 -05:00
d327d7f65e Improve queue system reliability and add auto-resolution for DVD formats
This commit includes several improvements:

Queue System Enhancements:
- Improved thread-safety in Add, Remove, Pause, Resume, Cancel operations
- Added PauseAll and ResumeAll methods for batch control
- Added MoveUp and MoveDown methods to reorder queue items
- Better handling of running job cancellation with proper state management
- Improved Copy strategy in List() to prevent race conditions

Convert Module Enhancement:
- Auto-set resolution to 720×480 when NTSC DVD format selected
- Auto-set resolution to 720×576 when PAL DVD format selected
- Auto-set framerate to 29.97fps (30) for NTSC, 25fps for PAL
- Added DVD resolution options to resolution selector dropdown

Display Server Improvements:
- Auto-detect Wayland vs X11 display servers in player controller
- Conditionally apply xdotool window placement (X11 only)

UI Improvements:
- Added Pause All, Resume All, and queue reordering buttons
- Fixed queue counter labeling (completed count display)
2025-11-29 20:07:35 -05:00
3f4ad59fcd Update README with comprehensive project overview
Completely rewrote README.md to reflect current state:

New Contents:
  • Professional video processing suite description
  • Key features (DVD-NTSC/PAL, batch processing, smart features)
  • Quick start (one-time setup and run)
  • Step-by-step DVD creation workflow
  • Documentation guide
  • System architecture overview
  • Build and run commands
  • Troubleshooting guide
  • Professional use cases
  • Quality specifications for NTSC and PAL

Highlights:
  • DVDStyler compatible (no re-encoding)
  • PS2 compatible
  • Professional MPEG-2 encoding
  • AC-3 Dolby Digital audio
  • Batch processing support
  • Region-free format

Perfect entry point for new users!
2025-11-29 19:55:11 -05:00
0bd704d7dc Add comprehensive Build and Run guide
Complete documentation for building and running VideoTools:

Sections:
  • Quick start (2-minute setup)
  • Making VideoTools permanent (bash/zsh setup)
  • Script documentation (what each does)
  • Build requirements and versions
  • Troubleshooting guide
  • Development workflow
  • DVD encoding complete workflow
  • Performance notes
  • Production deployment guide
  • Getting help and reporting issues

Easy setup:
  source scripts/alias.sh
  VideoTools

That's all users need to run the application!
2025-11-29 19:54:13 -05:00
ce60508480 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
24a76dfaf1 Add comprehensive DVD User Guide for end users
User-friendly guide for creating DVD-compliant videos with VideoTools.

Contents:
✓ Quick start (5-minute guide)
✓ DVD format specifications (NTSC and PAL)
✓ Validation message explanations
✓ Aspect ratio guide with selection help
✓ Recommended settings for Simple and Advanced modes
✓ Complete workflow from video to DVD disc
✓ Troubleshooting section with solutions
✓ Pro tips for batch processing and testing
✓ Detailed example: converting home video to DVD
✓ Pre-encoding checklist

Features:
- Written for non-technical users
- Clear step-by-step instructions
- Explains all technical terms
- Practical examples and use cases
- Links to technical documentation
- Common problems and solutions

Perfect for users who want to:
- Create DVDs from home videos
- Distribute videos professionally
- Archive content on physical media
- Author discs with DVDStyler

🤖 Generated with Claude Code
2025-11-29 19:39:59 -05:00