VP8 vs VP9 video: Codec differences

September 20, 2024
7 Min
Video Education
Jump to
Share
This is some text inside of a div block.

What is a video codec?

A video codec (short for coder-decoder) is a technology used to compress and decompress digital video files. The main purpose of a video codec is to reduce the file size of a video while maintaining quality, making it easier to store, transmit, and stream video content over networks. Codecs work by using algorithms to remove redundant or non-essential data, allowing for efficient video encoding and playback.

How video codecs work?

When a video is recorded, it’s raw and uncompressed, resulting in large file sizes. A video codec compresses this data by encoding the video file into a more compact format for storage or transmission. When the video is played back, the codec decodes the compressed data and reconstructs the video as closely as possible to the original quality.

Video codecs perform this process in two main stages:

  • Encoding: Compressing the video file to reduce size.
  • Decoding: Decompressing the video to play it on various devices.
How does video codec works?


Some of the most widely used codecs include H.264 (AVC), H.265 (HEVC), VP8, and VP9. In this blog, we’ll focus on VP8 and VP9, comparing their features to help you decide which codec is the best fit for your needs.

VP8 and VP9 has a significant impact on video quality, compression, and performance. Developed by Google, both codecs are part of the WebM project, designed to provide efficient compression for web videos. Despite their shared origins, VP8 and VP9 have distinct differences that make them suitable for different use cases.

What is VP8?

Released in 2010, VP8 was developed as an open alternative to proprietary codecs like H.264, addressing the demand for a royalty-free video compression standard. As the primary codec for the WebM container format, VP8 quickly gained traction across various platforms, including YouTube and other streaming services. It uses a block-based motion compensation architecture to effectively reduce file sizes while maintaining high video quality, making it especially suitable for online video streams under limited bandwidth conditions.

The codec's efficient encoding capabilities and support for lower resolutions have made it a popular choice for web-based applications, such as WebRTC, where real-time video communication is essential. Additionally, VP8's open-source and royalty-free nature encouraged its adoption by the broader web community, setting the stage for its successor, VP9, which offers even greater compression efficiency and quality.


What is VP9?

Introduced in 2013 as the successor to VP8,VP9 brought significant improvements in compression efficiency and video quality, positioning itself as a strong competitor to the H.265/HEVC codec without the burden of licensing fees. VP9 supports higher resolutions, including 4K and even 8K, making it ideal for modern streaming services that demand high-quality video while minimizing bandwidth consumption. The codec leverages advanced prediction algorithms and a flexible block size ranging from4x4 to 64x64 pixels, allowing for optimal compression across various types of content.

Additionally, VP9 supportsHigh Dynamic Range (HDR) content, offering a wider color range and enhanced visual fidelity, further cementing its value for contemporary video applications.

Compression efficiency betweenVP8 and VP9

VP8 compression efficiency: VP8 offers decent compression capabilities, but it is generally less efficient compared to more modern codecs like VP9 and HEVC (H.265). To maintain comparable video quality, VP8 typically requires higher bitrates, especially at higher resolutions. For instance, a 1080p video encoded with VP8 may require a bitrate of approximately 2-3 Mbps. While VP8 can effectively handle standard definition and lower resolutions, its performance diminishes as the resolution increases, leading to potential quality loss unless the bitrate is significantly increased.

VP9 compression efficiency: In contrast, VP9 significantly enhances compression efficiency. It achieves a 30-50% better compression rate than VP8 while maintaining the same level of video quality. This means that VP9 can deliver superior video quality at the same bitrate or achieve equivalent quality at a lower bitrate, which is crucial for reducing bandwidth requirements.

Example:

A 1080p video encoded with VP9 might only need 1.5-2 Mbps to achieve the same quality that would require 2-3 Mbps with VP8.

Comparing the compression efficiency of VP8 and VP9

Here's a graph comparing the compression efficiency of VP8 and VP9. It shows that at the same bitrate, VP9 maintains higher video quality (as indicated by PSNR or VMAF scores) compared to VP8, demonstrating its superior compression efficiency.

  • VP8: Offers good quality at lower resolutions (e.g., 720p and below). However, at higher resolutions like 1080p or 4K, VP8 struggles to maintain the same level of quality without significantly increasing the bitrate.

  • VP9: Excels at maintaining video quality, especially at higher resolutions. VP9's advanced compression algorithms allow it to preserve finer details and improve visual quality even at lower bitrates, making it ideal for 4K streaming.

Example:

  • VP9 is widely used on platforms like YouTube, which defaults to VP9 for high-resolution videos (1080p and higher) to maintain quality while minimizing bandwidth.

Encoding speed between the codecs

Encoding speed refers to how quickly a video file can be processed using a particular codec.

  • VP8: Generally faster to encode than VP9 due to its simpler compression algorithms. This makes it suitable for live streaming or applications where encoding speed is a priority over maximum compression efficiency.
  • VP9: VP9's more complex compression algorithms mean that it takes longer to encode compared to VP8. The higher computational complexity results in slower encoding times, making it less ideal for scenarios where real-time encoding is necessary.

Decoding performance

