Structure of an mp3


Free Download Mp4Gain
picture

Structure of an mp3

 

Structure of an mp3
Structure of an mp3

audio compression

Structure of an mp3
Structure of an mp3

 

The MP3 format began in the mid-1980s and the Fraunhofer Institute in Erlangen, Germany, was committed to high-quality, low-data-rate audio coding.

MP3 audio compression includes encoding and decoding in two parts. Encoding is converting the data in the WAV file into a highly compressed bitstream format, and decoding is accepting the bitstream and reconstructing it into the WAV file.

MP3 uses the distortion algorithm of Perceptual Audio Coding (PerceptualAudioCoding). The frequency range of sound perceived by the human ear is from 20 Hz to 220 kHz. MP3 cuts out a lot of redundant signals and irrelevant signals. The encoder transforms the original sound into the frequency domain through a hybrid filter bank. Using the psychoacoustic model, it is estimated that it may simply be The perceived noise level is quantized and converted to Huffman coding to form an MP3 bitstream. The decoder is much simpler and its task is to extract the sound signal from the encoded spectral line components through inverse quantization and inverse transformation.

When compressing audio data, the original sound data is first divided into fixed blocks, and then direct MDCT is performed. MDCT itself does not perform data compression, but only converts a set of time-domain data to frequency-domain data to obtain time-domain data. In case of change, the direct MDCT converts the value of each block into 512 MDCT coefficients. Quantization compresses data, and when bits are allocated to transformed samples after quantization, it is necessary to consider making the entire quantized block the smallest, which becomes lossy compression. When decompressing, the 512 coefficients are restored to the original sound data by reverse MDCT, and the original sound data before and after are inconsistent, because redundant and irrelevant data are removed during the compression process.

 

MP3 file structure
MP3 files are roughly divided into three parts: TAG_V2(ID3V2), Frame, TAG_V1(ID3V1)

ID3V2 Contains information such as author, composer, album, etc., the duration is not fixed, expanding the amount of information of ID3V1
framework

 

 

 

A series of frames, the number is determined by the file size and frame length

The length of each frame can be variable or fixed, determined by the bit rate.

Each FRAME is divided into two parts: frame header and data entity

The frame header records the bitrate, sample rate, version, and other mp3 information, and each frame is independent of each other.

ID3V1    Contains author, composer, album and other information, length is 128BYTE


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Structure of an mp3

Structure of an mp3

 

Structure of an mp3
Structure of an mp3

The full name of MP3 is MPEG Audio Layer3, which is an efficient computer audio coding scheme.

Structure of an mp3
Structure of an mp3

It converts audio files into smaller files with .MP3 extension with a higher compression ratio and basically keeps the sound quality of the original file. MP3 is part of the ISO/MPEG standard. The ISO/MPEG standard describes audio compression using a high-performance perceptual coding scheme. This standard has been continuously updated to meet the pursuit of “high quality, low volume”. MPEGLayer1, Layer2 , and Layer 3 have now formed three audio codec schemes. The compression rate of MPEGLayer3 can reach from 1:10 to 1:12. A 1M MP3 file can play for 1 minute, while a 1 minute CD-quality WAV file (44100 Hz, 16-bit, two channels, 60 seconds) will take up 10M of space. , A 650M MP3 disc should play for more than 10 hours, while a CD with the same capacity should play for about 70 minutes. The advantages of MP3 are unmatched by CD.

MPEG audio standard
MPEG (Motion Picture Experts Group) is a moving picture expert group under ISO, and the MPEG standard it creates is widely used in various multimedia. MPEG standards include video and audio standards, among which MPEG-1, MPEG-2, MPEG-2AAC, and MPEG-4 audio standards have been developed.

The MPEG-1 and MPEG-2 standards use the same family of audio codecs: Layer 1, 2, and 3. A new feature of MPEG-2 is the use of low sample rate expansion to reduce data traffic, and another feature is multi-channel expansion, which increases the number of main channels to five. The MPEG-2AAC (MPEG-2 Advanced Audio Coding) standard was released by FraunhoferIIS and AT&T in 1997, with the goal of significantly reducing data traffic. MPEG22AAC adopts the Modified Discrete Cosine Transform (MDCT) algorithm and the sampling rate can be between 8 KHz and 96 KHz. The number of channels can be between 1 and 48.

