Why Video Compression Matters
Raw or high-bitrate video files can be enormous — a single minute of 4K footage can exceed 1 GB. Whether you're uploading to a website, sharing over email, or storing footage on a limited drive, compressing your video is often essential. The good news: done correctly, compression is virtually invisible to the viewer.
This tutorial covers the core concepts and walks you through compression using two popular free tools: HandBrake and DaVinci Resolve.
Understanding the Basics of Video Compression
Codec vs. Container
A container (like .MP4, .MKV, or .MOV) is the wrapper that holds your video and audio data. A codec (like H.264, H.265/HEVC, or AV1) is the algorithm used to encode and compress that data. The codec choice is the single biggest factor in final file size and quality.
Bitrate
Bitrate is the amount of data used per second of video, typically measured in Mbps or Kbps. Higher bitrate = better quality and larger file. Compression is essentially the process of finding the lowest bitrate at which quality remains acceptable.
H.264 vs. H.265
H.265 (HEVC) delivers roughly the same visual quality as H.264 at about half the file size. However, H.265 requires more processing power to encode and may not be supported by all playback devices. For general use, H.264 is the most compatible choice. For storage or archival, H.265 is worth the trade-off.
Method 1: Compressing Video with HandBrake (Free, Windows & Mac)
- Download and install HandBrake from handbrake.fr — it's free and open-source.
- Open your video file using File > Open Source.
- Choose a preset – For most purposes, the "Fast 1080p30" or "HQ 1080p30 Surround" presets are excellent starting points.
- Select your codec – In the Video tab, choose H.264 (widely compatible) or H.265 (smaller files).
- Set the quality – Use the Constant Quality (RF) slider. RF 18–22 is a good range for H.264; RF 22–28 for H.265. Lower RF = higher quality and larger file.
- Choose your output folder and click Start Encode.
Tip: Use the Preview feature in HandBrake to check quality before encoding the entire file.
Method 2: Exporting Compressed Video from DaVinci Resolve
If you're editing your video in DaVinci Resolve, you can compress during export without needing a separate tool:
- Go to the Deliver page (the rocket icon at the bottom).
- Under Render Settings, choose Custom Export.
- Set Format to MP4 and Codec to H.264 or H.265.
- Under Quality, choose Restrict to and enter a target bitrate (e.g., 8 Mbps for 1080p, 20 Mbps for 4K).
- Click Add to Render Queue, then Render All.
Recommended Bitrate Settings by Resolution
| Resolution | H.264 Bitrate | H.265 Bitrate |
|---|---|---|
| 720p (HD) | 4–6 Mbps | 2–4 Mbps |
| 1080p (Full HD) | 8–12 Mbps | 4–6 Mbps |
| 4K (UHD) | 35–45 Mbps | 15–25 Mbps |
Common Mistakes to Avoid
- Re-compressing already compressed video – Every encode adds generation loss. Always work from the highest-quality source available.
- Using a bitrate that's too low – Fast motion and high-detail scenes need more bitrate. Test before batch processing.
- Ignoring audio compression – Audio can add significant file size. AAC at 128–192 Kbps is sufficient for most use cases.
- Downscaling unnecessarily – Reducing resolution hurts quality permanently. Try reducing bitrate first before scaling down.
Final Thoughts
Effective video compression is more about understanding your codec and bitrate settings than it is about the tool you use. HandBrake makes the process accessible for beginners, while DaVinci Resolve gives editors full control during export. Either way, with the right settings, you can cut file sizes dramatically with no visible quality loss.