openrees
← Back to Blog
TechnicalMarch 18, 20269 min read

The Complete Guide to Video Compression and Export Formats

MP4, WebM, H.264, H.265, VP9 — confused? This plain-English guide explains video formats, codecs, and compression so you can export the right file every time.

Why Video Compression Matters

A single minute of uncompressed 1080p video at 30fps takes up approximately 10.5 GB of storage. A 10-minute recording would be over 100 GB. Obviously, this is impractical for storage, sharing, or uploading. Video compression solves this by reducing file size by 95-99% while maintaining visual quality that's indistinguishable from the original to the human eye.

Understanding the basics of video compression helps you make better export decisions, avoid quality degradation, and ensure your videos are compatible with the platforms where you'll share them.

Containers vs. Codecs: The Two Layers

The most important concept to understand is the difference between a container and a codec:

TermWhat It IsAnalogy
Container (format)The "wrapper" that holds video, audio, and metadata streams togetherLike a shipping box that holds multiple items
CodecThe algorithm that compresses and decompresses the actual video/audio dataLike the packing method used inside the box

Common Containers

  • MP4 (.mp4) — The universal standard. Works everywhere: every browser, every OS, every device, every social media platform. If in doubt, export as MP4.
  • WebM (.webm) — Google's open-source container. Excellent quality-to-size ratio. Supported by Chrome, Firefox, and Edge, but not Safari on older iOS devices.
  • MOV (.mov) — Apple's container. Preferred in the Apple ecosystem (Final Cut Pro, QuickTime). Less universal than MP4.
  • MKV (.mkv) — Matroska container. Extremely flexible, supports virtually any codec. Popular for archiving but not for web sharing.
  • AVI (.avi) — Legacy Microsoft format. Large files, limited codec support. Avoid for modern use.

Common Video Codecs

  • H.264 (AVC) — The workhorse of online video. Used by YouTube, Netflix, Zoom, and virtually every screen recorder. Excellent hardware support means fast encoding on almost any computer. Best compatibility-to-quality ratio.
  • H.265 (HEVC) — The successor to H.264. Provides ~40% better compression at the same quality, but requires more CPU power to encode and has licensing complexities. Not universally supported in browsers.
  • VP8/VP9 — Google's open-source codecs used in WebM containers. VP9 is comparable to H.265 in quality. Used by YouTube internally for streaming. Good browser support in Chrome and Firefox.
  • AV1 — The newest open-source codec from the Alliance for Open Media. Up to 30% better compression than VP9. Slowly gaining hardware support. The future standard but still maturing.

Choosing the Right Export Settings

Here's a practical decision matrix for common scenarios:

ScenarioRecommended FormatCodecResolutionBitrate
YouTube uploadMP4H.2641080p or 4K8-12 Mbps (1080p) / 35-45 Mbps (4K)
LMS upload (Canvas, Blackboard)MP4H.2641080p5-8 Mbps
Email attachmentMP4H.264720p2-4 Mbps
Social media (Instagram, TikTok)MP4H.2641080×1920 (9:16)6-10 Mbps
Archival/backupMKV or MP4H.265 or VP9OriginalHigh (15+ Mbps)

Understanding Bitrate

Bitrate is the amount of data used per second of video, measured in Megabits per second (Mbps). Higher bitrate = better quality but larger file size. The relationship isn't linear — doubling the bitrate doesn't double the quality. There are diminishing returns.

For screen recordings (which have less visual complexity than live-action video), you can use lower bitrates without visible quality loss. Text and static slides compress very efficiently. Fast-moving content (like scrolling code or video playback) requires higher bitrates to maintain clarity.

Common Export Mistakes

  • Upscaling: Recording at 720p and exporting at 4K doesn't improve quality — it just increases file size with no benefit.
  • Over-compression: Using extremely low bitrates to save space results in blocky, pixelated video, especially in areas with text or fine detail.
  • Wrong aspect ratio: Exporting at a different aspect ratio than you recorded causes black bars or distortion.
  • Double compression: Importing an already-compressed video into an editor and re-exporting it compounds quality loss. Each encode cycle degrades quality slightly.

How Browser-Based Recorders Handle Export

Modern browser-based recording tools use the MediaRecorder API, which leverages your browser's built-in encoding capabilities. Most browsers encode using VP8 (in WebM containers) or H.264 (in MP4 containers), with the codec selection depending on the browser and platform. Tools like openrees handle this automatically, selecting the optimal format for your browser and exporting standard MP4 files that are universally compatible.