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.

Digital Audio Quality

Digital Audio Quality

Digital Audio Quality
Digital Audio Quality

Data rate refers to the data flow used by a video file in a unit of time, also called bit rate or bit stream rate.

Digital Audio Quality
Digital Audio Quality

The popular interpretation is the sampling rate, which is the most important part of image quality control in video encoding. Generally, the units we use are kb/s or Mb/s. Generally speaking, at the same resolution, the higher the code stream of the video file, the lower the compression ratio and the higher the image quality. The higher the code stream, the higher the sampling rate per unit time, the higher the data stream, the higher the accuracy, the closer the processed file is to the original file, the better the image quality, the clearer the image quality and the higher the decoding capability of the playback device is required.

Of course, the larger the code stream, the larger the file size. The calculation formula is file size = time X code rate/8. For example, a 720P RMVB file with a 1 Mbps stream of 90 minutes is common on the Internet and its volume is = 5400 seconds × 1 Mb/8 = 675 MB.

Generally speaking, a video file includes images and sounds, just like an RMVB video file, which contains video information and audio information. Audio and video have their own sampling methods and different bit rates, that is, the same video Audio and video file bit rate is not the same. And what we’re talking about is the bitrate of a video file, which generally refers to the sum of the bitrate of the audio and video information in the video file.

Taking the most popular and familiar RMVB video file in China as an example, VB in RMVB refers to VBR, which is short for Variable Bit Rate. The Chinese meaning is variable bit rate, which means that RMVB adopts dynamic encoding. In this way, a higher sample rate is used for complex dynamic images (singing and dancing, flying cars, wars, actions, etc.), while a lower sample rate is used for static images, and the resources are use rationally to achieve image quality and volume .Effect.

The most fundamental difference between code rate and sample rate is that the code rate is for the source file.

 

2. Sampling rate

Sample rate (also called sample rate or sample rate) defines the number of samples per second taken from a continuous signal to form a discrete signal, and is expressed in hertz (Hz). Sampling rate refers to the sampling frequency when converting an analog signal to a digital signal, i.e. how many points are sampled per unit of time. How many bits are in the data for a sample point? Bit rate refers to the number of bits (bits) transmitted per second. The unit is bps (bit per second). The higher the bitrate, the more data transmitted and the better the sound quality. Bit rate = sample rate x number of bits used x number of channels.

The sample rate is similar to the number of frames of moving images. For example, the sampling rate of movies is 24 Hz, the sampling rate of PAL format is 25 Hz, and the sampling rate of NTSC format is 30 Hz. When we play back the still images sampled at the same rate as the sampling frequency, we see a continuous image. In the same way, when a CD recorded at a sampling rate of 44.1 kHz is played back at the same rate, a continuous sound can be heard. Obviously, the higher the sample rate, the more coherent the sound will be heard and the picture will be seen. Of course, the sampling rate that human auditory and visual organs can distinguish is limited, which is basically higher than sound sampled at 44.1 kHz, and most people haven’t noticed the difference.

The number of digits in the sound is equivalent to the number of colors on the screen, indicating the amount of data per sample. Of course, the larger the amount of data, the more accurate the playback sound, so as not to confuse the sound. of the teapot with the train whistle. In the same way, it is more clear and precise for the image, so as not to confuse blood and ketchup. However, limited by the function of human organs, 16-bit sound and 24-bit image are basically the limits of ordinary humans, and the highest digits can only be distinguished by instruments.

Detailed Music Format Part 2

Detailed Music Format Part 2

Music Format
Music Format

Music CD

Music Format
Music Format

 

That is, CD records. A CD can play sound files of approximately 74 minutes. The Windows system comes with a CD player. Also, the software that comes with most sound cards provides CD playback functionality, and even some CD-ROM drives are offline. from computer Can be used as a stand-alone CD player when powered on.

WMA with unlimited potential

In developing its own network media service platform, Microsoft primarily promotes ASF (Audio Streaming Format), which is an open standard that supports data transmission over various networks and protocols. It supports audio, video, and a variety of other types of multimedia. And WMA is short for Windows Media Audio, which is equivalent to an ASF file that contains only audio.
The compression ratio of WMA files can be as high as 1:18 in 80kbps 44kHz mode, which is basically the same as VQF. And the compression speed is doubled compared to MP3. So it should be more competitive than VQF.

Vorbis free music format

To avoid rising royalties charged by MP3 music companies, programmers at GMGI’s iCast company developed a new free music format, Vorbis, that rivals or even exceeds MP3 in sound quality. And it will be released over the internet and can be downloaded for free without worrying about infringement issues. But MP3 has become very popular on the Internet, and Microsoft’s Windows Media technology has also started to spread, and Vorbis’s outlook is still not optimistic.

Other audio formats

