How to get all your mp3s to have the same volume level?

How to get all your mp3s to have the same volume level?

MP3 Normalizer

The question is clear but can be expressed in many ways:

mp3 volume level equalizer

-How do I get my mp3s to have the same volume?
-How to make all your mp3s have the same level of dbs (decibels)?
-How do I make sure that all my mp3s have a similar volume and there are no drops or increases in volume?
-How to get my mp3 to play at the same volume level?

-Volume level equalizer?

And so, I could continue writing many of the questions that come to us at Mp4Gain and that basically mean the same thing, but people have some difficulty expressing exactly what they need or want.

Because basically what they are looking for is that the different mp3s have the same sound… that they sound at a similar volume to each other.

That can be called normalize, although some people use the word “compress sound volume” even though it has its own difference… but we understand what they mean.

And the answer is simple: use Mp4Gain.

Mp4Gain offers various options (from Replay Gain to audio volume compression) to give you what you are looking for. It is by far the most advanced normalizer, although it is very simple to use.

In general terms you will only need to download the program, load your music or videos (Mp4Gain normalizes many audio and video formats and can do it in batch mode even if you use different formats) and click “NORMALIZE” and that’s it.

You don’t even need to understand what a decibel is or understand anything, just load your files and click on it and you already have the volume level problem solved.

MP3 decoding algorithm.Part 2

MP3 decoding algorithm.Part 2

MP3 decoding algorithm

Synchronization and error checking include header information decoding module.

MP3 decoding algorithm

 

After the main control module starts to work, the main control module passes the data buffer of the bit stream to the synchronization and error checking module. This module includes two functions, namely header information decoding and frame decoding Side information decoding, scale factor decoding and Huffman decoding are performed according to your information, and the obtained results are obtained after of inverse quantization, stereo decoding, alias reduction, IMDCT, frequency inversion, and synthetic polyphase filtering. of the left and right channels is then placed in the output buffer by the main control module and sent to the sound playback device (in short, it’s very complicated).

2. Main control module
The main task of the main control module is to operate the input and output buffers and to call other modules to work together. Among them, the input and output buffers are provided by the DSP control module interface.

The data in the input buffer is the original mp3 compressed data stream, and the DSP control module provides a buffer larger than the maximum possible frame length each time it is concatenated to form a new buffer.

The data stored in the output buffer is the decoded PCM data, which represents the amplitude of the sound. It consists of a fixed-length buffer. Calling the DSP control module’s interface function returns the main pointer. After the output buffer is filled, interrupt processing is called to send to the audio ADC chip (DAC stereo audio and ADC audio) connected to the I2S interface. DirectDrive headphone amplifier) ​​to output analog sound.

3. Synchronization and error detection
The error detection and synchronization module is mainly used to find the position of the data frame in the bit stream and decode the frame header, CRC check code and frame side information from this position, and the decoding results are used for subsequent scaling factors. Decoder module and Huffman decoder module. The main data format of the Mpeg1 layer 3 stream is shown in the following figure:

Master Data Flowchart

Among them, granule0 and granule1 represent granularity group 1 and granularity group 2 in one frame, channel0 and channel1 represent two channels in one granularity group, scalefactor is the quantized value of scale factor is the quantized Huffman encoding value , which splits into For large values ​​and count1 1 value area

CRC check: expression is X16+X15+X2+1

3.1 Frame synchronization
The purpose of frame synchronization is to find out the position of the frame header in the bit stream. According to ISO 1172-3, the MPEG1 frame header is 12 bits “1111 1111 1111”, and the two adjacent frame headers are separated by equally spaced bytes.

MP3 decoding algorithm.

MP3 decoding algorithm.

MP3 decoding algorithm

If you are interested in audio and video technology, you can subscribe to my Video Player and Audio and Video Basics topics.

MP3 decoding algorithm

1: Introduction to the general structure of the MP3 codec
MP3 decoding process

Look dumbfounded, right? There are many concepts here that need to be explained one by one.

