What an encoder takes away
A spectrogram of a lossless recording, and of the same recording after each encoder at each bitrate. Pick a codec, then move the slider down the ladder. Press Play to hear each step.
The pictures could not be loaded. Please try again later.
How to read it
Time runs left to right. Pitch runs from the bass at the bottom to 22 kHz at the top, where hi-hats, cymbals and the air around a recording live. The brighter the colour, the louder that pitch is at that moment.
As the bitrate falls, look for three things: the top going black, where the encoder cut away everything above a frequency it chose; holes and speckle, where it ran short of bits; and blocky or smeared patches, where it rebuilt or blurred what it could not afford to keep.
Every picture is drawn on the original’s colour scale, so whatever changes as you move the slider is the encoder’s doing. A file that went through any of these and was then saved as FLAC or WAV still carries the damage: converting it back cannot restore what the encoder threw away.
Press Play to hear it too: 12 seconds of the recording on a loop, marked on the picture as it plays. It is the encoder’s own output, decoded and saved with nothing further lost. Move the slider, or hold the button, while it plays, and the sound changes with the picture.
From the white paper
Figure 1 of Provir — reading the quantisation grid a lossy codec leaves in audio sold as lossless (Zenodo, 28 October 2026), and the paper’s own words about it.
Figure 1 shows, for one musical passage in three provenances, three readings at 44,100 Hz of the grid read by the base reader of the second application: in the first row the rigid statistic (section 3.3), in the form of Derrien (2019), at each of the 576 grid offsets of a 60-second read, with the alias-reduction butterflies applied in each of the two directions and with them not applied; in the second row the distance of each spectral coefficient to the reconstruction lattice at the locked offset, or for the lossless file at the offset of its largest reading, over a 25-second read, a dark cell lying on the grid; and in the third row the bands whose quantiser step collapsed at that offset, with the count of such cells and the count outside the top scale-factor band, which is drawn in light grey, beside the range of the same file's counts at three wrong offsets. Column (A) is a store download ruled not lawful, a pressed decode of a Layer III encode; column (B) is the corpus owner's compact-disc rip of the same passage, lossless; column (C) is an independent Layer III file of the same track kept for calibration only. The drawing is the one filed with the second application.
What was used
MP3: LAME 3.100, constant bitrate. AAC: Apple’s encoder through qaac 2.88, AAC-LC at constant bitrate (it goes no lower than 64 kbps at this sample rate). Vorbis: libvorbis 1.3.7, by quality setting. Opus: libopus 1.6.1, by target bitrate. Every file, the original included, was decoded and drawn the same way: a 4096-point spectrogram of the left and right channels averaged. The sound is 12 seconds of each file as 16-bit FLAC, every version of a recording lined up in time and held at the same level.
See also
What a hi-res file was made from: a true hi-res file, and the same sound made from lesser copies, each saved again as hi-res.
Credits
Music: “Assault on Mist Castle” by Tanner Helland, from tannerhelland.com, licensed under CC BY 4.0. Changes: encoded to the formats and rates shown, decoded, drawn as spectrograms, and cut to 12-second excerpts for the sound. The test signal was made for this page.