The Compression GalleryNotes

How it was made

What was measured, with what, and what to be careful about. Everything in the museum can be made again from the commands at the foot of this page.

What was done

Nothing is encoded while you wait. Every file was prepared in advance on one computer, by the programs listed below, and the pages only play them back. Nothing you do here is sent anywhere.

Text. The six compressors were run on the Silesia corpus, a standard collection of real files, joined into a single archive. Each was run on one processor core, and the speeds are wall-clock times for one run.

Audio. Each recording is 12 seconds of 48 kHz, 16-bit stereo. In the viewer every file is decoded by your browser, lined up with the original to the nearest sample, and played in step with it, so that switching changes nothing except the codec. No score is given for audio, because no freely available measure of sound quality can be trusted across codecs. The blind test is the measure.

Image. The photographs are from the Kodak test set. The likeness score is SSIMULACRA 2, in which 90 is visually identical, 70 is high quality, 50 medium and 30 low. Formats are compared by the file size each needs to score 70, read off its curve between the two encodes either side. JPEG XL was measured and is not shown, because few browsers can open it.

Video. Each film is 200 frames at 1280 by 720, 50 frames a second. VMAF was computed against the uncompressed frames. Encoders are compared by the bitrate each needs to reach a VMAF of 85, read off its curve between the two encodes either side. That single point was chosen over an average across the whole curve because VMAF flattens out near the top, where small differences in score stand for large differences in bits. HEVC, VP9 and a second AV1 encoder were measured and are not hosted.

3D. The rabbit was written out as 32-bit positions and 32-bit point numbers, and that plain form is the starting size. Draco was run at its highest compression level on a ladder of grids. The line called grid alone is Draco at level 0, which stores the points and triangles in order with no walk across the surface and no guessing.

Data and DNA. The column format in the Data room and the list of differences in the DNA room were written for this museum, in a few dozen lines each, and every file they produce is decoded again and checked against its source. The differences between sequences were found by edit distance, counting a changed, added or missing letter as one each. The model in the DNA room is not a file. Its size is the length an arithmetic coder would reach using that model's guesses.

What to be careful about

The original in the Video room is a stand-in. Browsers cannot play uncompressed video, so side A is H.264 at a very high quality. On the film with the most noise in it, the stand-in itself scores 95.7 against the true original.

For the two harder films only part of each ladder is hosted, to keep the site a reasonable size. Old town is complete.

Encoding times are single runs on one machine. They are good for comparing one setting with another and for nothing else.

The table of chip makers in the Video room was compiled from their documents and was not measured. The only circuits measured here are those in an Apple M4.

The reference sequence in the DNA room contains one placeholder letter, kept by convention so that positions keep their traditional numbers. It is counted as one of the differences.

The weather table is a reanalysis, a model's reconstruction of past weather from observations, and not the log of a single thermometer. A few readings printed as −0.0 were written as 0.0 before measuring.

A blind test of twelve rounds can show that you hear a difference. It cannot show that there is none.

Programs used

Everything was encoded and timed on one computer (Apple M4, 10 cores) on 2026-11-11.

FFmpeg9.0.2
SVT-AV1v4.2.0
libaom3.15.3
libavif (avifenc)1.4.2
libopus1.6.1
x264r3222
x2654.3+1-e9b8812
libvpxv1.17.0
LAME4.0
libjpeg-turbo3.2.1
libwebp1.6.0
libjxl0.12.0
libvmaf3.2.0
gzip487.40.2
bzip21.0.8
xz5.8.4
Zstandard1.5.7
Brotli1.2.0
LZ41.10.0
Draco1.5.9
DuckDB2.0.0

Material

Every recording, photograph, film, model, table and sequence is public test material, used under the terms given beside it.