MPEG Audio Layer1, 2, and 3 use the same filter bank, bitstream structure, and header information, and the sample rate is either 32 KHz, 4411 KHz, or 48 KHz. Layer1 is designed for DCC (DigitalCompactCassette) digital compression tape, the data rate is 384kbps, Layer2 has made a compromise between complexity and performance, and the data rate has been reduced to 256kbps-192kbps. Layer 3 was designed for low data traffic from the start, and data traffic ranges from 128 kbps to 112 kbps. Layer 3 adds MDCT transform, making its frequency resolution 18 times higher than Layer 2. Layer 3 also uses EntropyCoding similar to MPEGVid2eo, reducing redundant information. The vast majority of MP3s use the MPEG21 standard.

What are MP3 files?

What are MP3 files?

What are MP3 files?

 

The audio format is directly related to the quality and purpose of the audio track, i.e. where and on which device it will be played and what is its purpose.

What are MP3 files?

But before you can figure out the difference between them and choose the best audio format for your music, you need to know what categories they fall into. Let’s keep going!

Uncompressed audio is like a picture, and uncompressed audio is of better quality, larger file size, safer to copy, and nearly identical in detail to the original sound.

WAV is the most widely used of these audio formats and plays music just as accurately as it records it.

compressed audio
When music is compressed, the files become smaller and can be easily stored on a device. Due to this advantage, users tend to choose compressed audio more.

However, it must be remembered that some audio formats in this category may lose quality depending on the option selected, just like MP3 and AAC.

What is the best audio format?
As we said before, the first step in deciding on an audio format is to know the final objective of the track. Whether it’s for music lessons, performances, karaoke, auditions, or recording versions, you need to understand the pros and cons of each option.

WAV
WAV (Waveform Audio File Format) is an uncompressed format and therefore requires ample storage space. This is suitable for those who already work with music, such as subject matter experts, or users who want to edit audio.

At high fidelity rates, WAV faithfully reproduces the elements and characteristics of the original soundtrack. Also, this format allows you to choose between different sample rates and bit rates and can be used on multiple platforms.

FLAC
FLAC (Free Lossless Audio Codec) is one of the most widely used compression formats by music lovers these days.

Digital audio encoding allows you to preserve its quality, but the resulting file will be smaller. Over the years, this format has become more widely used and compatible with different devices and platforms.

FLAC is free and open source, ready to use and can be easily played on smartphones and other devices.

MP3
Before deciding on the best audio format, it is worth taking a look at the most famous format in the world of music: MP3.

MP3 is one of the leading audio compression formats, and has become synonymous with the convenience and efficiency of producing files quickly, with smaller files, and at a certain level of quality.

Many devices and programs can play this format. But MP3 is difficult to use in professional audio processing and advanced audio editing.

As is known, this format exists on almost all platforms and is ideal for sharing audio.

Another interesting factor is its bitrate, although in a compressed format it can vary depending on the user’s objectives and quality improvements.

AAC Like MP3, Advanced Audio Coding (AAC) is a more efficient audio format than its predecessor.

If you need to create smaller files with less storage space, AAC is a great choice, reducing the file size for the user while maintaining a high-quality audio track.

Compatible with different platforms and devices, it is convenient to apply in different situations.

Analysis of the above audio formats leads to the conclusion that it is impossible to say which format is better than the other, just that each target has its own ideal format. So before downloading or uploading a file, check what platform the music will play on and what it is for.

What are MP3 files?

What are MP3 files?

What are MP3 files?
What are MP3 files?

A file with the .mp3 extension is a digitally encoded file format for audio files, officially based on MPEG-1 Audio Layer III or MPEG-2 Audio Layer III.

What are MP3 files?
What are MP3 files?

It was developed by the Moving Picture Experts Group (MPEG) using Layer 3 audio compression. The compression achieved by the MP3 file format is 1/10 the size of a .WAV or .AIF file. This format offers the advantage of streaming such audio files over the Internet for online listening, which was previously not possible due to the large size of audio files. The sound quality of MP3 audio files can be controlled by setting parameters such as bit rate, sample rate, common or normal stereo.

A brief history of MP3

The MP3 format was invented and developed by a German company, Fraunhofer-Gesellshart. The algorithm has licensed patents for the compression techniques it uses. Here’s a helpful MP3 schedule:

• 1987 : The Fraunhofer Institute in Germany begins research on high-quality, low-bitrate audio coding. It’s called the EUREKA project EU147, Digital Audio Broadcasting.

• January 1988: The Moving Picture Experts Group (MPEG) is formed.

• **April 1989**: Fraunhofer patented the MP3 in Germany.

• 1992-Dieter Seitzer, who helped Fraunhofer with his research, integrated his audio encoding with MPEG-1.

• 1993 – Publication of the MPEG-1 standard.

• 1994 – The MPEG-2 standard was developed and released a year later.

• November 26, 1996 : US patent for MP3 is published.

• September 1998 – Fraunhofer begins to enforce the patent. People who used the MP3 audio codec paid Fraunhofer a license fee.

• February 1999 – SubPop, a record label, releases music in MP3 format, the first to do so.

• 1999 – The first portable MP3 player appears.

File format MP3##
MP3 files consist of MP3 frames, where each frame consists of a header and a data block. Frames are not independent and generally cannot be mined at arbitrary frame boundaries. The data blocks of a file contain frequency and amplitude information about the audio. The sync word in the header identifies the start of a valid frame. This is followed by 3 bits where the first bit indicates that it is an MPEG standard and the remaining 2 bits indicate that layer 3 is used; therefore, MPEG-1 Audio Layer 3 or MP3. After this, the value will vary depending on the MP3 file. ISO/IEC 11172-3 defines the range of values for each part of the header and the header specification. Most current MP3 files contain ID3 metadata, which precedes or follows the MP3 frame, as shown. Data streams may contain an optional checksum.

10 Common Audio Formats: Which Format Should I Choose?

10 Common Audio Formats: Which Format Should I Choose?

Audio Formats
Audio Formats

Audio files come in various formats and sizes, in addition to our common MP3, there are AAC, FLAC, OGG, WMA, etc.

Audio Formats
Audio Formats

Why are there so many different audio standards? What format is the best? What should you choose when saving audio files?

In fact, all audio formats can be divided into 3 categories, and once you understand the characteristics of each of these 3 types, you can choose one of the three, and then choose a further subdivided category according to your specific needs.

Comparison of audio formats – operation, equipment – Introduction to 10 common audio formats: which format should I choose?
uncompressed audio format
The uncompressed format preserves the original audio waveform. The so-called original audio waveform refers to the result after the sound is captured and converted to a digital signal for storage. Raw audio waveforms are stored without any post processing. From the results, such an audio file will consume a lot of space. For 24-bit (24-bit) 96 KHz audio, you need about 34 MB of storage space per minute.

Uncompressed audio format: PCM
PCM is short for Pulse-Code Modulation, which is a technical method of simulating sound using digital signals. The sounds that we can hear in nature exist in the form of physical sound waves, and in order to simulate this sound wave with a digital signal, scientists decided to sample it and record it with another wave, which is what we call a pulse.

Therefore, digital audio has two basic concepts: sample rate and bit depth. The so-called sampling rate refers to the speed of how many times the sound is sampled. The so-called bit depth refers to the space occupied by a single sample. In uncompressed formats, the product of the sample rate, bit depth, and audio duration is the space occupied by the digital signal that represents the audio content.

PCM is a format commonly used on CDs and DVDs, but its derivative LPCM is often used in practice. LPCM is short for Linear PCM, which is Linear Pulse Code Modulation. Most PCM files in use today are actually LPCM files, so there is no need to differentiate between them.

Uncompressed audio format: WAV
WAV is short for Waveform Audio File Format, which is a standard audio format developed by Microsoft and IBM in 1991.

Many people think that WAV is an uncompressed audio format, but this is not entirely true. In fact, WAV is a “wrapper” type format, a common format developed by Microsoft to use audio for various platforms. So it is possible for WAV to contain compressed audio, but this is rarely the format of choice when using compression these days.

What are the common audio formats?

What are the common audio formats?

common audio formats
common audio formats

Most frequent and popular sound formats

common audio formats
common audio formats

05 AAC format

AAC is actually short for Advanced Audio Coding. The algorithm adopted by AAC is different from that of MP3. AAC improves encoding efficiency by combining other features. The AAC audio algorithm far surpasses some previous compression algorithms (such as MP3, etc.) in terms of compression capabilities. In conclusion, AAC can provide better sound quality with 30% smaller file size than MP3 files.

