## Why Compress Video?
Video compression reduces file size while preserving perceived visual quality. An uncompressed 1-minute 4K clip can exceed **50 GB**; the same footage encoded with H.265 fits in under **500 MB** with no noticeable difference for most viewers.
Common use cases:
- Social media uploads (platform size limits).
- Web streaming (bandwidth constraints).
- Long-term storage in the cloud or on disk.
- Email and messaging delivery.
## Understanding Video Codecs in 2024
| Codec | Container | Efficiency | Compatibility | Speed |
|-------|-----------|------------|--------------|-------|
| **H.264 (AVC)** | MP4, MKV | High | Universal | Very fast |
| **H.265 (HEVC)** | MP4, MKV | ~50% better than H.264 | Broad (not all browsers) | Medium |
| **VP9** | WebM | High | Chrome, Firefox, YouTube | Medium |
| **AV1** | WebM, MP4 | ~30% better than H.265 | Growing fast | Slow |
> **Practical rule:** Use H.264 for maximum compatibility. Switch to H.265 or AV1 when file size is critical and you control the playback environment.
## Compress with FFmpeg (Command Line)
FFmpeg is the most powerful free video compression tool available.
### H.264 with CRF (Constant Rate Factor)
```bash
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset slow -c:a aac -b:a 128k output.mp4
```
- **CRF 18β23:** High quality (lower = better quality = larger file).
- **CRF 24β28:** Good web quality with significant size reduction.
- **preset:** `ultrafast` (worst compression), `slow` or `veryslow` (best compression, more time).
### H.265 for Maximum Size Reduction
```bash
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -preset slow -c:a aac -b:a 128k output.mp4
```
H.265 CRF 28 is roughly equivalent to H.264 CRF 23, but produces files ~50% smaller.
### Scale Down Resolution
Reducing 4K to 1080p dramatically cuts file size:
```bash
ffmpeg -i input_4k.mp4 -vf scale=1920:1080 -c:v libx264 -crf 22 output_1080p.mp4
```
### AV1 for Future-Proof Compression
```bash
ffmpeg -i input.mp4 -c:v libaom-av1 -crf 30 -b:v 0 -c:a libopus -b:a 128k output.webm
```
AV1 encoding is slow but produces the smallest files. Use `-cpu-used 4` to speed it up at the cost of some efficiency.
## HandBrake: GUI-Based Compression
**HandBrake** is the go-to option if you prefer a graphical interface:
1. Open your video file.
2. Choose a preset: `Fast 1080p30` (web) or `HQ 1080p30 Surround` (high quality).
3. In the **Video** tab, adjust the **RF (Rate Factor):** 20β22 for H.264, 24β26 for H.265.
4. In **Audio**, set AAC at 128 kbps for web delivery.
5. Click **Start Encode**.
## Real-World Compression Benchmarks
| Source Video | Original Codec | Target Codec | Size Reduction |
|-------------|---------------|-------------|----------------|
| 4K RAW 5 min | ProRes 4444 (18 GB) | H.265 CRF 28 | β 280 MB (β98%) |
| 1080p H.264 10 min | H.264 CRF 18 (1.2 GB) | H.265 CRF 26 | β 250 MB (β79%) |
| GoPro 4K 1 min | H.265 (500 MB) | H.265 CRF 28 | β 120 MB (β76%) |
| Screen recording | H.264 (800 MB) | H.264 CRF 24 | β 150 MB (β81%) |
## Common Mistakes to Avoid
- **Re-compressing already compressed files:** each generation of lossy compression degrades quality. Always keep the original master.
- **Using fixed bitrate (CBR) instead of CRF:** CBR wastes space on static scenes and under-allocates bits on complex motion.
- **Ignoring audio:** excellent H.265 video with uncompressed WAV audio is still large. Convert audio to AAC 128 kbps or Opus 96 kbps.
- **Upscaling before compression:** scaling a 720p source to 1080p before encoding doesn't add quality β it adds file size.
## Online Tools for Quick Compression
For files under 500 MB without installing software:
| Tool | Limit | Notes |
|------|-------|-------|
| **Clideo** | 500 MB | Percentage-based compression |
| **Kapwing** | 250 MB | Also includes basic editing |
| **Adobe Express** | 1 GB (with account) | Adobe CC integration |
> β οΈ Online tools require uploading your file to external servers. For sensitive content, use FFmpeg or HandBrake locally.
## Conclusion
Smart video compression combines the right codec with the right CRF value for your target audience. H.264 CRF 22β24 is the universal starting point; H.265 CRF 26β28 when file size is critical; AV1 for future-proof archives. FFmpeg and HandBrake handle 99% of use cases for free.
Guide