CBR vs ABR for MP3 Files

CBR vs ABR for MP3 Files

CBR vs ABR
CBR vs ABR
CBR vs ABR
CBR vs ABR

 

As a music producer and audio engineer, I have spent countless hours working with MP3 files and experimenting with different encoding settings. One of the most important decisions when encoding an MP3 file is whether to use constant bitrate (CBR) or average bitrate (ABR).

CBR is a method of encoding where the bitrate remains constant throughout the entire file. This means that the file size will be consistent, but the quality may suffer in more complex sections of the audio. ABR, on the other hand, adjusts the bitrate dynamically based on the complexity of the audio, resulting in a more consistent quality throughout the file.

Both CBR and ABR have their advantages and disadvantages, and the choice between the two will depend on the specific context and desired outcome.

Difference Between CBR and ABR

The difference between CBR and ABR for MP3 files lies in the way the bitrate is allocated throughout the file. CBR maintains a constant bitrate, while ABR adjusts the bitrate dynamically based on the complexity of the audio.

As a music producer and audio engineer, I have experimented with both CBR and ABR and have found that the choice between the two will depend on the specific context and desired outcome. CBR may be preferable for files where consistency in file size is important, while ABR may be preferable for files where consistent quality is more important.

Ultimately, the choice between CBR and ABR will depend on the specific needs of the project and the desired outcome.

CBR vs ABR Bitrate

The bitrate is a critical aspect of MP3 encoding, and the choice between CBR and ABR can have a significant impact on the resulting bitrate. CBR maintains a constant bitrate throughout the file, while ABR adjusts the bitrate dynamically based on the complexity of the audio.

As a music producer and audio engineer, I have found that the choice between CBR and ABR bitrate will depend on the specific needs of the project. CBR may be preferable for files where consistency in file size is important, while ABR may be preferable for files where consistent quality is more important.

Ultimately, the choice between CBR and ABR bitrate will depend on the specific context and desired outcome.

CBR vs ABR Quality

The quality of an MP3 file is a critical aspect of audio encoding, and the choice between CBR and ABR can have a significant impact on the resulting quality. CBR maintains a constant bitrate throughout the file, while ABR adjusts the bitrate dynamically based on the complexity of the audio.

As a music producer and audio engineer, I have found that the choice between CBR and ABR quality will depend on the specific needs of the project. CBR may be preferable for files where consistency in file size is important, while ABR may be preferable for files where consistent quality is more important.

Ultimately, the choice between CBR and ABR quality will depend on the specific context and desired outcome.

CBR vs ABR Encoding

The encoding process is a critical aspect of MP3 file creation, and the choice between CBR and ABR can have a significant impact on the resulting file. CBR maintains a constant bitrate throughout the file, while ABR adjusts the bitrate dynamically based on the complexity of the audio.

As a music producer and audio engineer, I have found that the choice between CBR and ABR encoding will depend on the specific needs of the project. CBR may be preferable for files where consistency in file size is important, while ABR may be preferable for files where consistent quality is more important.

Ultimately, the choice between CBR and ABR encoding will depend on the specific context and desired outcome.

What is the MP3 compression principle?

What is the MP3 compression principle?

MP3 compression
MP3 compression

In fact, there are many audio compression technologies and MP3 compression technology is not the best.

MP3 compression
MP3 compression

But now it seems that it is still mainstream.
Musical signals have many redundant components, including spacing and information that the human ear cannot distinguish (such as weak signals mixed with a strong background). The CD sound is not compressed and uses a fixed sampling frequency of 44.1 kHz, which can ensure good playback of maximum dynamic music. Of course, the amount of data where the amount of information is less is also the same, so there is a possibility of compression. The audio bandwidth of 20 ~ 20 kHz (upper CD player can be extended up to 2 Hz) has become the current music standard. To reduce sound distortion, MP3 adopts an encoding algorithm called “sensory encoding technology”: when encoding, first perform spectrum analysis on the audio file, then use a filter to reduce the noise level, and then quantize the noise. remaining bits are scattered and arranged, and finally an MP3 file with a higher compression ratio is formed, and the compressed file can achieve a sound effect closer to the original sound source during playback. Although it is a lossy compression, its biggest advantage is very little sound distortion in exchange for a higher compression ratio. And now MP3 adopts a variable compression ratio (VBR) compression technology similar to Dolby AC-3. The sampling compression ratio depends on the amount of information in the music, and the masking effect of the human ear is used to reduce redundant data.

