Video Compressor.
Re-encode videos to H.265 for dramatically smaller files.

A Python script that re-encodes video files to H.265/HEVC — significantly smaller file sizes while maintaining the same visual quality.

Install
One-time setup
$brew install ffmpeg
$curl -O https://raw.githubusercontent.com/nimahejazi/video_compressor/main/compress_videos.py
or clone the repo
bash - video_compressor
$python3 compress_videos.py ~/Movies
[2/5] Compressing: holiday_footage.mov (3.2 GB, 12:34)
Overall [======== ] 2/5 ( 30.0%)
Current [=============== ] 74.3% (09:18/12:34) 8.4x
OK: 3.2 GB → 1.1 GB (saved 2.1 GB, 65.6%) → holiday_footage[comp].mp4
$_

Engineered for Focus

Safe by default

Originals stay untouched until each encoding is verified — and if the output isn't at least 5% smaller, it is discarded.

H.265 + hvc1

Re-encodes with libx265 and the hvc1 tag for full QuickTime and macOS compatibility.

--dry-run preview

Preview exactly what would be compressed without encoding anything.

Ready to optimize your workflow?

Takes less than 10 seconds to install.

python3 compress_videos.py ~/Movies --dry-run