Audio Box HomeContact Audio BoxAudio Box ProductsDigital Audio InformationNews and Press Releases
Audio on a PCKnown IssuesDigital Audio ExtractionAudio CompressionAudio QualityOnline Resources

 

Compression on a Windows PC

Audio Compression can be one of two categories, lossless or lossy.  Lossless compression algorithms return audio data that is identical to the original audio information.  Lossless compression sounds wonderful, however it does not yield an extremely high compression ratio.  Typically, lossless routines give a ratio no higher than 2:1 for realtime playback for audio with a full dynamic range.

Lossy Audio Compression can yield a variety of different rates of compression based on the ability of your hardware and software to decode and playback the music audio data in real-time.  There are various compression schemes to achieve different results; for example, many codecs remove portions of the audio signal that human hearing is less sensitive to.  To some peoples ears the resulting audio has distinguishing artifacts or characteristics that change the listening experience.  The final "quality" level is largely a matter of personal perception.

Each different encoder/decoder (CODEC) has different strengths and weaknesses.  Typically, ENCODING takes a long period of time and large amounts of processing power.  DECODING must be real time or faster -- able to decode and play simultaneously -- to be useful for an "on demand" digital audio playback system.
 

A detailed comparison of audio quality and compression can be found online at http://cips02.physik.uni-bonn.de/~scheller/audio/main.html

Brief descriptions of some different audio compression formats follows:


ADPCM

Adaptive Delta Pulse Code Modulation (ADPCM) comes in a few different versions.  It is popular since is returns a high quality signal with very little processing power required for fast decoding.  The Microsoft algorithm used returns a compression scale of 4:1 (one fourth the original file size) with very little loss in sound quality.  Microsoft kindly includes a reliable ADPCM codec with every copy of Windows.


MPEG

The Moving Pictures Experts Group (MPEG) put a considerable amount of research into ways of compressing video and audio to make movies fit onto compact discs.   A wide variety of software and hardware encoders and decoders currently exist.   For a very technical and detailed review of MPEG, you can read the online FAQ about MPEG.   Strangely (notice the "P" for pictures) the compression levels for video are well over 20:1, and MPEG audio compression loses quality quickly at compression levels higher than a 6:1 compression ratio.   MPEG Audio compression continues to degrade until it becomes absolutely dismal at 24:1 compression.   An extension to MPEG-1 and MPEG-2 audio called 'Layer 3' (commonly known by its file extension, MP3) has been developed allowing greater compression levels and more BIT DEPTH options.

Software routines for MPEG audio decoding are fast to decode with relatively low quality loss, but generally speaking it takes a LONG time to encode.   MPEG-4 has been ratified as a standard, and new codecs will become available in the not-too-distant future.

The compression ratio for MPEG compression can be adjusted across a wide range of quality levels, however sound quality drops as the compression is increased.   Since MPEG audio uses a perceptual model, the exact perceived amount of lost quality varies for each individual listener.   Trying to maintain the highest quality (without extremely noticeable signal loss) yields the following compression ratios:

Layer 1 = 1:4 (384 kbps for stereo)
Layer 2 = 1:6 or 1:8 (256 kbps or 192 kbps for a stereo signal)
Layer 3 = 1:10 or 1:12 (128 kbps or 112 kbps for a stereo signal)



MPEG I Layer 3 by Fraunhofer

This format was created by the Fraunhofer IIS, and is marketed by Opticom.   Online info is located at http://www.iis.fhg.de/amm/techinf/layer3/index.html   Their product, MP3 Producer, is the reference MP3 encoder.

The "free" MP3 ACM codec that Microsoft provides does not have the full range of compression options for encoding.   The Producer "professional" version does have the complete range of bit rate options, along with the abiltiy to save raw MP3 files or MP3 files in WAV format.

Many MP3 advocates would like you to believe that MP3 is "true CD Quality audio."   Unfortunately, that claim isn't quite true.   A more factual claim would be "near CD quality at bit rates of 128 kbps or higher."   The quality issues with MP3 are typically not because of a limitation of the compression format, but a standard practice of compressing the audio to a bit rate lower than 128 kbps.



MPEG I Layer 3 VBR by Xing

The Xing MPEG encoder has a feature called VBR (Variable Bit Rate) encoding.   Acknowledging the limitations of extreme audio compression, they have created an encoder that will adapt to use less compression for complex audio signals.

This format has the advantage of encoding very quickly, as well as using less compression when appropriate.   The drawback to this format is the irregular time/size issues created when using random access playback.


ATELP

ATELP Compression was developed by SoftSound with the goal to provide near-CD quality at meaningful compression rates.   ATELP uses a modeling technique to discard portions of the audio data.   More information is available online at http://www.softsound.com.   SoftSound claims ATELP to be superior to any MPEG 2 software implementation at any given compression rate.   ATELP yields a compression ratio of 12:1, 20:1, or 30:1.


AAC

The Advanced Audio Coding format focuses on multichannel support, but it should be very usable for 1 or 2 channel (mono or stereo) applications.   Online info is at http://www.iis.fhg.de/amm/techinf/aac/index.html   Relying on MPEG standards, and extending the layer 3 format, AAC incorporates new filtering systems and advanced coding techniques.   As of yet, it has not been widely adopted.



TwinVQ

The Transform-domain Weighted Interleave Vector Quantization format is more commonly known by its file extension, VQF.   The plus side of this format is higher compression than MP3 while providing better subjective audio quality.
(e.g. VQF @ 12:1 compression is closer to CD quality than MP3 @ 10:1)

The hardware requirement of VQF is higher, including much longer encoding times and more CPU cycles required for playback.


 

File Size of Compressed Audio Data

For most formats, a given compression yields a constant file size.

The following Adobe Acrobat file compares various compression formats and their space requirements:

Digital Audio Compression Table (GRAPH.PDF)

 

Software Compression Engines and Encoding Times

All encoder engines are not created equal.  A sample of "CD Quality" (44_16_Stereo) music was recorded.  The original music had a play length of 5:13. Using a variety of software tools, the ENCODING + SAVING process yielded the following results:

Time Format Output Ratio Encoder Software
0:23 PCM WAV 1:1 Cool Edit 96
0:36 MP2 WAV 6:1 Q-Design MPEG ACM Codec
0:39 MP2 WAV 3:1 Q-Design MPEG ACM Codec
1:09 ADPCM WAV 4:1 Microsoft ADPCM Format
6:18 MP2 MP2 6:1 MPEG Layer-2 GNU (CoolEdit Filter)
6:32 MP3 MP3 10:1 mp3 Producer v2 By Fraunhofer
8:06 MP3 WAV 10:1 Fraunhofer MPEG Layer-3 ACM Codec

The test system was a Pentium-II 300 with 128 MB of RAM and a 6.4GB UDMA HD.  Cool Edit 96 was used to save ACM format WAV files.  Encoding was done twice into each format, and the above listed times represent an average of the two times.


Back to Top

Copyright 1997-2005, Audio Box Inc.
All Rights Reserved