Audio compression, how it works


Free Download Mp4Gain
picture

Audio compression, how it works

Audio compression
Audio compression

audio compression

 

audio compression
audio compression

 

Audio compression technology refers to the application of suitable digital signal processing technology to the original digital audio signal stream (PCM encoding), without losing the amount of useful information, or under the condition that the loss introduced be insignificant, reduce (compress) its code rate, and also called compression encoding.

It must have a corresponding inverse transform, called decompression or decoding. The audio signal can introduce a lot of noise and some distortion after passing through a codec system

Audio compression technology refers to the application of suitable digital signal processing technology to the original digital audio signal stream (PCM encoding), without losing the amount of useful information, or under the condition that the loss introduced insignificant, reducing (compressing) its code rate, and also called compression encoding. It must have a corresponding inverse transform, called decompression or decoding. Audio signals can introduce a great deal of noise and some distortion after passing through a codec system. The advantages of digital signal are obvious, but it also has its own corresponding disadvantages, ie increased storage capacity requirements and increased channel capacity requirements during transmission. Taking a CD as an example, the sampling frequency is 44.1KHz and the quantization precision is 16 bits, so a stereo audio signal for 1 minute needs to occupy about 10M bytes of storage capacity, that is, the capacity of a CD turntable is only about 1 hour. Of course, the problem is even more pronounced in the world of much higher bandwidth digital video. Are all these bits necessary? The study found that there is a large redundancy in the direct use of the PCM code stream for storage and transmission. In fact, sound can be compressed at least 4:1 under lossless conditions, that is, only 25% of the digital amount is used to retain all the information, and the compression ratio in the video field can even reach to several hundred times. Therefore, in order to use limited resources, compression technology has received much attention since its inception. The research and application of audio compression technology has a long history, like A-law coding, u-law is a simple almost instant compression technology, and has been applied in ISDN voice transmission. Research on speech signals has been developed before and has matured, and has been widely used, such as adaptive differential PCM (ADPCM), linear predictive coding (LPC), and other technologies.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Human Hearing: An Approach to Compressing Audio Data

 

Medical and physical examinations of human hearing and noise processing in the brain have shown that the hearing aid has its own perceptual characteristics. In certain circumstances, the brain does not register sounds or only partially registers them. Many signal components that are present in the acoustic signal are not even perceived by humans. The psychoacoustic call is concerned with investigating these facts. So far the following deficits in human ear perception have been discovered:

Curva auditiva del oído humano

Hearing perception range:

The waves can be emitted in a wide range of frequencies. However, the human ear can only really perceive a small section of this frequency range, the audio frequency range. In theory, humans can hear sounds with frequencies between 20 Hz and 20 kHz. In practice, however, it has been shown that ear sensitivity decreases considerably towards low and high frequencies. In the image above, amplitude, that is, sound pressure, is plotted against frequency.

Curva de audición específica de una pieza musical

Measurements have shown that all signals that are completely below the threshold of hearing at rest (red line) are inaudible. The amplitude of these tones (green peaks in the image) is too low, so their volume is too low to be perceived. It is interesting to see that the silent hearing threshold is not constant at a certain amplitude value, but changes with frequency. Very low tones (less than 50 Hz) are only perceptible from very high amplitudes, as are tones above 15 kHz. It should also be noted that not everyone has the same silent hearing threshold. Children can hear high frequencies much better than older people.

Masking:

Another deficit of the human hearing aid is the inability to distinguish between tones of very similar frequency and very different volume that occur simultaneously. This effect is also called auditory masking. Or German called simultaneous masking. A high-amplitude signal (dark blue in the image above), also known as a masker, hides quieter signals that have a similar frequency. In the image, these are all signals that are within the area highlighted in yellow. Some turquoise peaks are shown as an example. The yellow area is outlined by the orange individual masking threshold of the masker. The individual masking threshold and the silent hearing threshold can be combined to form the so-called global masking threshold. Thus, all signals below the global masking threshold are inaudible. In practice, auditory masking means nothing more than loud music signals cover the quiet parts and make them inaudible.
Another masking effect occurs when two tones follow each other in a very short time. Of these two tones, only the one with greater amplitude is perceived, that is, greater volume. Interestingly, even if the soft sound reaches the ear first, only the strong signal that arrives later is registered in the brain. This second important masking effect is also called temporary masking in technical jargon.

Low-frequency localization deficits:

Although the human ear is able to pinpoint the origin of high and mid-frequency tones in the room well, problems arise in the lower-frequency region. The brain calculates the location of the sound source from the difference in signal transit time between the left and right ears. If there is a sound source on the right, the waves emitted by this source are perceived earlier by the right ear than by the left. The origin of the tones is calculated from the time interval between the perception of the left and right ears. However, very low-frequency sound signals have very long wavelengths, making clear localization impossible. Therefore, there is practically no tonal difference between a mono sound source for low-frequency signals and a stereo sound source for very low-frequency sounds. Joint stereo effect. It is used, for example, in the construction of subwoofer satellite systems and is also a starting point for audio compression in the area of ​​low tones.
Therefore, the human ear can only improperly or not at all perceive a complete series of frequency ranges. In electrical engineering, the field of digital signal processing (DSP) deals, among other things, with mathematical processes that, in combination with the psychoacoustic model of the hearing aid, lead to data reduction.