Decoding performance is important for playback, particularly on devices with limited processing power, such as smartphones and tablets.

  • VP8: Easier to decode and requires less processing power, making it more suitable for lower-end devices or scenarios where battery life is a concern.
  • VP9: While VP9 offers better compression and quality, it requires more processing power to decode, which can be a drawback on older or less powerful devices. However, newer hardware, such as modern smartphones and browsers, are optimized to handle VP9 efficiently.

Example:

  • Many older Android devices are better suited for VP8 playback due to lower CPU/GPU demands, while newer devices are optimized for VP9.

Hardware support across VP8 and VP9

The extent of hardware support directly impacts how smoothly a codec performs, particularly for high-definition video content.

  •  VP8: Has broad support across devices and browsers, including older hardware. VP8 is supported by a wide range of web browsers (e.g., Chrome, Firefox, Opera) and Android devices.
  • VP9: VP9 is supported by newer devices and browsers, but older hardware may struggle with VP9 video playback. Many modern devices, including 4KTVs, smartphones, and Chrome cast devices, now have hardware-accelerated VP9 decoding, making playback smoother and more power-efficient.

Example:

  • YouTube defaults to VP9 for many users due to its superior compression, and Chrome and Firefox browsers fully support VP9 playback

Cut Video Cloud Costs by 8X, No Performance Loss

Know more

Licensing and patents for VP8 and VP9

Both VP8 and VP9 are open-source and royalty-free codecs, making them attractive choices for developers and platforms that wish to avoid the licensing fees associated with proprietary codecs like H.264 and H.265 (HEVC). This open approach encourages widespread adoption and innovation in video streaming technologies.

High dynamic range (HDR) and wide color gamut (WCG) support

HDR and WCG are important features for delivering enhanced color and contrast, critical for high-end content, such as 4K video.

  • VP8: Does not support HDR or WCG. VP8’s limited feature set makes it unsuitable for modern high-end video content that requires vibrant colors and a broader dynamic range.
  • VP9: Supports both HDR and WCG, making it a future-proof choice for content creators and platforms focusing on high-quality streaming. VP9’s support for HDR10 and WCG means that it can deliver richer colors, better contrast, and an overall more immersive viewing experience.

Example:

  • YouTube supports HDR and WCG video streams encoded in VP9, allowing creators to offer higher-quality content, particularly for users with HDR-capable displays.

Use cases for VP8 and VP9


While YouTube is a well-known example of both VP8 and VP9 usage, let's look at how these codecs are utilized in other real-world applications:

VP8 in Video conferencing

Older video conferencing platforms, such as Google Hangouts and early versions of Zoom, adopted VP8 primarily because of its real-time encoding capabilities. VP8’s faster encoding speed makes it ideal for applications where low-latency communication is critical, such as live video calls. In these scenarios, video quality isn’t the only concern; minimizing delay is essential, and VP8’s simpler compression algorithms allow for faster processing, ensuring smooth communication.

VP9 in OTT platforms and short- form video apps

Modern OTT platforms and video apps like Netflix, Amazon Prime, and TikTok use VP9 to deliver high-resolution video content while keeping bandwidth consumption low. With the rise of 4K and even 8K streaming, VP9’s superior compression efficiency enables these platforms to offer high-quality video without significantly increasing bandwidth requirements. Additionally, apps like TikTok benefit from VP9's ability to handle short, high-resolution videos, allowing users to stream or upload content quickly, even on slower connections. This balance of quality and compression makes VP9 a preferred choice for many content delivery platforms today.

Final thoughts: Which codec should you use?

Choose VP8 if your priority is fast encoding and decoding, particularly for low-latency applications like live streaming or video conferencing, where high compression is less important.

Choose VP9 if you want better video quality and compression, especially for high-resolution videos (e.g., 4K). VP9 is ideal for video streaming platforms where bandwidth savings and maintaining high visual fidelity are essential.

How FastPix can help

At FastPix, we’re dedicated to letting you focus on crafting outstanding video experiences while we handle the technical complexities of various formats and codecs. With support for multiple input formats, you can seamlessly upload content in a wide range of video formats such as H.264, VP8, VP9, MP4, AVI, MKV, MOV and more, eliminating the need for manual conversions. This optimizes your workflow, shortens turnaround times, and enhances your content creation process.


Frequently asked questions

What are the main differences between VP8 and VP9?

VP8 was developed as a royalty-free alternative to proprietary codecs, focusing on decent quality at lower resolutions. VP9, introduced later, offers significantly improved compression efficiency and supports higher resolutions like 4K and HDR.

How does compression efficiency compare between VP8and VP9?

VP9 achieves 30-50% better compression efficiency than VP8 while maintaining the same video quality. For example, a 1080p video might need only 1.5-2 Mbps with VP9 compared to 2-3 Mbps with VP8.

Which codec is better for video quality?

VP9 excels at maintaining high video quality, particularly at higher resolutions, while VP8 struggles with quality retention as resolution increases.

What about encoding speed?

VP8 generally encodes faster due to simpler algorithms, making it ideal for live streaming. VP9’s complex algorithms lead to slower encoding times, which may not be suitable for real-time applications.

How do VP8 and VP9 perform in terms of decoding?

VP8 is easier to decode and requires less processing power, making it suitable for older devices. VP9 offers better quality but requires more processing power, benefiting from newer hardware optimizations.

Get Started for free

Enjoyed reading? You might also like

Try FastPix today!

FastPix grows with you – from startups to growth stage and beyond.