
MP3 – Everything you need to know about mp3
The phenomenon of MP3 has revolutionized the Internet world, which has not been the same since then.
Never before have you seen a format that reduces an audio file from 40Mb to 4.
Truth be told, there was something similar, but the quality was not comparable to that
that the mp3 could achieve. But how the heck does this popular format called MP3 work?
This technology caused record companies to lose billions and save tens
(hundreds) of euros for us users?
The magic of the MP3 format.
Well, most of this “magic” resides in a science called psychoacoustics and a series of
very complicated mathematical calculations.
Uncompressed audio and CD audio store more data than our brains
can process and perceive. For example, if two notes are very similar and are together, your brain
you will receive only one of these. If there is a strong and weak sound, your brain will hear the loudest.
then your brain will not be able to hear the smallest sound.
The study of these phenomena and our perception of sound is called psychoacoustics.
MP3 compression technology analyzes sound and breaks it up, comparing it to models
sound included in the compressor itself. Will remove most mismatched sounds
to sound patterns and will keep the ones that match.
The person performing the compression can specify the number of bits to be assigned to each
music second: the higher the number of bits and the less data will be deleted; with some bits in place
More sounds will have to be erased.
This type of compression is called lossy or lossy compression.
MP3 files are made up of a series of very short frames, as in the video, and
Each box is preceded by the header, which contains additional information about the data to come.
At the beginning or end of an MP3 file there is additional information about the file, such as the artist name,
Track title, album, year, genre and comments: This information is called ID3 data (tag).
How mp3 compression occurs.
As is known, the MP3 format eliminates what the human ear cannot hear.
These sounds are removed but there is a small part to not return
“drastic” cut.
But this is only part of the techniques used for compression … first:
the signal is analyzed and a decision is made on how to distribute the available bits, after which it is divided
in sub-bands, processed separately by algorithms.
The available bit rate is calculated, obtaining the number of bits that will be assigned to each frame.
This procedure determines how much audio will be kept and how much will be cut instead.
The frequencies of each frame are compared with the psychoacoustic models contained in the
compressor. From these models, it is determined which frequencies to elaborate with precision,
as perceived by human ear, and which can be partially removed or cut,
since we won’t be able to hear them anyway. Why save what is not needed?
Then the masking effects come into play: if there is a loud sound and a sound
weak it is possible to eliminate the latter, calculating the milliseconds during which it will not be audible.
Similarly, two overlapping sounds (due to intense intensity) or static parts of the sound.
(silence, whisper of sound) are cleverly masked.
Bitrates
How the sound chunks are removed also depends on the bit rate set by the user in
Compression moment. The bit rate corresponds to the number of bits per second used for the
file storage The higher the bitrate, the higher the resolution of the sound.
Imagine a movie: with multiple frames, the image will be fluid, in the same way at a bit rate
greater will correspond to a more complete sound, faithful to the original.





