Glossary termData compression method

Lossy Compression

Also known as: Perceptual coding, Irreversible compression

Data compression that permanently discards some information to achieve much smaller files, aiming to remove what human perception is least likely to notice.

Lossy compression reduces data size by approximating the original rather than preserving it exactly. Decoded output differs from the input, but well-designed codecs aim to make the differences imperceptible or acceptable at the chosen bit rate. Lossy methods are used for audio, images and video, in formats such as MP3, AAC and Opus for sound, JPEG for images and H.264 for video. They achieve far higher compression than lossless methods: a 128 kbit/s MP3 is roughly one eleventh the size of CD-quality PCM audio.

Perceptual audio codecs rely on psychoacoustics. They transform audio into frequency components, often using the modified discrete cosine transform, and apply a psychoacoustic model that estimates which components will be masked by louder nearby sounds or fall below the threshold of hearing. Bits are then allocated so that quantization noise stays beneath the masking threshold where possible. Research in the 1980s and early 1990s, including work at the Fraunhofer Institute in Germany, led to the MPEG audio standards.

Lossy compression made digital music portable and streamable, enabling MP3 players, file sharing and streaming services, and it underpins nearly all online video. Its limitations are that discarded information cannot be recovered and that artifacts such as pre-echo, smearing and swirling appear at low bit rates. Repeated re-encoding also compounds losses, a problem known as generation loss. For editing and archiving, lossless audio compression or uncompressed formats are preferred, with lossy encoding reserved for distribution. The choice among formats is discussed under audio codec.

Key points

  • Lossy compression discards information permanently to achieve much smaller files.
  • Perceptual audio codecs use psychoacoustic models to hide quantization noise under masking thresholds.
  • A 128 kbit/s MP3 is roughly one eleventh the size of CD-quality audio.
  • Repeated lossy encoding compounds artifacts, so lossless formats are preferred for editing and archiving.

Related entries

Technology

MP3

AudioIdeas and Culture

Lossy audio format developed largely at Germany's Fraunhofer institute that made music small enough to share and carry as computer files.

Technology

Opus

AudioFOSS

Open, royalty-free audio codec standardized by the IETF in 2012 that handles both speech and music with very low delay.

Glossary term

Audio Codec

AudioProgramming

Algorithm or software that encodes audio into a compressed or structured digital format and decodes it back for playback, such as MP3, AAC or FLAC.

Glossary term

Compression of digital audio that reduces file size while allowing exact, bit-for-bit reconstruction of the original samples on decoding.

Glossary term

Psychoacoustics

AudioBiohacking

Scientific study of how humans perceive sound, linking physical properties such as frequency and intensity to sensations like pitch, loudness and location.

Technology

FFmpeg

AudioFOSSProgramming

Free and open-source suite of libraries and command-line tools for recording, converting, streaming and processing audio and video.

Glossary term

Number of samples per second used to represent an audio signal digitally, which sets the highest frequency a recording can capture.

Featured in guides

Referenced by

Other entries that discuss or point to Lossy Compression.