How does an mp3 work?

How does an mp3 work?

Mp3 Compression
Mp3 Compression

Why is an mp3 more compact?

Mp3 Compression
Mp3 Compression

The format known as mp3 was created with the intention of being able to contain the audio that a WAV contained, for example, but occupying much less space.

That is, it is not an audio container variant made for other purposes. It was specifically designed, created and thought to be able to compress an audio that to human ears would sound the same as the original WAV but that by various means would occupy much less space.

Obviously the first tool is zip compression and redundancy compression.

For example, if a piece to be compressed was the following:

00000111110000011111

The mathematical way to compress it (seen from a simplified point of view) would be:

0(5)1(5)0(5)1(5)

That is, five zeros, followed by 6 zeros, followed by 4 zeros and ending with 6 zeros.

It is much easier to decipher it that way and it occupies much less space uew using the zeros and ones.

That is the basic way to save space: looking for a way to express the same thing, but using much fewer signs or elements.

Imagine that the first three seconds are silent:

000000000000000000000000 and so on for 200 zeros. It is easier to write in some way that at the beginning there will be 324 zero numbers.

Later, and we will see this later, the mp3 uses the well-known way in which the human ear captures sound, to decide which elements can be eliminated (for example, frequencies that the human ear cannot distinguish) and thus save more space.

How to compress an mp3 so that it takes up less space on the hard drive?

How to compress an mp3 so that it takes up less space on the hard drive?

Mp3 compression
Mp3 compression

An mp3 occupies one eleventh of the original on average.

Mp3 compression
Mp3 compression

Sometimes people don’t realize that literally compressing an mp3 means making the data take up a lot less space on the hard drive.

A WAV usually takes up a lot of space, especially because it saves as much information as possible.

A long time ago it was determined that the human ear was not very precise and therefore there were many sounds that could not be heard.

Based on an analysis of all this information about the peculiarities of human perception with respect to sound, an algorithm could be achieved to remove all this information, which was contained in the original WAVs, but since it could be removed without major impact, achieved that the compression was not only of the zip type, but also auditory.

The result was surprising, since an mp3 managed to occupy an average of one eleventh of the size of the original audio with hardly any differences being perceived.

Over time this has improved even more and it has been achieved, according to many tests carried out by many different researchers, to determine that an mp3 with a bitrate of 192 or more and a samplerate of 410 or more is almost impossible to distinguish from some audio without lost for 99.99% of people.

Especially if we consider the quality of equipment and headphones available today.

How much compresses an MP3

How much compresses an MP3

MP3 compression was an engineering response to the problem of digital storage and its large memory resource requirements. A conventional digital signal called PCM (Pulse Code Modulation) could easily require up to 10 Megabytes of memory per minute. This would represent about 30 Mb for a three minute song.
That requirement for storage memory could be handled by any computer if it were a few files, but when talking about three thousand songs the numbers become worrying. As if this were not enough, there is the problem of the Internet and its current transmission speeds. In the case of telephone lines, they have a limitation on their transmission bandwidth, so very large or heavy files represent a problem for conventional network traffic.

