Codec Lab
We encode H.264, HEVC, AV1 and VVC on a home PC and publish measured VMAF, file size and speed — plus a codec course and free browser tools.
Every lab article lists the clips, the FFmpeg commands and the raw CSV, so you can check the numbers or rerun the test yourself. The course starts from how video compression works and builds up to the newest codecs.
The English edition is new, so it is still smaller than the Korean site. What you see here is everything translated so far; more is on the way.
22 chapters · 139 lessons · 66 lab articles · 97 tools
🧪 Lab · 2026-11-27
Why Does Video Stutter: Codec or Bitrate? 1080p H.264, HEVC, VP9 and AV1 Software Decoding CPU Load Measured
We encoded four 10-second 1080p25 clips with x264, x265, SVT-AV1, VP9 and libaom at 4 to 5 quality steps each (96 encodes) and measured 4-thread software decoding CPU time. Within one codec, bitrate spread by 8.6 to 67 times while decoding time spread by only 1.8 to 5.6 times. At the same VMAF, the gap between the lightest and heaviest codec was 1.8 to 2.3 times. Even the heaviest of the 96 files took 6.4 seconds of CPU time for 10 seconds of video (1.56x headroom).
🧪 Lab · 2026-11-27
SVT-AV1 variance-boost and Quantization Matrices (qm) Tested: How Much Extra File Size Do They Cost, and Do They Raise the Bottom-5% VMAF?
We encoded four 10-second 1080p25 clips with SVT-AV1 preset 8 at CRF 26, 36, 46 and 56 while varying variance-boost (off, strength 1, strength 4) and quantization matrices (qm). The default and enable-variance-boost=0 were byte-for-byte identical in file size and VMAF in all 24 cells. At the same CRF, strength 4 grew file size by +17% to +227% and raised the bottom-5% VMAF by +1.96 to +19.56 points at CRF 56. But compared with a baseline at the same file size (a lower CRF), strength 4 scored lower on both mean and bottom-5% VMAF, and interpolated to the same mean VMAF it was +13.6% to +39.7% larger. qm moved mean VMAF by less than ±0.6 points while cutting file size by −2.1% to −18.4% at CRF 26. VMAF can underrate visual tuning, and we did not check how the video looks to the eye.
🧪 Lab · 2026-11-27
Speeding Up a Slow SVT-AV1 Encode: What Turning Off the Temporal Filter (tf), CDEF or Restoration Filter Buys, and Costs in File Size and VMAF
We encoded four 10-second 1080p25 clips with SVT-AV1 preset 8 at CRF 28, 38, 48 and 58, turning off the temporal filter (enable-tf), CDEF (enable-cdef) and the restoration filter (enable-restoration) one at a time, and then all three together. Encoding CPU time, summed over the 4 clips, dropped by 1.5% with tf off, 3.0% with CDEF off, 6.1% with the restoration filter off and 7.8% with all three off; the largest per-clip drop was −9.3% with everything off (riverbed). At the same CRF, file size grew with tf off and with all off (+0.9% to +9.6%, apart from some riverbed cells), while restoration filter off ranged from −1.2% to +0.4%. Mean VMAF moved in different directions depending on the clip: on riverbed and rush_hour it actually rose with tf off or all off, while blue_sky lost 2.06 points at CRF 58 with the restoration filter off. Interpolated to the same VMAF, all off ranged from −1.1% to −15.7% on riverbed and rush_hour and was +10.7% on blue_sky.
📉 Tool
Video File Playback Frame Drop Diagnoser: Measure Dropped Frames and Real fps in Your Browser, Corrected for Refresh-Rate Illusion (Runs Locally)
Pick a video file and the tool plays it muted in this browser, counts dropped frames per second with getVideoPlaybackQuality and draws them as a bar chart, and counts the frames actually presented with a frame callback to get the real display fps. It measures the screen's refresh rate and, when the video fps is higher than the refresh rate, calculates the unavoidable drop ratio (1 − refresh rate / fps) and subtracts it; judder when the refresh rate is not a whole multiple of the fps is reported separately. For MP4 and MOV it reads codec, profile and 10-bit from the header and adds likely causes. It measures your real file, but browsers count drops differently, so the same file can give different values, and the verdict is a simple rule of this site that says nothing about other players' performance. The file is not sent to a server; it is processed only inside the browser.
🎮 Tool
Does My GPU Support HEVC, AV1 and VP9 Hardware Decoding and Encoding? Lookup by GPU Generation, Plus Measured CPU Software-Decode Load When It Doesn't
Type a model name like GTX 750, RX 6600 or UHD 630, or pick an NVIDIA, AMD or Intel generation, to see hardware decoding support for H.264, HEVC (8- and 10-bit), VP9 and AV1 and hardware encoding support for H.264, HEVC and AV1. When there is no hardware decoder, it shows the CPU load as a number of cores, converted to 4K from the 1080p25 software-decode CPU time (median per codec) in this site's measurement CSVs, assuming load scales with the resolution and fps pixel count. Support is compiled from manufacturer documentation and known generation boundaries, not values we tested, and cells we could not verify are left as question marks. The 4K software decoding is a converted value, not a measurement, and the measurements use four 10-second clips, 8-bit, on one PC. Your input is processed only inside the browser.
📸 Tool
Fix Washed-Out HDR Screenshots and Thumbnails: Build a Tone-Mapped Capture Command from Pasted ffprobe Output (Includes a Command to Compare Operators)
When a frame grabbed from an HDR video comes out hazy, paste the ffprobe output and the tool identifies PQ, HLG or Dolby Vision and builds a zscale+tonemap capture command. You can choose the timestamp, the output format (png or jpg), the operator (hable, mobius, reinhard and others), desat and npl, and it also builds a command that captures the same frame with three curves so you can compare them by eye. Dolby Vision profile 5 is known not to convert correctly, so no command is built for it. This site has not measured the output images or speed of each operator, and the commands use the filter chain from lesson 14-5, which we have not run and verified ourselves. Your input is processed only inside the browser.
🫥 Tool
Transparent Video Checker: Detect an Alpha Channel from Pasted ffprobe Output, with WebM (VP9 yuva420p) and HEVC Alpha Compatibility
Paste ffprobe output and the tool reads pix_fmt (formats with an a, such as yuva420p) and the WebM alpha_mode tag to tell you whether the video has an alpha channel. It separates the case where a VP9 WebM shows yuv420p in pix_fmt but has alpha anyway (alpha_mode=1) from HEVC alpha, which cannot be confirmed from this output alone, and it explains browser playback compatibility per codec as generally known information. It builds the ffmpeg command and the check command to make a VP9 alpha WebM from an alpha file, a PNG image sequence or a green-screen video, calculates the size increase when you enter the sizes of two files with and without alpha, and also asks this browser's canPlayType. This site has not measured the quality or size of alpha video; libx265 is known not to encode alpha, so no HEVC alpha conversion command is built; and browser compatibility was not tested directly. Your input is processed only inside the browser.
🗜️ Guide
How to Reduce Video File Size: Lossless Shrinking Isn't Possible, So Here's What Works and in What Order
Re-encoding is lossy compression, so shrinking a video with no quality loss doesn't hold up. Instead, this guide lays out where the savings come from (audio, CRF, codec, resolution, frame rate) using this site's measurements and calculations, and leads into the size prediction tools.
🎚️ Guide
How to Pick a CRF Value: Starting Points and Adjustments for x264, x265 and SVT-AV1
The right CRF depends on the video. Using this site's measurements, we look at how CRF relates to VMAF for each codec and how static and complex footage differ, then lay out a start, preview, adjust routine for finding the CRF for your own video.
🧭 Guide
x264, x265 or AV1: Which to Use? Choosing by Situation for Archiving, Upload, Web Embedding and Real Time
H.264, H.265 and AV1 compared by compatibility, file size at the same VMAF, encoding time, and patents and licensing, then sorted by situation. The size and speed figures are exactly as measured in this site's crf-sweep and iso-time experiments.
📋 Guide
FFmpeg Cheat Sheet: 14 Common Commands for Subtitles, Trimming, GIFs, Remuxing and Encoding
Burning in subtitles, extracting audio, how the position of -ss changes trimming, resizing, GIFs, MKV to MP4 remuxing, VFR to CFR, and basic x264, x265 and SVT-AV1 encoding. Each command comes with what its options mean and the usual mistakes.
Advanced course
Deeper topics such as HDR, low latency, filters and encoding recipes, in 12 chapters and 77 lessons.
Start the advanced course →
22 chapters · 139 lessons
🎬 Ch. 1
Video Basics
The groundwork you need before learning codecs: pixels, color spaces, subsampling, HDR
📐 Ch. 2
Principles of Compression
Entropy, rate-distortion theory, and how to measure quality as a number. The shared language of every codec design.
🧩 Ch. 3
Anatomy of a Hybrid Codec
Block partitioning → prediction → transform → quantization → entropy coding → filtering. The skeleton shared by every codec from AVC to AV2.
🖼️ Ch. 4
Image Codecs
From JPEG to AVIF: the ancestors of video codecs, and technology you still run into every day.
📼 Ch. 5
AVC / H.264
Released in 2003 and still the most widely adopted codec in the world. Let's dig into why it was so overwhelmingly successful.
📺 Ch. 6
HEVC / H.265
Top-tier quality, so why didn't it take over the market? A story of technology and of patent disputes.
🌐 Ch. 7
VP9 & AV1
The weapon of being royalty-free. From Google's experiment (VP9) to the fruit of an industry alliance (AV1).
🚀 Ch. 8
VVC & AV2 & EVC
The newest generation as of 2026. Compression efficiency keeps climbing, but complexity rises with it.
🎯 Ch. 9
Special-Purpose Codecs
Codecs designed not for everyone, but for one job: APV, LCEVC, ProRes, and screen content.
🛠️ Ch. 10
In Practice
How a codec reaches the viewer: containers, streaming, decoding, and a day in the life of a codec engineer.
📏 Ch. 11
Measuring Video Quality in Practice
How to pick between PSNR, SSIM, and VMAF, measure without fooling yourself, and read the bad frames hiding behind an average. (Advanced)
🎧 Ch. 12
Audio Codecs
From sampling and perceptual coding to choosing between AAC, Opus, and FLAC, the loudness standard (LUFS) and loudnorm, and audio compatibility by container. (Advanced)
⚡ Ch. 13
Hardware Encoders
The structure and traits of NVENC, Quick Sync, AMF, VideoToolbox, and mobile SoC encoders, their pros and cons versus software encoders, how to check support, and ffmpeg options. (Advanced)
🌅 Ch. 14
HDR Workflow in Practice
Advanced. We take the PQ and HLG you learned in Chapter 1 and apply them to real files: metadata, 10-bit encoding options, SDR tone mapping, uploading, and the causes of the "washed-out colors" problem.
⚡ Ch. 15
Low-Latency and Real-Time Streaming
Advanced. Where latency comes from and how to reduce it: encoder settings, LL-HLS and LL-DASH (CMAF chunks), WebRTC, SRT and RIST, and the concepts behind OBS streaming settings.
📦 Ch. 16
Containers in Depth
Advanced. MP4 (ISOBMFF) boxes, faststart, fMP4, EBML in MKV/WebM, MPEG-TS, timestamps (PTS/DTS and timebase), reading structure with ffprobe, and what remuxing can and can't do.
🔧 Ch. 17
FFmpeg Filters in Practice
Hands-on. The syntax of -vf and -filter_complex, scale, zscale, fps, crop and pad, deinterlacing (yadif/bwdif), denoising and compression efficiency, burning in subtitles, audio filter basics, and common mistakes like color range and SAR.
🧭 Ch. 18
Encoding Recipes and How to Decide
In practice. How to decide in the order of destination → codec → rate control → preset, the differences between CRF, 2-pass, and CQ, recipes for archiving, platform upload, web embedding, and messenger sharing, and how to check your own result against this site's measured numbers.
🔬 Ch. 19
Diagnosing Video Quality Problems
In practice. How to tell blocking, banding, ringing, mosquito noise, flicker, and color bleeding apart from screenshots, pick the right fix for each cause (bitrate, AQ, 10-bit, dither, deblocking), and use ffmpeg to pull out suspect segments and check them with per-frame VMAF.
🖼️ Ch. 20
Optimizing Web Images and Animations
In practice. How to choose among JPEG, PNG, WebP, AVIF, and JPEG XL on the web, serve the right file with picture and srcset, replace GIFs with short videos, check browser support, and the cwebp, avifenc, and ffmpeg conversion commands.
📤 Ch. 21
Platform Uploads and Re-encoding
In practice. Why YouTube, social media, and messengers re-encode the videos you upload and how that works, how to build a source file that minimizes re-encoding loss (high quality, preserved resolution and frame rate, color metadata), how to check each platform's specs in its official help pages, and a pre-upload checklist.
⚖️ Ch. 22
Codec Patents, Licensing, and the Ecosystem
A codec is both a technology and a contract. This chapter covers who makes the standards, what a patent pool is, what 'royalty-free' does and does not promise, how the licenses of x264, x265, and SVT-AV1 differ, and in what order hardware support spreads. This is not legal advice.
New here? Start with What Is a Video Codec? How Encoders and Decoders Work, or look up a term in the glossary.
Lab · 2026-11-27
Why Does Video Stutter: Codec or Bitrate? 1080p H.264, HEVC, VP9 and AV1 Software Decoding CPU Load Measured
Lab · 2026-11-27
SVT-AV1 variance-boost and Quantization Matrices (qm) Tested: How Much Extra File Size Do They Cost, and Do They Raise the Bottom-5% VMAF?
Lab · 2026-11-27
Speeding Up a Slow SVT-AV1 Encode: What Turning Off the Temporal Filter (tf), CDEF or Restoration Filter Buys, and Costs in File Size and VMAF