
Choosing the best format to compress audio data: MP3, AAC or WavPack?

If not lossless, who? MP3, AAC, what else? Previously, we have already studied music compression algorithms several times, it is time to compare the most valuable ones.

Amicably, one should give up lossy codecs entirely, but it’s always interesting to draw a line where quantity turns into quality. Also, even a lossy codec can surprise you with something, you’ll see. In this review, we decided not to fool ourselves with different VBR modes, but to immediately stop at the maximum bitrate with a constant value of 320 kb / s. Today, with modern laptop capacity, asking for an extra 10MB for album capacity at the risk of losing quality? So that? In general, even with older codecs, the 320 kb / s stream ensures the absence of characteristic artifacts with nasty jingles. The first part of the review will be devoted to comparing the growth of artifacts using RMAA software, in the second part, the subjective experience of the listener in real phonograms is presented.
Comparison frequency response of three lossy formats relative to original WAV
If the last time the iPad Mini was used as a sound source, now, to improve the accuracy, we take any influence of the iron out of the brackets, and then all the distortion analysis will be done exclusively in the digital domain, without conversion to analogical. , since RMAA provides that opportunity.
To do this, we generate a test sample in WAV in RMAA, then we alternately handle it in various lossy codecs. Then we will convert WAV from them again, so that the program can “recognize” the file and evaluate deviations from the original template. Now we look at how the high frequencies are cut off and the distortion grows, giving the sound an unpleasant color. By the way, there won’t be that many. In general, at a bit rate of 320 kb / s it will not be so easy to detect something harmful by ear. It’s not even artifacts, but maybe a bit of a “dull” sound compared to the original. The phonogram seems to fade a bit, it loses its mobility due to the alteration of transient processes after psychoacoustic processing. But it will not always be possible to clearly record this difference, it depends on the specific track.
MP3: avalanche distortion
Let’s start with the most popular format. MP3 is a monster from the Fraunhofer Institute that has taken over the Earth. Because of this, nowadays it doesn’t occur to anyone to use pure WAV for sound recording. Even if they rip out the defaced YouTube audio, they still shred it back to MP3, and even at an obscene 128kb / s bit rate. We will not do this, and for testing we will use the latest version of the LAME 3.100 encoder with an insane preset and a 320 kb / s bit rate.
In the first figure, it was seen that the spectrum in MP3, as expected, undergoes oscillations in the HF region and finally filters at the 20 kHz limit. Of course, this is the limit of the synthetic test; in a real music signal, it will probably be even lower. The size of the dynamic range in the MP3 file has not changed compared to the original. Those. The LAME 3,100 encoder at 320 kb / s does not add any intrinsic noise to the recording.
1 kHz waveform distortion when encoded in MP3 compared to original WAV
Converting a single 1 kHz signal to MP3 showed the appearance of many small harmonic distortions. And although formally their participation is small (0.0009%), that is, one and a half to two times less than in the exhaust of a good DAC: in the dynamic spectrum of a real phonogram, their number will grow in an avalanche and in an unpredictable order. Furthermore, the “thickening” of the base of the strait at the original 1 kHz peak indicates certain problems, tainted by parasitic oscillations. This characteristic is clearly illustrated by the 100 Hz “square” wave after conversion to MP3. As you can see, its outline loses its definition along the horizontal axis. All of this ultimately has a negative effect on hearing fatigue when listening to MP3s, unfortunately even the highest bit rates.
100 Hz “square” wave after conversion to MP3 (top) and AAC (bottom)
AAC: increase the noise, but keep it clean
A more precise way operates the AAS algorithm, which is actively used by Apple, and not only by it. Digital TV broadcasters work with this audio codec, and AAC is also included in the MPEG-4 container package.
















