Everything2
Near Matches
Ignore Exact
Full Text
Everything2

audio compression

created by Deimios

(idea) by Deimios (3.2 y) (print)   ?   (I like it!) 1 C! Mon May 28 2001 at 23:31:06

Most modern digital audio compression CODECs are based around the same basic principle. An audio signal, plotted on a graph would look something like this: (vertical axis-magnitude, horizontal axis-time, dots represent the signal)

|
|.         . .         . .
| .       .   .       .   .
|  .     .     .     .     .
|--.-----.-----.-----.-----.--
|  .     .     .     .     .
|   .   .       .   .       .
|    . .         . .         .
|

Regular, uncompressed audio files work by converting the analog signal into digital, a process known as sampling is used. The ADC (analog-to-digital converter] measures the magnitude of the signal at regular intervals, and records these values into a file, like this:

|
|.         . .         . .
| .       .   .       .   .
|  .     .     .     .     .
|--.-----.-----.-----.-----.--
|  .     .     .     .     .
|   .   .       .   .       .
|    . .         . .         .
|^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
 S S S S S S S S S S S S S S S
 3 |-3 | 0 | 3 |-3 | 0 | 3 |-3
   0  -3   3   0  -3   3   0

While this process produces fairly good quality audio reproduction, it tends to create MASSIVE files. To create a digital audio file at CD quality requires that you sample 44,000 times a second...a raw digital audio file at that quality is roughly 10 times larger than a regular everyday MP3 (that's about 10 Mb for every minute of audio). Audio compression uses a method that's actually over 150 years old, developed by Jean-Baptiste Joseph Fourier, a French mathematician.

In 1822. Fourier discovered that you could describe any periodic function (such as our audio signal) with an infinite series (known as a fourier series) consisting of a fundamental sine or cosine wave and its harmonics. The series is basically the same for every wave, except for a constant at the beginning of each term, and a value describing the frequency of the wave. In layman's terms: we can plug a few numbers into our equation, and it'll reproduce the wave almost exactly the same as the original.

|
|.         . .         . .
| .       .   .       .   .
|  .     .     .     .     .
|--.-----.-----.-----.-----.--
|  .     .     .     .     .
|   .   .       .   .       .
|    . .         . .         .
|<------f(t)--------->|

We break our audio signal into blocks (short bites of time), and the computer examines each block, and finds a group of constants to satisfy the fourier series for that block, then moves on to the next block. The result? all we have to do is record our constants and the length of our blocks into a file, and tada...a compressed audio file, which is miraculously much much smaller than the raw digital audio file we started with.

printable version
chaos

Compression artifacts How to choose the appropriate lossy audio compression format MP3 DFX Audio Processing
Kenwood KDC-MP8017 MP3-CD An Introduction to Data Compression, MPEG Video, and DVD Technology AAC CODEC
Fourier series MPEG Rudy Van Gelder self-extracting executable
induction principle iTunes Music Store audiobook Wired
hot potato Armageddon Winamp Napster
audio MPC
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
The fall and rise of online community
Wall of Death
Miami Herald, 2/13/96
Sumerian
futhark
biopiracy
Cat o' nine tails
Too much living is no way to die
Kiss of the Spider Woman
Watching my kitty-cat die
flea
Meek and obedient you follow the leader down well trodden corridors into the valley of steel
Pioneer 10
New Writeups
Aerobe
Watch out for falling meat(poetry)
C-Dawg
Beelzebub has a devil put aside for me(fiction)
Pavlovna
My Better Half(fiction)
kanoodle
Molson muscle(essay)
aneurin
You pays your money and you takes your choice(idea)
shaogo
July 20, 2008(log)
Glowing Fish
Tualatin River(place)
The Jacket
Words of Advice(idea)
John_Fox
Good Intentions Gone Wrong(person)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
This page courtesy of The Everything Development Company