buymeacoffee.com/michaelna
A Python script for compressing MOV video files using FFmpeg with advanced compression settings and progress tracking.
- Compress MOV video files with customizable quality settings
- Support for high compression mode with optimized settings
- Two-pass encoding option for better compression results
- Real-time progress bar during compression
- Handles large video files (4GB+)
- Detailed compression statistics output
- Python 3.x
- FFmpeg
- Clone this repository:
git clone https://github.com/YOUR_USERNAME/video-compressor.git
cd video-compressor- Install the required Python packages:
pip install tqdm- Ensure FFmpeg is installed on your system.
Basic compression:
python video_compressor.py input_video.movHigh compression mode:
python video_compressor.py input_video.mov --high-compressionTwo-pass encoding (for better compression):
python video_compressor.py input_video.mov --high-compression --two-pass- Default mode: CRF 23, medium preset, 128k audio
- High compression mode: CRF 35, veryslow preset, 64k audio, 720p scaling
- Supports custom quality settings through the VideoCompressor class
Run the test suite:
python -m unittest test_video_compressor.py test_high_compression.pyThis project is open source and available under the MIT License.