AIF/AIFF: A sound file format developed by Apple, supported by the MAC platform, and supports 16-bit stereo at 44.1 kHz.
AU: SUN’s AU Compressed Sound File Format, which only supports 8-bit sound, is a commonly used sound file format on the Internet, mainly created by SUN workstations.
CDA: CD audio track file.
CMF: A MIDI-like sound file developed by CREATIVE.
DSP: Abbreviation for digital signal processing. By improving the signal processing method, sound quality will be greatly improved and songs will be more pleasing to the ear.
S3U: MP3 playback file list
RMI: MIDI Instrument Sequence

Lossy compression:

AAC – Sound quality is second only to MPC at high bit rates and looks good at both high and low bit rates. The encoding speed is too slow!
MPC: Performance is average at low bitrate, not as good as MP3 and OGG encoded by Mp3Pro, sound quality is best at high bitrate, and encoding speed is
fast.OGG: The sound quality is better at a low bitrate, and the same is true at a high bitrate. Encoding is slightly slower.
MP3 (MP3Pro): Sound quality is lower than OGG at low bit rate and other aspects are the same as MP3
WMA: High and low bit rates are average, VBR is not supported and the highest is 192Kbit/s

lossless compression:

FLAC – Worst compression ratio of the four, decent encoding speed, good platform support.
PAC: Slightly slower encoding speed, third in compression ratio, good platform support.
APE: The fastest encoding speed, the best compression rate, and the platform is generally supported.
WV: The encoding speed is very fast, the compression rate is second among the four types, and it is only supported by the Windows platform.

Detailed music format

Detailed music format

Audio File Formats
Audio File Formats

classic wave

Audio File Formats
Audio File Formats

As the most classic Windows media audio format, the WAVE file is widely used, which uses three parameters to represent sound: the number of sampled bits, the sample rate, and the number of channels.
The channels are divided into mono and stereo, and the sample rates are generally 11025 Hz (11 kHz), 22050 Hz (22 kHz), and 44100 Hz (44 kHz). The capacity occupied by the WAVE file = (sampling frequency × sampling bits × channel) × time/8 (1 byte = 8 bits).

traditional mod

MOD is a wavetable-like music format, but its structure is similar to MIDI, it uses real samples, and the volume is small. In the earlier DOS era, MOD was often used as background music for games. Modern mods can contain many audio tracks in many formats, such as S3M, NST, 669, MTM, XM, IT, XT, and RT.

midi music computer

MIDI is short for Musical Instrument Data Interface. Records the sound played by the instrument digitally (each note is recorded as a number), and then synthesizes these records via FM or wavetable during playback: FM synthesis is the sound of the instrument is simulated by mixing the multi-frequency sounds; wavetable synthesis consists of storing the sound samples of the instrument in the wavetable of the sound card and extracting the sound from the wavetable as you play.

Boss Boss MP3

It can be said that MP3 is famous, it uses MPEG Audio Layer 3 technology to compress the sound with a compression ratio of 1:10 or even 1:12, with a sampling rate of 44kHz and a bit rate of 112kbit/s. .
MP3 music is music stored in digital form. If you want to play it, you must have a corresponding digital playback and decoding system. Generally, MP3 digital music is decoded by special software and then restored to a waveform sound signal for playback output. This type of software is called For MP3 players, such as Winamp, etc.

Overlord RA series online

RA, RAM, and RM are Real’s mature network audio formats, using “streaming audio” technology, making them well suited for network streaming. Information such as copyright, singer, producer, mail and song title can be added during production.
RA can be called the supreme lord of multimedia communication on the Internet. It is suitable for streaming on the Internet and is currently the best format for listening to online music online.

VQF with high compression ratio

VQF or TwinVQ is an audio compression technology developed by Nippon Telegraph and Telephone and Yamaha Corporation.
The audio compression rate of VQF is almost twice that of standard MPEG audio and can reach approximately 1:18 or even higher. And popular compression formats like MP3 and RA are usually only around 1:12. But it still won’t affect the sound quality, when VQF compress music at 44kHz-80kbit/s audio sampling rate, its sound quality will be better than 44kHz-128kbit/s MP3, when compress at 44kHz-96kbit/s , the music is close to 44kHz-256kbit/s MP3.

MD minidisc

MD (ie MiniDisc) is a comprehensive portable music format released by SONY in 1992. The compression algorithm it uses is ATRAC technology (the compression ratio is 1:5). MD is divided into Recordable MD (Recordable, with two heads of magnetic head and laser head) and Single Play MD (Prerecorded, only laser head).
The powerful editing function is the strong point of MD. You can quickly select tracks, move tracks, merge, split, delete and edit track titles. It is more personalized than CD and you can have your own MD album at any time. MD products include MD Walkman, MD bedside audio, MD car audio, MD recording deck, MD camera gun and MD driver, etc.