File Compression
File Compression
This type of compression usually results in some loss of detail when compared to the
original; it is usually impossible to reconstruct the original file. The algorithms used in the
lossy technique have to decide which parts of the file are important (and need to be kept)
and which parts can be discarded.
Note: While streamed or MP3 music quality can never match the ‘full’ version found on a CD, the
quality is satisfactory for most purposes.
But how can the original music file be reduced by 90% while still retaining most of the music
quality?
By using file compression algorithms that use perceptual music shaping. Perceptual music
shaping removes certain sounds. For example
» frequencies that are outside the human hearing range
» if two sounds are played at the same time, only the louder one can be heard by the ear, so
the softer sound is eliminated.
• This means that certain parts of the music can be removed without affecting
the quality too much.
• Since MP3 files use a lossy format, (part of the original file is lost following
compression) the original file cannot be put back together again.
• However, the quality of MP3 files can be different, depending on the bit rate
– the number of bits per second used when creating the file. Bit rates are
between 80 and 320 kilobits per second; usually 200 kilobits or higher gives a
sound quality close to a normal CD.
• MPEG-4 (MP4) files :
• Allow the storage of multimedia files rather than just sound; Music, videos,
photos and animation
• Videos, for example, could be streamed over the internet using the MP4
format without losing any real discernible quality.
Note: Vector graphics can also undergo some form of file compression. Scalable vector
graphics (.svg) are defined in XML text files which, therefore, allows them to be compressed.
With this technique, all the data from the original file can be reconstructed when the file is
uncompressed again. Lossless file compression is designed to lose none of the original
detail from the file (such as Run-Length Encoding (RLE).