TextSilesia corpusSebastian Deorowicz, Silesian University of TechnologyFreely available for compression research
AudioDialogue© Blender Foundation | durian.blender.orgCC BY 3.0
AudioSolo pianoKimiko Ishizaka, Open Goldberg VariationsCC0 1.0
AudioOrchestra© Blender Foundation | durian.blender.orgCC BY 3.0
ImageParrotsKodak Lossless True Color Image SuiteReleased by Eastman Kodak for unrestricted use
ImageLighthouseKodak Lossless True Color Image SuiteReleased by Eastman Kodak for unrestricted use
ImagePortraitKodak Lossless True Color Image SuiteReleased by Eastman Kodak for unrestricted use
ImageRooftopsKodak Lossless True Color Image SuiteReleased by Eastman Kodak for unrestricted use
ImageFace paintKodak Lossless True Color Image SuiteReleased by Eastman Kodak for unrestricted use
VideoOld townSveriges Television AB (SVT), via Xiph.org Video Test MediaFree for research and development use (SVT test set terms)
VideoRunnersSveriges Television AB (SVT), via Xiph.org Video Test MediaFree for research and development use (SVT test set terms)
VideoDucksSveriges Television AB (SVT), via Xiph.org Video Test MediaFree for research and development use (SVT test set terms)
3DThe Stanford rabbitStanford University Computer Graphics LaboratoryFree to use and redistribute with acknowledgement (Stanford 3D Scanning Repository)
DataLondon weather, every hour from 2015 to 2024Open-Meteo historical weather API, from the Copernicus ERA5 reanalysisCC BY 4.0
DNAHuman mitochondrial DNA, revised Cambridge Reference Sequence (NC_012920.1)NCBI GenBank and RefSeqPublic domain (NCBI places no restrictions on use)
DNAHuman mitochondrial DNA, Yoruba individual (Ingman et al., Nature, 2000) (AF347015.1)NCBI GenBank and RefSeqPublic domain (NCBI places no restrictions on use)
DNANeanderthal mitochondrial DNA, Vindija Cave (Green et al., Cell, 2008) (NC_011137.1)NCBI GenBank and RefSeqPublic domain (NCBI places no restrictions on use)
DNAEscherichia coli K-12 MG1655, complete genome (NC_000913.3)NCBI GenBank and RefSeqPublic domain (NCBI places no restrictions on use)

Work quoted and not repeated

Some figures in the museum come from published work and were not measured here: Shannon's estimate for English, the two bits a triangle of the walk across a surface, Gorilla's timestamps, Watson's genome, and the language model that beat PNG and FLAC.

C. E. Shannon, “A Mathematical Theory of Communication”, Bell System Technical Journal 27, 1948.

C. E. Shannon, “Prediction and Entropy of Printed English”, Bell System Technical Journal 30, 1951.

D. A. Huffman, “A Method for the Construction of Minimum-Redundancy Codes”, Proceedings of the IRE 40, 1952.

N. Ahmed, T. Natarajan, K. R. Rao, “Discrete Cosine Transform”, IEEE Transactions on Computers C-23, 1974.

J. Ziv, A. Lempel, “A Universal Algorithm for Sequential Data Compression”, IEEE Transactions on Information Theory 23, 1977.

S. Anderson et al., “Sequence and organization of the human mitochondrial genome”, Nature 290, 1981.

G. Turk, M. Levoy, “Zippered Polygon Meshes from Range Images”, SIGGRAPH 1994.

J. Rossignac, “Edgebreaker: Connectivity Compression for Triangle Meshes”, IEEE Transactions on Visualization and Computer Graphics 5, 1999.

R. E. Green et al., “A Complete Neandertal Mitochondrial Genome Sequence Determined by High-Throughput Sequencing”, Cell 134, 2008.

S. Christley, Y. Lu, C. Li, X. Xie, “Human genomes as email attachments”, Bioinformatics 25, 2009.

T. Pelkonen et al., “Gorilla: A Fast, Scalable, In-Memory Time Series Database”, Proceedings of the VLDB Endowment 8, 2015.

G. Delétang et al., “Language Modeling Is Compression”, ICLR 2024.

NVIDIA, Video Encode and Decode GPU Support Matrix.

Intel Quick Sync Video, hardware generations (Wikipedia).

AMD, Advanced Media Framework.

Every file and the command that made it

Open a room to see its files. The file names in the commands are the ones used when the museum was built.

Text
Audio
Image
Video
3D
Data
DNA