There is also a full-screen version of this page.
This page shows H.264, HEVC/H.265, VP9 and AV1 at 8, 10 and 12-bit, in Y’CbCr 4:2:0, 4:2:2 and 4:4:4, and in RGB. It tests your browser as it loads: for each movie it records whether it plays, whether the colors match the source, and what the browser claims it supports. The results are at the bottom of the page, where you can copy or download them.
How it is made:
- The movies are encoded by
make_web_tests.pyfromcodec_web_tests.yml(FFmpeg 9.0.2). The Y’CbCr files are converted withzscale. - The page is written by
build_page.pyfromweb_compatibility_template.html, which reads each movie’s codec string and the colors it should show. - Submitted results go to a Google Sheet through
google_sheet_collector.gs; its header has the setup steps. - To check a result by eye,
tests/codec-color-compare.pyencodes two images with the same settings and writes a local A/B viewer (tests/codec-color-compare/compare.html) that plays the movies in the browser next to the source, or shows FFmpeg’s decode of them. It is not published here, since the movies come to about 23MB.
<!DOCTYPE html>
Codec browser compatibility
Each cell shows the movie itself, played by this browser, with whether it plays and whether its colors match the source (a few patches of each frame are compared with the source image, two ways: the decoder's own output, read through WebCodecs and converted here with the matrix the browser reports, or, where the browser does not give the decoded samples (hardware-decoded frames, for example), a copy of the frame drawn to a canvas, marked "(canvas copy)". A browser's canvas copy is not always what it shows: Chrome's is off for software-decoded 4:2:2 and 4:4:4, though the screen is right. Firefox's copies have the same error (blue off by up to about 9, from BT.601's Cb coefficient) for every Y'CbCr movie, and it too shows them correctly, so a copy with exactly that error counts as OK. "Reduced chroma" means the colors are right but the browser shows the movie with less chroma resolution than the file has (Firefox shows HEVC 4:4:4 as 4:2:2); compare by eye with the viewer made by tests/codec-color-compare.py. Hover over a result for every number; "Wrong colors" means the browser decoded it but interpreted it wrongly). The gray line under each result is what the browser claims through MediaCapabilities: "hw" when it reports power-efficient (usually hardware) decoding. Y'CbCr files are converted from RGB with zscale (BT.709, limited range); all are tagged BT.709 primaries, sRGB transfer.
8-bit Y'CbCr
| H.264 | HEVC/H.265 | VP9 | AV1 | |
|---|---|---|---|---|
| 4:2:0 | Waiting | Waiting | Waiting | Waiting |
| 4:2:2 | Waiting | Waiting | Waiting | Waiting |
| 4:4:4 | Waiting | Waiting | Waiting | Waiting |
10-bit Y'CbCr
| H.264 | HEVC/H.265 | VP9 | AV1 | |
|---|---|---|---|---|
| 4:2:0 | Waiting | Waiting | Waiting | Waiting |
| 4:2:2 | Waiting | Waiting | Waiting | Waiting |
| 4:4:4 | Waiting | Waiting | Waiting | Waiting |
12-bit Y'CbCr
| H.264 | HEVC/H.265 | VP9 | AV1 | |
|---|---|---|---|---|
| 4:2:0 | libx264 has no 12-bit | Waiting | Waiting | Waiting |
| 4:2:2 | libx264 has no 12-bit | Waiting | Waiting | Waiting |
| 4:4:4 | libx264 has no 12-bit | Waiting | Waiting | Waiting |
RGB (no Y'CbCr conversion)
RGB (gbrp, gbrp10le, gbrp12le), tagged BT.709 primaries, sRGB transfer, matrix RGB. H.264 uses libx264rgb; AV1 uses libaom-av1, since libsvtav1 has no RGB. See RGB Encoding.
| H.264 | HEVC/H.265 | VP9 | AV1 | |
|---|---|---|---|---|
| 8-bit | Waiting | Waiting | Waiting | Waiting |
| 10-bit | libx264rgb is 8-bit only | Waiting | Waiting | Waiting |
| 12-bit | libx264rgb is 8-bit only | Waiting | Waiting | Waiting |
"Measure the screen" asks to share this tab (choose this tab), then scrolls through the page and records each movie as the browser draws it, compared with the other movies and with the source image in the same capture. The numbers are added to the results (hover over a cell) but do not change them: a tab capture can draw video differently from the screen. Nothing leaves your computer. Best in Chrome or Edge, which can share a single tab.
Submitting sends the results above, your browser's user agent and GPU name, and your note, to a Google Sheet kept by the ORI Encoding Guidelines project.