VP8

On this page 7

VP8 is a lossy, block-based video codec originally developed by On2 Technologies and released by Google as an open, royalty-free format in 2010. Among video codecs, it occupies the same generation as H.264: it compresses 8-bit 4:2:0 video with motion-compensated prediction, a small integer transform and arithmetic entropy coding, and it became the first video format of the WebM container and a mandatory codec in WebRTC.

Its importance is as much strategic as technical. VP8 gave browsers and real-time communication platforms a freely implementable alternative to patent-pooled formats, and the design lessons learned from it fed directly into VP9 and later AV1.

How VP8 compresses video

VP8 divides each frame into 16×16 macroblocks, predicts every block from already decoded pixels and codes only the residual difference. Prediction is either intra prediction from neighboring pixels in the same frame or inter prediction from a reference frame using motion vectors with quarter-pixel precision for luma.

The residual is transformed with a 4×4 integer DCT approximation. The DC coefficients of the sixteen luma subblocks are gathered into an extra block and transformed again with a Walsh-Hadamard transform, which squeezes out the remaining correlation in flat areas. Quantized coefficients are then coded with a boolean arithmetic coder that adapts probabilities per frame.

An in-loop deblocking filter smooths block edges before a frame is stored as a reference, so later frames predict from cleaner pixels. The bitstream is documented in RFC 6386, which publishes the decoding process together with the reference source code of the libvpx library.

The table below summarizes the main building blocks of the VP8 bitstream and the role each one plays.

ToolVP8 implementationPurpose
Block structure16×16 macroblocks, 4×4 subblocksUnit of prediction and coding
Intra prediction4 luma modes at 16×16, 10 modes at 4×4Predicts texture within a frame
Motion vectorsQuarter-pixel luma, six-tap interpolationTracks movement between frames
Transform4×4 integer DCT plus Walsh-HadamardConcentrates residual energy
Entropy codingBoolean arithmetic coderRemoves statistical redundancy
Loop filterNormal or simple deblockingReduces blocking artifacts
Core coding tools in VP8

Reference frames instead of B-frames

VP8 has no bidirectional B-frames. Every frame is either a keyframe or an interframe that predicts only from the past, which keeps decoding order equal to display order and minimizes latency. To compensate, VP8 maintains three reference buffers that the encoder can update selectively.

  • The last frame holds the most recently decoded picture and serves ordinary frame-to-frame prediction.
  • The golden frame stores an older, high-quality picture, useful for backgrounds that reappear after occlusion.
  • The alternate reference frame can be a filtered, invisible frame that is decoded but never displayed, giving the encoder a denoised future-looking reference.

This design captures part of the benefit of B-frames through the alternate reference mechanism while keeping a simple, strictly forward decoding pipeline. The following table compares the three buffers.

BufferTypical contentMain benefit
Last framePrevious decoded frameEfficient prediction of steady motion
Golden framePeriodic high-quality frameRecovery of revealed background
Alternate referenceTemporally filtered hidden frameGains similar to B-frames
VP8 reference buffers

VP8 delivers compression efficiency roughly comparable to H.264 Baseline, while H.264 High Profile usually achieves the same quality at a noticeably lower bitrate. The gap depends heavily on encoder tuning, content and speed settings, so published comparisons vary and should be read with care.

Its successors widened the toolset considerably. VP9 added larger blocks up to 64×64, more transforms and higher bit depths, and AV1 extended that further. The table places VP8 among its neighbors in the video codecs family.

CodecLicensing modelLargest blockRelative efficiency
VP8Royalty-free, BSD-style license16×16Baseline reference point
H.264Patent pool licensing16×16Similar to better in High Profile
VP9Royalty-free64×64About 30-50% better than VP8
AV1Royalty-free128×128Substantially better than VP9
VP8 and neighboring codecs

VP8 supports only 8-bit 4:2:0 sampling and frame dimensions up to 16383 pixels per side. It has no native HDR, 10-bit or 4:4:4 support, which rules it out for mastering and high-end delivery, where formats such as ProRes or modern delivery codecs are used.

Where VP8 is used today

VP8 survives mainly in real-time communication. RFC 7742 makes VP8 and H.264 the mandatory-to-implement codecs for WebRTC, so every compliant browser can decode it, and many video conferencing services use it as a fallback for broad interoperability.

Its features suit interactive traffic well. Error resilience options, temporal scalability layers for simulcast and the absence of B-frames keep end-to-end delay low. Token partitions, up to eight per frame, allow multithreaded decoding on modest hardware.

The decision table below shows when VP8 remains a reasonable choice and when a newer format fits better.

SituationRecommended codecReason
Browser video call with legacy clientsVP8Universal WebRTC support
Low-power embedded deviceVP8Low decoding complexity
On-demand streaming at scaleVP9 or AV1Large bandwidth savings
HDR or 10-bit contentVP9 Profile 2 or AV1VP8 is limited to 8-bit
Maximum device compatibility for filesH.264 in MP4Ubiquitous hardware decoding
Choosing VP8 or an alternative

Limitations and common misconceptions

The most frequent misconception is that VP8 and WebM are the same thing. WebM is a container based on Matroska, while VP8 is the codec inside it; WebM files may also carry VP9 or AV1 video with Vorbis or Opus audio.

A second limitation concerns hardware acceleration. Many phones and chips decode VP8 in hardware, but hardware encoding is far less common than for H.264, so software encoding with libvpx can consume significant CPU at high resolutions. A real-time encoding speed setting trades compression for throughput.

Finally, “royalty-free” was contested early on. Patent holders were invited to form a pool, and Google signed a cross-license agreement with MPEG LA in 2013 that resolved the main dispute, which is why VP8 is now generally treated as safe to implement without royalties.

In plain words

VP8 is a set of rules for shrinking video so it can travel quickly over the internet. Instead of sending every picture in full, it sends one complete picture now and then and, in between, only the parts that changed.

Its big selling point is that anyone may use it for free. That is why web browsers adopted it for video calls: when two people connect through a browser, both sides can almost always understand VP8, even if newer formats would squeeze the picture a little better.

A real-world example

A telehealth provider runs browser-based consultations between doctors and patients who join from old laptops, budget tablets and hospital workstations. Its media server negotiates codecs through WebRTC and keeps VP8 enabled as the common baseline for every participant.

For a typical consultation the system sends 720p video at about 1.2 Mbps with three temporal layers. When a patient on a weak mobile connection joins, the server forwards only the lowest layer at roughly 15 frames per second instead of re-encoding the stream.

The result is that calls connect reliably on every device, delay stays well under the threshold where conversation feels awkward, and the provider avoids per-device codec licensing. Newer endpoints use VP9 or AV1 when both sides support it, but VP8 remains the dependable fallback.