What is an audio compressor

You’ve certainly heard of compression before: you know it’s an essential effect for mixing, but at the same time, don’t you necessarily master every setting of your plugins?

This is normal: it is a somewhat complex subject. And if you don’t know exactly what effect each parameter has on the sound, you risk damaging your mixes rather than improving them.

Therefore, I advise you to take a few minutes to see what the different settings of your compressors correspond to, so that you can adjust them yourself: in fact, whether you use a compressor for mastering or an analog audio compressor, the settings they are generally still the same!

 

What is an audio compressor?

It is mainly an effect, as well as equalizers, reverbs, distortions, etc. It can take the form of an add-on or an external effects module.

In general, and although there are many possible ways to use a compressor, you can reduce the dynamic range of a recording or a complete mix. That is, reduce the gap between the loudest and weakest sounds on the track.

Hence the name, moreover: a compressor compresses the sound.An example of an external stereo compressor, the ART Pro Audio VLA II
For example, if we have a voice track with a significant level variation between the words, we can level the sound by attenuating the loudest parts.

Here is an example in pictures:

Ejemplo de compresión

Compression example

In the image above, there is no compression: the signal (the singer’s voice, for example) alternates between significant peaks and less strong elements.

In the image below, compression was used to attenuate these spikes. In fact, they are now at a level closer to the rest of the recording. The dynamic range has therefore been reduced.

Compression threshold

The Threshold parameter is particularly important for successful compression.

It is simply the level in decibels (dBFS) from which the compressor begins to operate; in other words, it attenuates the signal.

For example, if your recording reaches a maximum of -12 dBFS and you set its threshold to -6 dBFS, the signal will not be compressed. In fact, the threshold is higher than the signal (-6 dBFS> -12 dBFS). Conversely, if you set it to -20 dBFS, the portion of the signal above this threshold can be compressed.

The audio compressor, what is it for?

If there is an instrument in the audio field that says everything and the opposite of everything, and whose very function may be almost incomprehensible to novices, this is the compressor.

compression

What is it and especially what is a compressor for?

Let’s try to get some clarity. A compressor is an instrument, analog or digital, hardware or software, that allows to intervene in the dynamics of the audio; The way it intervenes is regulated by a series of parameters that modify its operation.
In general, the use of a compressor aims to reduce the dynamic extension of the audio on which it acts, to subsequently increase its volume.
Let’s take any audio track as a reference.

 

What is meant by dynamics of an audio track?

The dynamics of an audio track defines the amplitude of the variation, in terms of volume, of the track itself: in practice, the difference between the maximum and minimum volume.
Let’s take an example.
Considering that we are in the digital environment, the volume of an audio track could vary, for example, between -50 dB (light background noise) and -5 dB (high volume): the dynamics (that is, the difference between the minimum value and the highest peak (highest) in this case would be 45 dB.
Track compression can reduce high peaks, for example by reducing them to -10 dB, with a decrease in overall dynamics to 40 dB: therefore, the dynamic spread decreases, i.e. by attenuating signal levels higher, we have limited the difference in volume of the same with the lower.
But why would you want to reduce the dynamics of a track?
Basically, because I lowered the highest peaks, I could now increase the overall volume of the entire track, causing audible sounds to be heard that were previously too low (or too hidden by too loud sounds).

How a compressor works

The compressor generally works on the basis of some user defined parameters:

– threshold: generally expressed in dB, it sets the volume level from which you want the compressor to start operating.
For example, by setting a threshold of -10 dB, the compressor will act on all sounds that exceed this threshold in volume.

– compression ratio (ratio): Sets how much the signal beyond the threshold should be compressed.
The ratio is expressed as a ratio: for example, a 2: 1 ratio means that a signal that exceeded the 10 dB threshold, after compression, will only exceed it by 5 dB.
That is, a 2: 1 ratio tells the compressor to reduce the signal overshoot beyond the threshold to 1/2.
When using very high compression ratios (over 10: 1), we are talking about limitation (and the compressor can be defined as a limiter), which is extreme compression that practically doesn’t allow anything or almost to cross the threshold.
When, on the other hand, we use an inverse compression ratio (for example, 1: 3), we talk about expander instead of compressor: the expander has an opposite action, that is, it tries to increase the dynamics of an audio track reducing the volume of the signals below a certain threshold. For example, an expander can be used as a noise reduction, zeroing signals below a very low threshold (that is, effectively eliminating background noise).