Table of contents
Part 1
Core concepts of video and compression
Ch. 1
The groundwork you need before learning codecs: pixels, color spaces, subsampling, HDR
Ch. 2
Entropy, rate-distortion theory, and how to measure quality as a number. The shared language of every codec design.
Ch. 3
Block partitioning → prediction → transform → quantization → entropy coding → filtering. The skeleton shared by every codec from AVC to AV2.
Part 2
The traits and uses of each codec, one at a time
Ch. 4
From JPEG to AVIF: the ancestors of video codecs, and technology you still run into every day.
Ch. 5
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
Top-tier quality, so why didn't it take over the market? A story of technology and of patent disputes.
Ch. 7
The weapon of being royalty-free. From Google's experiment (VP9) to the fruit of an industry alliance (AV1).
Ch. 8
The newest generation as of 2026. Compression efficiency keeps climbing, but complexity rises with it.
Ch. 9
Codecs designed not for everyone, but for one job: APV, LCEVC, ProRes, and screen content.
Part 3
Applying what you learned to real work
Ch. 10
How a codec reaches the viewer: containers, streaming, decoding, and a day in the life of a codec engineer.
Part 4
Deeper topics such as HDR, low latency, filters and encoding recipes
Ch. 11
How to pick between PSNR, SSIM, and VMAF, measure without fooling yourself, and read the bad frames hiding behind an average. (Advanced)
Ch. 12
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
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
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
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
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
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
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
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
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
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
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.