Back to Blog
tips

Video Codec Guide: H.264, H.265, VP9, and AV1 Explained

VC
VideoConvert Team
March 10, 20268 min read

Video Codec Guide: H.264, H.265, VP9, and AV1 Explained

A video codec compresses and decompresses video data. The codec determines file size, quality, compatibility, and how long encoding takes. Choosing the right one matters — the wrong choice means larger files, slower uploads, or playback failures on older devices.

Here is a plain-language breakdown of the four codecs you will encounter most often.

H.264 (AVC) — The Universal Standard

Full name: Advanced Video Coding Container: MP4, MKV, MOV Released: 2003

H.264 is the most widely supported video codec in history. Every device made in the last 15 years plays it: iPhones, Android phones, smart TVs, game consoles, browsers, and every media player.

When to use H.264:

  • Uploading to YouTube, TikTok, or Instagram
  • Sharing videos with other people
  • Storing personal recordings
  • Any situation where compatibility matters most
  • Typical file size: A 1-hour 1080p video at high quality is roughly 4–8 GB.

    Quality setting: CRF 18–23 for high quality. Lower CRF = larger file, better quality.

    H.264 is the safe default. If you are unsure which codec to use, use H.264 in an MP4 container.

    H.265 (HEVC) — Better Compression, Fewer Devices

    Full name: High Efficiency Video Coding Container: MP4, MKV, MOV Released: 2013

    H.265 delivers the same visual quality as H.264 at roughly half the file size. A 4 GB H.264 file becomes approximately 2 GB in H.265 with identical quality.

    The tradeoff is compatibility. Older Android phones, some smart TVs, and many web browsers cannot play H.265 without hardware support. Safari and Apple devices play H.265 well. Chrome and Firefox require hardware decoding.

    When to use H.265:

  • 4K video storage where file size matters
  • Apple-to-Apple file sharing (iPhone, Mac, Apple TV)
  • Archival where storage efficiency is the priority
  • Avoid H.265 when:

  • Uploading to social media (transcode to H.264 anyway)
  • Sharing with unknown recipients (unknown device compatibility)
  • Streaming to older smart TVs
  • VP9 — Google's Royalty-Free Alternative

    Full name: VP9 Container: WebM, MKV Released: 2013

    VP9 is Google's answer to H.265: similar compression efficiency, but royalty-free. No patent licensing fees. This makes it the codec of choice for web video — YouTube uses VP9 extensively for HD streams.

    VP9 is used almost exclusively in WebM containers for web embedding.

    When to use VP9 (WebM):

  • Embedding video on websites
  • HTML5 video elements
  • Background videos on web pages
  • Reducing bandwidth costs for web delivery
  • Compatibility: Chrome, Firefox, Edge, and Opera play VP9 natively. Safari does not (Apple prefers H.265). iOS devices require a fallback format.

    AV1 — The Future Codec

    Full name: AOMedia Video 1 Container: WebM, MKV, MP4 (ISOBMFF) Released: 2018

    AV1 is the next generation: up to 50% better compression than H.264 at equivalent quality. Netflix and YouTube use AV1 for bandwidth reduction at scale.

    The catch is encoding speed. AV1 encoding is extremely slow — 10–50x slower than H.264. A video that takes 2 minutes to encode in H.264 might take 40 minutes in AV1. Hardware encoders (Intel Arc, newer AMD and Nvidia GPUs) reduce this significantly, but software AV1 encoding remains impractical for most users.

    When to use AV1:

  • Streaming platforms with encoding infrastructure
  • High-volume web video delivery where bandwidth costs matter
  • Future-proofing archival with modern encoding hardware
  • When to avoid AV1:

  • Normal user workflows — encoding is prohibitively slow without hardware support
  • Distribution to diverse devices — older hardware cannot decode AV1
  • Quick Comparison

    | Codec | Quality | File Size | Compatibility | Encode Speed | |-------|---------|-----------|---------------|--------------| | H.264 | Good | Larger | Universal | Fast | | H.265 | Better | 50% smaller | Good (modern) | Medium | | VP9 | Better | 50% smaller | Web browsers | Medium | | AV1 | Best | 50–70% smaller | Newer devices | Slow |

    Which Codec Does VideoConvert Use?

    VideoConvert encodes using FFmpeg and defaults to H.264 (libx264) for MP4 output — the universally compatible choice. WebM output uses VP9 (libvpx-vp9).

    For Pro users, you can control quality via CRF settings. The codec selection is handled automatically based on your target format:

  • MP4 → H.264
  • WebM → VP9
  • MKV → H.264 (or preserves source codec when remuxing)
  • MOV → H.264
  • This ensures your converted files play everywhere without manual codec configuration.

    Ready to Try VideoConvert?

    Download for free and start converting your videos today.