Bitstream: Bitstream is a content distribution protocol. It uses an efficient software distribution system and peer-to-peer technology to share large files (such as a movie or TV show) and allows each user to provide upload services as a network redistribution node. (Because no professional has studied this content, I will interpret it as a datum for now, and the internal content will have time to discuss.)

Synchronization and error checking – The transmission and synchronization of mp3 data streams are based on frames. A frame is the smallest format unit of MP3, it can no longer be divided. The header of each frame contains basic information about the current frame, including timing information. The composition of the sync information is ‘1’ which contains 12 consecutive bits. The first step in the mp3 video decoding job is to synchronize the decoder with the input data stream. After starting the decoder, it can be done by looking for 12 consecutive bits of ‘1’s in the data. Once the synchronization information is obtained, the subsequent frame header information is: frame header information, which includes information such as sampling rate, padding bits, and bit rate.

Huffman decoding: You can understand it this way, I do a one to one correspondence between different data through a table and use this corresponding code to represent the original information, then the number with high frequency, I use the shortest possible code to represent Numbers that appear less frequently are represented by longer codes. This reduces the amount of content that the information represents. And after transmission, it can be restored according to this comparison code. Probably the beginning is this.

Reverse quantization is the reverse of the quantization process. If you want to understand this, you need to learn the quantization process.

IMDCT: IMDCT is the abbreviation, the full name is: Inverse Modified Discrete Cosine Transform (Inverse Modified Discrete Cosine Transform). In MP3, this algorithm must be used to transform the input data from the frequency domain to the cosine domain and perform compensation operations on the subband filtering. The inverse quantized signal is transformed using the inverse discrete cosine transform formula.

The Conversion Program Described In The MP3 Format.

The Conversion Program Described In The MP3 Format.

mp3 decoding

Today, most of the records that people listen to almost every day are made in the form of the ubiquitous MP3 files, as they are the most common and popular format for storing sound information in terms of.

MP3 DECODING

Now, the nature of this type of data, the codec itself, and the history of coding principles will be discussed. There will also be practical tips on how to convert MP3 files of a different type to another format or create MP3 files, other than that. This is very simple, however, subject to the use of special procedures.

WHAT IS THE MP3 FORMAT?
To date, only a few consider the fact that a voice is in this format. Basically, if you’re not into the nature of audio coding principles, all I can say is that you’re compressing audio information.

MP3 format

Monetized by optAd360

Previously, the basic format for storing music files was WAV. This information takes up too much space on the hard drive, and over time this type of data has become quite inconvenient. In particular, it refers to those times when music began to actively reside on the Internet. That’s when, and audio compression is necessary to reduce the size of the source material. In fact, if we convert the WAV format to MP3, the space saving becomes immediately apparent (the track needs 10 times less space, plus the structure of the new format is described like this, you can even enter some information about the track, for example , the name of the artist, song, album, year of release, and also put some basic technical characteristics of the audio).

Convert MP3 files

It is set to a specific text field in the file structure, called an ID3 tag, after completing all the information that can be displayed in the player window.

HISTORY

In today’s world there are many disagreements about who exactly creates this type of data. Although the MP3 format is accepted, so to speak, a more general concept of MPEG, established by the company Moving Picture Experts Group, the development of the actual encoding technology in MP3 is the Fraunhofer Institute group, which first proposed the The Lame MP3 encoder that uses the codec Who is, is the first criterion in this regard.

WAV to MP3

This was in the mid-90s, however, then this audio (MP3 file) could only be played with the help of a software player, so the new technology was widely adopted until then. It has released the first home player and the portable player is only used as a single at the beginning of this standard. However, it now has many competitors. It is only linked to the rationale for encoding, by which the amount of starting material can be reduced.

ENCODING AND COMPRESSION OF THE MAIN SOUND.
During this process, when the source material is translated into MP3 format, the most important thing: not all cuts are recognized by the human ear at the domestic level. Generally speaking, the track will have a standard sample rate of 44,100 Hz with a bit rate of 320 kbit/s and 128 kbit/s; it’s hard to see the difference in sound. This is why certain characteristics of the audio are reduced during the compression process.

