Skip to content

Video codecs overview

current

A video codec is a compression format: it defines the bitstream and how a decoder turns it back into pictures. The encoder you run (x264, SVT-AV1, …), the container you mux into, and the player that decodes it are separate choices, and each one can limit what actually works.

CodecStandardised byUse it today forMain encoders
AVC / H.264ITU-T/ISO, 2003Anything that has to play everywhere; low-cost live and hardware workflowsx264, hardware encoders
HEVC / H.265ITU-T/ISO, 2013UHD/HDR to TVs, phones and Apple devices; Blu-ray/broadcast ecosystemsx265, hardware encoders
VP8On2/Google, 2010Legacy WebM and WebRTC compatibility onlylibvpx
VP9Google, 2013Royalty-free web video where AV1 decode is missing or too slowlibvpx
AV1AOMedia, 2018Royalty-free web and streaming delivery, high-efficiency personal and archive encodesSVT-AV1, aomenc, rav1e, hardware encoders
VVC / H.266ITU-T/ISO, 2020Broadcast systems that mandate it, and evaluation; little consumer playback supportVVenC, uvg266
AV2AOMedia, 2026Research and evaluation; no players or hardware yetAVM reference software
AVS3China AVS working groupChinese broadcast/UHD ecosystemsuavs3e

For new web delivery the usual ladder is AV1 with an H.264 fallback, with VP9 or HEVC in between where the audience’s devices need it. Compression efficiency rises roughly in the order AVC → VP9/HEVC → AV1 → VVC → AV2, but the encoder and its speed setting matter as much as the format.

CodecUse it for
FFV1Lossless preservation masters (IETF RFC 9043), usually in Matroska
ProResEditing and interchange intermediates; FFmpeg has its own ProRes encoders
Ut VideoFast lossless capture and editing intermediates
VC-1Decoding old Windows Media, HD DVD and Blu-ray material
TheoraExisting Ogg workflows only
DSV and DSV2Hobby wavelet codecs; experimentation only
ECMJVET’s beyond-VVC exploration model; research only

Start from the decoders you must reach, not from compression efficiency:

  1. Playback targets. Browsers, TVs, phones, editing software. Check video codec support and fall back to H.264 for anything you can’t verify.
  2. Profile, bit depth and chroma. “Supports HEVC” or “supports AV1” usually means 8/10-bit 4:2:0. 4:2:2, 4:4:4 and 12-bit streams are often software-only.
  3. Decode cost. Software AV1 or HEVC decode can drain a phone battery or drop frames on old PCs; hardware decode support matters for mobile audiences.
  4. Container and HDR. The codec has to be mapped into the container you need, and HDR metadata has to survive encoding and muxing. See containers and HDR.
  5. Licensing. AVC, HEVC and VVC are covered by patent pools; AV1, VP8 and VP9 were released royalty-free, although third-party pools also claim patents against AV1 and VP9.

To see what an existing file actually contains:

Terminal window
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,profile,level,pix_fmt,color_transfer -of default=nw=1 input.mkv

For a guided decision, see choosing a codec.