It is one of the best lossy formats out there. There are multiple encodings, with bit rates up to 448 kbps. In terms of hardware support, advanced mobile phones and mp3 players are now generally supported.

06 VQF format

The VQF format is an audio compression technology jointly developed by YAMAHA and NTT. Its compression ratio can reach 1:18. Therefore, under the same circumstances, the compressed VQF file size is 30%-50% smaller than MP3, which is more suitable for online streaming, while the sound quality is excellent, near to CD quality (16-bit, 44.1 kHz stereo). But VQF has not revealed the technical standards, so far it has not become popular.

07 FLAC format

FLAC is short for Free Lossless Audio Codec, which can be interpreted as Chinese lossless audio compression coding, which is characterized by lossless compression. Unlike other lossy compression codes like MP3 and AAC, it can restore the sound quality of music discs. It is now compatible with many software and hardware audio products.
It can be said that FLAC is similar to MP3, but it is losslessly compressed, which means that the audio is compressed in FLAC without losing any information. And you can use the player to play compressed FLAC files, just like playing MP3 files.

08 APE format

APE is one of the most popular digital music file formats. Unlike lossy compression methods like MP3, APE is a lossless audio compression technology, which means that after compressing the audio data file read from the audio CD in APE format, you can also compress the file in APE format. The audio file is exactly the same as before compression, without any loss.

The file size of APE is about half that of CD, which is loved by many music lovers, especially for friends who want to stream audio CDs over the network, APE can help them save a lot of resources.

What are the common audio formats?

What are the common audio formats?

common audio formats
common audio formats

Most frequent and popular sound formats

common audio formats
common audio formats

01 MP3 format

MP3 is one of the most common audio formats. Its full name is Moving Picture Experts Group Audio Layer III. Simply put, MP3 is an audio compression technology that uses MPEG Audio Layer 3 technology to compress music into a smaller capacity file with a compression ratio of 1:10 or even 1:12. Compress files to a lesser extent in small cases. And it keeps the original sound quality very well.

It is precisely because of MP3’s small size and high sound quality that the MP3 format has become almost synonymous with online music. Use an MP3 player to uncompress (decode) MP3 files in real time so that high-quality MP3 music can be played. The highest bitrate is 320K, and the high-frequency part is one size fits all, which is its default.

02 WMA format

The full name of WMA is Windows Media Audio, which is an audio format promoted by Microsoft. The WMA format achieves a higher compression ratio by reducing the data stream while maintaining sound quality. The compression ratio can usually reach 1:18, and the generated file size is only half of the corresponding MP3 file. In addition, WMA can also be added to prevent copying through the DRM scheme, or add restrictions on playback time and playback times, and even restrictions on playback machines, which can effectively prevent piracy.

03 WAV format

WAV format is a lossless sound format developed by Microsoft Corporation, also known as waveform sound file. It is the oldest digital audio format and is widely supported by the Windows platform and its applications. The WAV format supports many compression algorithms, supports a variety of audio bits, sample rates, and channels. It adopts 44.1kHz 16-bit sampling rate. Therefore, the sound quality of WAV is almost the same as that of CD, and it is suitable for uploading to all major music platforms. But the WAV format is bulky and difficult to spread.

04 ASF format

The full name of ASF is Advanced Streaming Format, which is a media playback format developed by Microsoft and is suitable for playback on the Internet.

All the Audio Format Differences: Which One Should You Use?

All the Audio Format Differences: Which One Should You Use?

All the Audio Format
All the Audio Format

Three classifications of audio formats

All the Audio Format
All the Audio Format

Characteristics and differences of different audio formats

Which audio format is right for you?

You already know MP3, but what about AAC, FLAC, OGG or WMA? Why are there so many audio file formats and is there any best audio format?

Comparison of audio formats

Audio files come in various types and sizes. While we’re all probably familiar with MP3, what about AAC, FLAC, OGG, or WMA? Why are there so many audio standards? Is there a better audio format? Which ones are important and which ones can be ignored?

All audio formats are divided into three main categories, and once you know what the categories mean, you can choose the format within the categories that best suits your needs.

uncompressed audio format

