The repository includes automated setup scripts for easy installation on different platforms.
Purpose: Automated setup for Windows systems
Usage: Double-click or run setup_windows.bat in Command Prompt
What it does:
- Checks if Python is installed and accessible
- Creates virtual environment (
.venv) if not exists - Activates virtual environment
- Upgrades pip to latest version
- Installs all dependencies from
requirements.txt - Displays usage instructions
Error handling:
- Verifies Python installation
- Checks virtual environment creation
- Validates dependency installation
- Provides helpful error messages
Purpose: Quick launcher for the application
Usage: Double-click or run run_windows.bat
What it does:
- Checks if virtual environment exists
- Activates virtual environment
- Launches PyQt6 GUI application
- Keeps window open if errors occur
Purpose: Automated setup for macOS and Linux systems
Usage: chmod +x setup_macos.sh && ./setup_macos.sh
What it does:
- Checks if Python 3 is installed
- Creates virtual environment using
python3 -m venv - Activates virtual environment
- Upgrades pip to latest version
- Installs all dependencies from
requirements.txt - Provides usage instructions including Makefile options
Error handling:
- Exits on any error (
set -e) - Verifies Python 3 availability
- Checks requirements.txt existence
- Clear error messages with installation hints
Purpose: Quick launcher for the application
Usage: ./run_macos.sh
What it does:
- Checks if virtual environment exists
- Activates virtual environment
- Launches PyQt6 GUI application
Windows:
# Download/clone repository
cd ffmpeg-gui-pyqt6
# Run setup (creates venv and installs dependencies)
setup_windows.bat
# Run application
run_windows.batmacOS/Linux:
# Download/clone repository
cd ffmpeg-gui-pyqt6
# Make scripts executable and run setup
chmod +x setup_macos.sh run_macos.sh
./setup_macos.sh
# Run application
./run_macos.shAfter initial setup, just use the run scripts:
Windows: Double-click run_windows.bat
macOS/Linux: ./run_macos.sh
"Python is not recognized"
- Install Python from python.org
- IMPORTANT: Check "Add Python to PATH" during installation
- Restart Command Prompt after installation
"Access is denied" on .bat files
- Right-click → "Run as administrator"
- Or adjust execution policies in PowerShell
Antivirus blocks scripts
- Add repository folder to antivirus exceptions
- Some antivirus software blocks .bat files by default
"Permission denied"
- Make scripts executable:
chmod +x *.sh - Check file permissions:
ls -la *.sh
"python3: command not found"
- Install Python 3:
brew install python(macOS) orsudo apt install python3(Linux) - Use full path:
/usr/bin/python3instead ofpython3
Virtual environment creation fails
- Install venv module:
sudo apt install python3-venv(Linux) - Use alternative:
python3 -m pip install virtualenv
If scripts don't work, you can always use manual installation:
# Create virtual environment
python -m venv .venv # Windows
python3 -m venv .venv # macOS/Linux
# Activate virtual environment
.venv\Scripts\activate.bat # Windows
source .venv/bin/activate # macOS/Linux
# Install dependencies
pip install -r requirements.txt
# Run application
python GUI_pyqt6_WINFF.pyThe scripts complement the existing build system:
Development workflow:
setup_windows.bator./setup_macos.sh- Initial setuprun_windows.bator./run_macos.sh- Daily usagemake build-macosor build process - Create executables
Alternative Makefile usage (macOS/Linux):
make venv install # Equivalent to setup script
make run-pyqt # Equivalent to run script
make build-macos # Additional build functionality