Media Compression

Like file compression, the goal of media compression is to reduce file size and save disk space. However, media compression algorithms are specific to certain types of media, such as image, audio, and video files.

Most popular image formats use some type of compression. Three of the most common include JPEG, GIF, and PNG. JPEG compression, which is commonly used for digital photos, incorporates a lossy compression algorithm that averages nearby colors and removes color variations that are imperceivable by the human eye. GIF compression reduces the color palette of an image to 256 colors or less, which provides an efficient way to represent each color within the image. PNG compression uses a lossless compression algorithm that filters the image data and predicts pixel colors based on other nearby pixels. While each of these algorithms work in different ways, they can all be used to significantly reduce the file size of an uncompressed image.

Several common audio file formats also use compression to save disk space. Popular audio formats, such as MP3 and M4A use compression algorithms that remove inaudible frequencies and reduce the dynamics of the sound. Since uncompressed audio files, such as AIFF and WAVE files, take up a lot of disk space, they are often compressed as MP3 or M4A files before they are distributed over the Internet. These files are typically around one tenth the size of the original audio files and have nearly identical sound quality.

Most video files are also compressed. Popular video formats, such as MPEG and DivX compress video using a specific codec. Each codec uses a custom algorithm that removes redundant information from the video. For example, if the background of a video doesn't change for a while, a codec can reduce the file size by not redrawing the background every frame. A video codec may also incorporate audio compression to reduce the size of the audio track. Since encoded videos are decoded as they are played, the codec that was used to encode a video must also be available to decode the video. Therefore, in order to play a compressed video file on your computer, your video player software must have the appropriate codec installed.

Related file extensions: .JPG, .GIF, .PNG, .MP3, .M4A, .MPG, .DIVX.

Updated April 8, 2011

Definitions by TechTerms.com

The definition of Media Compression on this page is an original TechTerms.com definition. If you would like to reference this page or cite this definition, you can 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 the Media Compression definition or would like to suggest a new technical term, please contact us.

Want to learn more tech terms? Subscribe to the daily or weekly newsletter and get featured terms and quizzes delivered to your inbox.

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.