MPEG3 compression is considered the sound part of the original MPEG1 format that was intended for cinematography. Its abbreviations, Moving Picture Experts Group come from the committee that was created by the ISO Organization (international Standards Organization) and IEC ((International Electrotechnical Commission) to develop this format. Its principle is based on the Psychoacoustic model.

The human ear is known to discriminate sound according to its limitations. According to subject matter expert Paul Sellars, “If you hear solitary applause in a room, it will surely sound loud, but if it is preceded by the sound of a gunshot, it will sound fainter. The same thing happens in a room when you record a rock band, at a certain moment the strongest sound guitar in the mix, until the moment the drummer plays a certain cymbal, at which point the guitar will seem to attenuate “This phenomenon is used by the MP3 algorithm to perform its compression . I once explained it in the article that talked about ATRAC compression of the Minidisc.

The MP3 format divides the sound into 32 sub-bands, which allows it, according to the Psychoacoustic model on which it is based, to give priority to one element over another. At a certain moment in the material we can have a predominant low frequency sound of the kick drum, a high frequency of the cymbal and the vocalist at the same time. The algorithm is not that it eliminates two of them, but that it dedicates less storage space to them.

The mathematical part used with MP3 compression goes through the Shannon-Nyquist theorem, which states that for a wave to be properly reproduced in PCM digital format, its frequency of takes (Sampléo) must be twice the highest that is want to reproduce. In this case if we want to reproduce the frequency of 22.5KHz, (The auditory range oscillates between 20Hz-20KHz), our sampling frequency should be 44.1KHz.

The Fast Fourier Transform (FFT) is also used, which as we know can decompose a complex wave (PCM material) into a fundamental wave with its harmonics, all from its amplitude. The Discrete Cosine Transform is also used, which is based on the FFT but only using the real numbers

UNTIL IT IS RECOMMENDED

These formats will continue to be perfected and emerge, but it should be understood that despite being disseminated there may be details that will not be perceived. In other words, for serious Audio work this format should not be used.

Some improvements can be made by looking for compressors that have a better ratio, such as 224, 256 and 320 Kbps. You can also consider using VBR (Variable Bit Rate) encoding where musical passages with greater dynamic complexity are treated with a higher rate. storage in contrast to the simplest. However, this will bring other complications because not all the reproducers can handle them.

Audio quality: Bitrate in MP3 files

In many cases, the term Bitrate is used, which is the bit rate per second that a multimedia file (Audio or Video) has. Currently the MP3 music format is one of the most widespread (Although there are currently other more current formats such as OGG Vorbis, AAC, Flac, Monkey Audio, …) however the audio quality is variable, this is due to the characteristics with which the MP3 in question has been compressed, including:

Mode: It can be of two types mainly:

Mono: With a single channel (The right and left channel go together, not separated which gives worse audio quality).

Stereo: Two channels (Right and Left, improve audio quality).
Sampling frequency: Audio CDs use 44,100 Hz (22,050 Hz per channel), although there are higher frequencies such as 48,000 Hz used in DVDs and lower, the higher the frequency, the higher the quality.

Bits: Audio CDs have 16 Bits (Although MP3 can be compressed at a lower quality such as 8 Bits).

Bitrate (Bit Rate per second): Audio CDs have about 1,400 Kbps (44100 Hz * 16 Bits * 2 channels), meaning that an Audio CD would have a bitrate of 1,400 Kbps (In MP3 format the maximum Bitrate is 320 Kbps, however, it is assumed that an MP3 with a 128 Kbps Bitrate has a quality similar to CD, although in many cases to achieve a quality similar to CD it is necessary to use a Bitrate of 192 Kbps, and to obtain CD quality it is necessary use 256 Kbps or 320 Kbps). Some of the most common Bitrates are:
8 Kbps Mono: Telephone Sound.
16 Kbps Mono: Better quality than shortwave.
32 Kbps Mono: Better quality than AM.
64 Kbps Stereo: Better quality than FM.
112 – 128 Kbps: Quality close to CD.
160 Kbps: Quality closer to CD.
192 Kbps: Virtually CD quality.
256 Kbps: Quality CD practically undisputed from an original CD.
320 Kbps: CD quality.

Coding method: It can be of two types:

VBR (Variable Bit Rate, Bit Rate Variable): Encodes the file in MP3 with a variable Bitrate.

CBR (Constant Bit Rate, Constant Bit Rate): Encodes the MP3 file with a fixed Bitrate.
In addition, another factor that influences the encoding of the MP3 file is the CODEC (Encoder-Decoder) used, one of the most common and the best result is LAME (Lame Ain’t an MP3 Encoder) which is also free.
One point to keep in mind is that if we recompress an MP3 file that originally has a 128 Kbps bitrate and convert them to 192 Kbps for example, audio quality is not really gained because the MP3 format has some quality loss (MP3 is a loss algorithm, also called lossy). which has occurred when converting the original file (Ex: CD Audio or a 320 Kbps MP3 to a 128 Kbps MP3) so this recompression does not make much sense since we will not gain in audio quality (As they say where there is no one can not get) and the only thing we will achieve in any case is to increase the initial size of the file.
The opposite case (Recompress a 320 Kbps MP3 file for example at 192 Kbps) if it makes some sense because in this case although we lose some audio quality we reduce the weight (Kilobytes or Megabytes) of each MP3 file somewhat.
In conclusion, it can be said that if we need to encode / compress an MP3 file with good quality, the “ideal” would be to do so:
To be able to start from an Audio CD, although an MP3 at 320 or 256 Kbps could also be valid for a recompression of the file.
In stereo mode (With two channels, right and left).
With at least 44100 Khz sampling rate and 16 Bits.
With a minimum bitrate of 192 Kbps or at most 256 Kbps (Using 320 Kbps would give higher quality but also increase the file size considerably).