Uncompressed audio consists of actual sound waves that have been captured and converted to digital format without any additional processing. So uncompressed audio files tend to be the most accurate, but take up a lot of disk space: about 34MB per minute for 24-bit 96KHz stereo.

Audio file format: PCM

PCM stands for Pulse Code Modulation, a digital representation of the original analog audio signal. Analog sounds exist as waveforms. To convert a waveform into digital bits, the sound must be sampled and recorded at specific intervals (or pulses).

This digital audio format has a “sample rate” (how often the samples are made) and a “bit depth” (how many bits are used to represent each sample). There is no compression involved. Digital recordings are almost accurate representations of analog sounds.

What is the difference between the different audio formats, and which one should I choose?

There are two types of sound quality: lossless and lossless. Lossless music preserves the sound quality of the original source – in most cases, CD – intact, on the other hand, lossy music compresses the file to save space (in exchange for decreasing quality). The following formats are included in lossless formats:

loseless formats

Formats WITHOUT loss of quality:

WAV and AIFF: Both are uncompressed formats, which are exact copies of the original sound source. The two formats have essentially the same quality; They simply store the data differently. AIFF was created by Apple – you’ll see it often in its products – but WAV is much more universal. However, since they are not compressed, they take up too much unnecessary space. Unless you’re editing sound, we don’t need to use this format.

FLAC: Free lossless sound codec – Free Lossless Audio Codec (FLAC). It is the most used lossless codec, it is a good option if we seek to store our music without losing quality. Unlike WAV and AIFF, it uses compression, taking up less space. However, it is still a lossless format, which means that the sound quality is the same as the original source, so it is better to listen to than WAV and AIFF. It is also free and free software, which is useful if you like to take a look at how it works.

Apple lossless (Apple Lossless): Also known as ALAC, it is similar to FLAC. Use compression, although it is made by Apple. Its compression is not as efficient as that of FLAC, so the files will be a bit larger, but it is compatible with iTunes and iOS (FLAC not). Therefore, if you use iTunes or iOS as the main software for listening to music, you should choose this format.

APE: It is a file of very high compression without losses, which means that you will save more space. The quality is the same as FLAC, ALAC and other lossless files, but it is not compatible with most players. On the other hand, it makes the processor work harder to decode when it is so compressed. Generally, I would not recommend using this format unless you are very concerned about space and have a compatible player.

Formats with losses: MP3, AAC, OGG and more

MP3: MPEG Audio Layer III, or MP3 for short, is the most common lossy format. So much that it has become synonymous with music downloads on the internet. It is not the most efficient format of all, but it is undoubtedly the most compatible, making this the first option to choose between lost sounds.

AAC: Advanced Audio Coding, also known as AAC, is similar to MP3, although a bit more efficient. Which means that the files take up less space and with the same sound quality as MP3. And, with Apple’s iTunes making it so popular, it’s as compatible as MP3.

Ogg Vorbis: The Vorbis format, often known as Ogg Vorbis due to the use of the Ogg container, is the free software version to MP3 and AAC. Its main attraction is that it is not restricted by patents, but that does not affect you as a user – in fact, despite being open it is of similar quality, and much less popular than MP3 and AAC, so not all players support it . I do not recommend it unless you are interested in the fact of being open source.

WMA: Windows Media Audio. The proprietary format of Microsoft, similar to MP3 or AAC. It really offers no advantage over the other formats, and is not very well supported.

So which audio format should you use?

Now that we have seen the differences between each format, which one should we use for our music? In general, we recommend using MP3 or AAC. They are compatible with most players, and the quality of both is very similar to that of the original source if it is encoded with a high bit rate. Unless you have specific needs, MP3 and AAc are the most recommended options.

However, there is something to say to store music in lossless formats such as FLAC. Although we probably don’t notice a higher quality, it is good to store music if you plan to convert it to other formats later – since converting from one format with losses to another Lossy (eg, from AAC to MP3) will produce lower quality files. In that case we recommend FLAC. In addition, we can choose the lossless format we want, since converting between formats without losses does not degrade the quality of the file.

As a final conclusion, we can say that one should not become obsessed with the subject. We just have to be sure to choose something widely compatible, not convert between two formats with losses, and enjoy music.

An advantage is that Mp4Gain works with all these fromatos (and more) and you can convert from one to another, without problems or loss of quality, on the contrary, with tools like the Equalizer, you can improve the sound to your liking.