Media Compression

Media compression reduces the file size of audio, video, and image files through the use of media-specific compression algorithms. Unlike standard file compression algorithms like ZIP or RAR, which reduce file size while perfectly preserving the file data, media compression algorithms are designed specifically for the type of data they compress.

Most popular image file formats use some form of media compression. JPEG compression is a lossy method designed for photos that reduces subtle color variations to lessen the complexity of the image. GIF compression uses indexed color to reduce an image's color palette to 256 colors or fewer. PNG image compression uses a lossless algorithm that filters the image data and predicts the color of a pixel based on nearby pixels.

Audio compression codecs also attempt to remove imperceptible data to save file size. Lossy audio compression formats like MP3 and AAC remove unnecessary parts of an audio file — sounds too quiet or high-pitched for the human ear to hear. Lossless audio codecs like FLAC instead identify patterns in an audio signal that can be compressed and recreated perfectly. Lossy codecs result in significantly smaller file sizes, but lossless codecs preserve the entire audio signal while modestly reducing file size.

A video compressed using the HEVC video codec and the AAC audio codec
A video compressed using the HEVC video codec and the AAC audio codec

Since video files are much larger than images and audio files, most video codecs use lossy compression to save space. Video files may contain multiple data streams — the video itself, multiple audio tracks, and subtitle and caption tracks. Video codecs like H.264, H.265, AV1, and VP9 use a technique called inter-frame compression, which analyzes the differences between frames and only encodes the areas that change. Meanwhile, audio tracks use standard audio compression formats like AAC. Finally, compressed video and audio streams are combined into a container format like MKV, MP4, or AVI for distribution.

NOTE: In order to play back compressed media, a computer must have the necessary codecs installed.

Related file extensions: .JPG, .GIF, .PNG, .MP3, .M4A, .AAC, .MP4, .MKV, .AVI.

Updated April 26, 2023 by Brian P.

quizTest Your Knowledge

Which data type closely resembles a queue?

A
String
0%
B
Character
0%
C
Integer
0%
D
Array
0%
Correct! Incorrect!     View the Queue definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Media Compression on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.