The difference can only be perceived by people’s already sensitive ears or by using sounds from specialized programs. In fact, hardly anyone in the studio works in compressed MP3 format. He’s only involved in the final stages of mastering and post-production, when all tracks need to align quantity to normalize which areas to release to release the full album. Stop after this.

BASIC SOUND CHARACTERISTICS

As we all know, any audio material has several main parameters that determine its sound quality. And here the MP3 format is not an exception. The most important characteristics of the considered sampling frequency (the most common standard 44.1 kHz), the bit rate (accepted values ​​for the basic standard of 128 kbit/s) and the sound mode (mono, stereo, 5.1 surround , 6.1 or 7.1). In general, the latter option is not always considered, and the focus for determining any quality tracking is much more than the first two features.

Analysis of the MP3 decoding algorithm principle. Part 2

Analysis of the MP3 decoding algorithm principle. Part 2

Mp3 Decoding

Synchronization and error checking includes header information decoding module.

MP3 Decoding

After the main control module starts to work, the main control module transfers the data buffer of the bit stream to the synchronization and error checking module. This module includes two functions, namely header information decoding and frame decoding Side information decoding, scale factor decoding and Huffman decoding are performed according to your information, and the obtained results are obtained after of inverse quantization, stereo decoding, alias reduction, IMDCT, frequency inversion, and synthetic polyphase filtering. of the left and right channels is put into the output buffer by the main control module and sent to the sound playback device (in short, it’s very complicated).

2. Main control module
The main task of the main control module is to operate the input and output buffers and to call other modules to work together. Among them, the input and output buffers are provided by the DSP control module interface.

The data in the input buffer is the original mp3 compressed data stream. The DSP control module provides a buffer larger than the maximum possible frame length at a time. This buffer is the same as the data after the last offset (must be less than one frame) concatenated to form a new buffer.

The data stored in the output buffer is the decoded PCM data, which represents the amplitude of the sound. It consists of a fixed-length buffer. Calling the DSP control module’s interface function returns the main pointer. After the output buffer is filled, interrupt processing is called to output it to the audio ADC chip ( stereo audio DAC and audio ADC) connected to the I2S interface. DirectDrive headphone amplifier) ​​to output analog sound.

3. Synchronization and error detection
The error detection and synchronization module is mainly used to find the position of the data frame in the bit stream and decode the frame header, CRC check code and frame side information from this position, and the decoding results are used for subsequent scaling factors. Decoder module and Huffman decoder module.

Analysis of the MP3 decoding algorithm principle.

Analysis of the MP3 decoding algorithm principle.

mp3 decoding

If you are interested in audio and video technology, you can subscribe to my Video Player and Audio and Video Basics topics.

MP3 DECODING

1: Introduction to the general structure of the MP3 codec
MP3 decoding process

Look dumbfounded, right? There are many concepts here that need to be explained one by one.

Bitstream: Bitstream is a content distribution protocol. It uses an efficient software distribution system and peer-to-peer technology to share large files (such as a movie or TV show) and allows each user to provide upload services as a network redistribution node. (Because no professional has studied this content, I will interpret it as a datum for now, and the internal content will have time to discuss.)

Synchronization and error checking – The transmission and synchronization of mp3 data streams are based on frames. A frame is the smallest format unit of MP3, it can no longer be divided. The header of each frame contains basic information about the current frame, including timing information. The timing information consists of ‘1’s containing 12 consecutive bits. The first step in the mp3 video decoding job is to synchronize the decoder with the input data stream. After starting the decoder, it can be done by looking for 12 consecutive bits of ‘1’s in the data. Once the synchronization information is obtained, the subsequent frame header information is: frame header information, which includes information such as sampling rate, padding bits, and bit rate.

Huffman decoding: You can understand it this way, I do a one to one correspondence between different data through a table and use this corresponding code to represent the original information, then the number with high frequency, I use the shortest possible code to represent Numbers that appear less frequently are represented by longer codes. This reduces the amount of content that the information represents. And after transmission, it can be restored according to this comparison code. Probably the beginning is this.

Reverse quantization is the reverse of the quantization process. If you want to understand this, you need to learn the quantization process.