Understanding the Pros & Cons of Different Win Video Codes
Understanding the Pros & Cons of Different Win Video Codes
You might not know much about video codecs, but there’s a chance you use them in your everyday life. You might be into streaming, sending a video you made to others, or have a multi-terabyte HDD filled with videos and want to reclaim some of its space without deleting any files.
So what are video codecs, how should you choose one, and how would it affect your produced videos?
What Are Codecs?
If you want to be technical, the “real” way to spell the word is “CoDecs,” since the term is a combination of the words “coders” and “decoders.” But nobody spells it like that in the real world, so it’s fine if you don’t spell it that way.
The “coder” part of “codecs” allows encoding a media stream using a particular algorithm. Meanwhile, the “decoder” part enables playback of a media stream encoded with a compatible encoder.
To learn more about codecs, check our guide on all you need to know about video codecs, containers, and compression .
Why Your Codec Choice Matters
When choosing a codec, you must consider its pros and cons and pick the best one for the task.
Compatibility: Hardware compatibility and support are one of the major factors to take into account when choosing a codec. How are you planning on using the media after encoding it? Will they be part of your personal collection, or are you planning on sharing them with others?
Speed: You also have to consider encoding speed. AV1 is regarded as one of the best codecs available today for long-term content storage. However, with AV1, a not-too-shabby Ryzen 5900x CPU may work for days to encode a single video.
Content Type & Output Quality: Also, since we’re talking “long-term storage”, would you want the encoded files to look almost identical to the originals, staying as close to the source as possible? You should skip AV1 since it can’t perform entirely lossless compression. In contrast, the older and less advanced H.265 and H.264 can.
Editability: Do you also want to edit the video, remix it, cut or add scenes, titles, and effects, and try color grading? It would be better if your source videos were encoded in an “editing-friendly” format that’s quicker to read for the computer. That would also mean they’d be “easier to move around” when working with a video editor’s timeline. For that, you’d need something like MJPEG or, for higher quality, ProRes.
The Best Codecs Available to You
Let’s go over the major video codecs you can use:
1. H.265/HEVC
The latest widely available “MPEG-based” codec, H.265, also known as High-Efficiency Versatile Coding (HEVC for short) and MPEG-H Part 2, offers the best combination of quality, speed, and wide hardware support among its peers.
That’s why you see it at the top of our list: it’s slower to encode to H.265 using a specialized software encoder like x265, but that will offer you the best possible quality for your content. It will still be (much) faster than AV1 and also plays nice with content with “grain” (the “noise” you see in cinematic movies).
2. AV1
The newest codec in our selection, AV1, is a super-evolved VP9 that offers significant gains in compression and quality compared to its ancestor. Where VP9 often “traded blows” with H.265, AV1 leaves them both behind, achieving even +50% better quality at the same file size or -50% smaller file size for the same quality—you choose which way you’d prefer to go.
It sounds perfect until you realize it can also be dozens of times slower than many alternatives. Plus, it doesn’t like “noisy” content, so it removes all “grain” by default. It offers an advanced switch as an extra option to artificially re-add noise to the content.
Still, purists would rightfully argue that this is an approximation and not the correct way to preserve the original media’s appearance if you’re re-encoding your content for long-term archival.
3. H.264/AVC
H.264, also known as Advanced Video Coding (AVC for short) and MPEG-4 Part 10, is the precursor to H.265. It has much lower hardware requirements and has been used for much longer.
As such, it’s much faster in encoding than both H.265 and especially AV1 and has significantly wider hardware support. Even the most affordable smartphones you can buy today can decode and encode H.264 in hardware.
With H.264, you get either lower quality for the same size or much larger files for the same quality compared to H.265 and AV1.
4. VP9
Created as a more open alternative to the pattern-laden H.265, VP9 was supposed to act as H.264 and H.265’s replacement on the web. Although it’s in use by many prominent sites, this promise has yet to materialize fully.
Also, while it’s supported by browsers and almost all PC-based software media players, hardware media players (like TV set-top boxes or an entertainment system you might have in your car) might skip it.
Regarding speed and quality, it sits right between H.264 and H.265, depending on the encoded content and settings.
5. MPEG-4/Xvid/DivX
The MPEG4 codec came to the forefront through its DivX variant, which dominated video encoding during the Windows XP era thanks to rampant movie piracy.
MPEG4 is almost obsolete today. It was optimal when pirates wanted to rip a DVD and fit a heavily recompressed copy on a single CD to share with friends.
It can be useful, depending on your priorities and available hardware. It’s a good choice if you only want minimal gains as quickly as possible. However, from a quality standpoint, there are much better options available.
6. ProRes
Widely considered “the Apple editable video format”, ProRes doesn’t offer the best compression, but that’s because it prioritizes quality and editability.
You’ll rarely (if ever) use ProRes for playing media or compressing them for archival or distribution. And yet, it’s almost mandatory if you’re a professional in the post-production phase, juggling scenes in Final Cut Pro X or coloring in Davinci Resolve since it’s straightforward, fast, and, more importantly, considered a standard.
One consumer-friendly case where you might stumble upon it is recording high-quality video with one of the latest iPhones (from 13 Pro and on) in video mode.
7. MJPEG
ProRes’ “more consumer-friendly cousin” is useful primarily if you’re importing content from older analog devices into your PC, through a video capture solution, for further editing. That’s because it’s ultra-fast in seeking, and you can work with each frame acting as a keyframe instead of having to deal with sequences of frames.
MJPEG is far from the most advanced algorithm: it manages to reduce video sizes by encoding all frames as JPEG images.
However, JPEG compression is very lossy in quality, rendering MJPEG only useful in the particular case we mentioned: ultra-fast seeking in imported content that didn’t have the best quality to preserve in the first place.
8. MPEG2
You might still meet MPEG2 if your PC has an optical drive and you try reading a DVD with it. The VOB files in most DVDs contain streams encoded with MPEG2 video and AC3 audio algorithms.
The very fact most PCs today don’t even have an optical drive is telling on MPEG2’s usefulness in the modern tech landscape.
How to Choose a Codec
We saw why codec choice matters, as well as how the major codecs differ regarding quality and speed. But still, which one should you choose, when, and why?
1. Choosing a Codec for Streaming
If you’re streaming to platforms like Twitch and YouTube, you’ll probably want to use H.264. It’s faster than H.265 and AV1 in encoding while having much lower hardware requirements.
Keeping the hardware strain down is very important, especially if you want to run other demanding software in parallel (like the latest triple-A games) without taking a toll on performance.
Helping even more, almost all GPUs from at least the last two “generations” from Nvidia and AMD come with support for hardware-accelerated H.264 encoding. This enables you to encode your video streams in real-time with a minimal hit in performance (think 5% to 10% of your GPU’s resources).
2. Choosing a Codec for Archiving
For archiving, the best codec choice depends on the content you want to store and if you want to preserve its quality or cut down on storage demands.
Although AV1 offers the best quality-to-size ratio, H.265 is still a better option if you want to compress “cinematic” videos (especially if they’re “noisy”) while keeping all details. They’ll still be smaller than if stored with most other codecs except AV1.
AV1 is the better choice if you don’t mind its much slower compression speeds, and even more so if re-encoding “smooth” content, like anime and cartoons.
3. Choosing a Codec for 4K+ content
All codecs up to H.264 were designed for sub-HD resolutions. H.264 was the first codec designed to store full-HD content (at resolutions up to 1920 x 1080). However, today we also have 4K and Ultra HD content, and H.265, AV1, and VP9 are better for much higher resolutions.
4. Choosing a Codec to Maximise Compatibility
The rule of thumb is that the older the codec you’ll use, the higher its compatibility with more devices. If you want your videos to play practically everywhere, go for MPEG4. It’s old, outperformed by all newer options, but it’s also natively supported even by ten-year-old TVs.
If you only care about newer devices, H.264 can work on almost any media-playing device released within the last five years, including gaming consoles and smartphones.
We’d suggest you skip H.265, AV1, and VP9, since each has its own “quirks” and is better supported in particular ecosystems. For example, VP9 is playable in most modern browsers but only by a few standalone media players.
- Title: Understanding the Pros & Cons of Different Win Video Codes
- Author: Richard
- Created at : 2024-08-28 01:10:16
- Updated at : 2024-08-29 01:10:16
- Link: https://win11-tips.techidaily.com/understanding-the-pros-and-cons-of-different-win-video-codes/
- License: This work is licensed under CC BY-NC-SA 4.0.