Principle of mp3 and file format analysis. Part 2


Free Download Mp4Gain
picture

Principle of mp3 and file format analysis. Part 2

mp3

MP3 uses perceptual audio coding (Perceptual Audio Coding) this distortion algorithm.

mp3

The frequency range of sound perceived by the human ear is 20 Hz to 20 kHz. MP3 cuts out a lot of redundant signals and irrelevant signals. The encoder transforms the original sound into the frequency domain through a mixed filter bank and uses a psychoacoustic model. to estimate that it may be only The perceived noise level is quantized and converted to Huffman coding to form an MP3 bit stream. The decoder is much simpler, its task is to extract the sound signal from the encoded spectral line components through inverse quantization and inverse transformation. The MP3 encoding and decoding process is shown in Figure 1.
2.4 Modified Discrete Cosine Transform The cosine transform
Modified Discrete CT (MDCT) refers to converting a time-domain data set to frequency-domain data in order to know the changes in the time domain. MDCT is an enhancement of the DCT algorithm. The first fast algorithm is fast Fourier transform (FFT), but FFT has complex operations, MDCT are real operations, easy to program.
When compressing audio data, first divide the original sound data into fixed blocks, and then perform direct MDCT (direct MDCT) to convert the value of each block into MDCT 512 coefficients. The 512 coefficients are restored to the original sound data, and The original before and after sound data is inconsistent because redundant and irrelevant data is removed during the compression process. The FMDCT transformation formula is:
k=0, 1,
.
n0=(N/2+1)/2, X(n) is the time domain value, X(k) is the frequency domain value. If N takes 1024 points, it becomes 512 frequency domain values.
The IMDCT transformation formula is:

n=0, 1, …, N-1
MDCT itself does not compress data, it simply maps the signal to another domain, and quantization compresses the data. When bit allocation is done on the quantized transformed samples, the entire quantized block must be considered the smallest, which is called lossy compression.
3 File Format Analysis
MP3 MP3 file data is made up of multiple frames, and the frame is the smallest unit of the MP3 file. Each frame, in turn, consists of a frame header, additional information, and sound data. The playback time of each frame is 0.026 seconds and its duration varies with the bit rate. Some MP3 files have extra bytes at the end that contain description information for non-audio data.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Principle of mp3 and file format analysis.

Principle of mp3 and file format analysis.

Principle of mp3 and file format analysis

Principle of mp3 and file format analysis

Principle of mp3 and file format analysis

1. Introduction
With the rapid development of file compression technology, MP3 has become the most popular music format today. High-quality music spreads rapidly around the world with the arrangement of 0 and 1, which shakes people’s hearts. What is MP3? The full name of MP3 is MPEG Audio Layer 3, which is an efficient computer audio coding scheme. It converts audio files into smaller files with an .MP3 extension with a higher compression ratio, basically maintaining the sound quality of the original file. MP3 is part of the ISO/MPEG standard, which describes audio compression using a high-performance perceptual coding scheme. This standard has been continuously updated to meet the pursuit of “high quality and low quality”, and has now formed MPEG Layer 1, Layer 2, Layer 3 three audio encoding and decoding schemes. MPEG Layer 3 compression ratio can reach 1:10 to 1:12, 1M of MP3 file can be played for 1 minute and 1 minute of CD-quality WAV file (44100Hz, 16bit, dual channel, 60 seconds) occupies 10M space, so Calculated, the playing time of a 650M MP3 disc should be more than 10 hours, and the playing time of a CD of the same capacity is about 70 minutes. The advantage of MP3 is that the CD is incomparable.
2 Analysis of the principle of MP3
2.1 audio standard
MPEG MPEG (Moving Picture Experts Group) is a group of dynamic picture experts under ISO, the MPEG standard which makes it widely used in various multimedia. The MPEG standards include audio and video standards, of which the audio standards have been established as MPEG-1, MPEG-2, MPEG-2 AAC, and MPEG-4.
The MPEG-1 and MPEG-2 standards use the same family of audio codecs: Layer 1, 2, 3. A new feature of MPEG-2 is the use of low sample rate expansion to reduce the data stream, and another feature is multichannel expansion, which increases the number of main channels to 5. The MPEG-2 AAC (MPEG-2 Advanced Audio Coding) standard was released by Fraunhofer IIS and AT&T in 1997 to significantly reduce data traffic. The MDCT (Modified Discrete Cosine Transform) algorithm adopted by MPEG-2 AAC has a sampling frequency between 8KHz and 96KHz, the number of channels can be between 1-48.
The three layers of MPEG Audio Layer 1, 2, and 3 use the same filter bank, bitstream structure, and header information, and the sampling frequency is 32KHz, 44.1KHz, or 48KHz. Layer 1 is designed for DCC (Digital Compact Cassette) compressed digital tape, the data rate is 384kbps, Layer 2 has made a compromise between complexity and performance, and the data rate is reduced to 256kbps-192 kbps. Layer 3 is designed for low data traffic from the start, and the data traffic is 128Kbps-112Kbps. Layer 3 adds MDCT transformation to make its frequency resolution 18 times that of layer 2. Layer 3 also uses average information similar to MPEG video. Entropy Encoding reduces redundant information. The vast majority of MP3s use the MPEG-1 standard.
2.2 Purpose of audio compression
The MP3 format began in the mid-1980s, when the Fraunhofer Institute in Erlangen, Germany, dedicated itself to encoding high-quality, low-data-rate sound. Let’s look at an example: you want to sample a song you like that is about 4 minutes long, store it on a disk, sample it in CD-quality WAV format, at a sample rate of 44.1 kHz, that is, receive a value of 44100 per second, stereo, each sampled data is 16 bits (2 bytes), so the space this song occupies is:
44100 x 2 channels x 2 bytes x 60 seconds x 4 minutes = 40.4 MB
If you download this song from the Internet, assuming the transmission speed is 56 kbps, the download time is:
40.4x106x8/56x103x60=96 minutes
Even a 1M broadband network requires more than 5 minutes, it can be seen that audio compression is particularly important to reduce audio data storage space.
2.3 Encoding and decoding
MP3 MP3 audio compression consists of two parts: encoding and decoding. Encoding converts the data in a WAV file into a highly compressed bitstream, and decoding takes the bitstream and reconstructs it into a WAV file.

THE MOST COMMON FORMATS FOR MUSIC AND OTHER AUDIO FILES AND HOW THEY ARE RELATED TO EACH OTHER PART 2

THE MOST COMMON FORMATS FOR MUSIC AND OTHER AUDIO FILES AND HOW THEY ARE RELATED TO EACH OTHER PART 2

mUSIC fORMATS

AUDIO CONVERTER

Music Formats

With an audio converter the situation is even simpler. Programs of this type are specially designed to convert between audio formats quickly, without explicit user intervention. Unlike audio editors, converters, we can say, use batch mode, that is, they allow you to convert MP3 files in a single operation, for example, not a single copy, and make several pieces at once. Depending on the app’s function, there may be dozens or hundreds.

Audiobooks in MP3 format

Once again, the operation of such a package is simple. Just select the source material (usually it can be a completely different file type) and install the final format. Then press a special button to start the process, the output user gets all files of a certain type. Your save usually occurs in the folder set in the app’s default settings, but the save location can of course be changed by yourself. By the way, the same applies to basis functions, which will be used during the transformation. However, any program initially provides the user with a specific set of criteria to use with a specific type of audio file. They can also change.

The beauty of these apps is that they have a complete process that will automate as much as possible and do all the required processes without much time. However, if we use a music or audio editor, comparing them in terms of improving the same sound quality especially cannot be dispersed here.

MUSICAL ARRANGEMENT
This is another type of software, most of which have built-in editors for MP3, WAV, etc. In this sense, they work on a similar principle to audiorekatorami, but their abilities are slightly broader.

Convert to MP3 format

First of all, it deals with the fact that the entire composition can consist of fragments of different types (MP3, MIDI, WAV, OGG, VST-library or DX-tool, etc. D.). After recording all sound tracks, for example mixing and mastering with virtual synthesizers or prescription parties, the resulting files can be saved in the desired format. Mostly it is an MP3 or WAV, or the program’s project file. In some applications, there is also a recording function to disk. Do you want an audio CD? No problem! In addition to the audio editor, it may take a few minutes to perform the necessary operations and get the tracks on the output disc in CDA format.

If we talk about the benefits of this type of application, it is obvious that only a few formats of the same union, and then saving or exporting to some of the most common are its greatest advantages. Also, you need to pay attention to the fact that the very overlay effect or change of any track parameters happens in real time, that is, the result will not necessarily wait; can be heard immediately by turning some knobs, for example. , or another option. Of course, this is only a small part of what packages are capable of.

HOW SHOULD I USE IT?
Finally, we come to the question of choosing the software to use with the MP3 format, or any other sound to record to. As is clear, normal listening to music or audiobooks is enough and a humble player (software or “iron”), or more commonly a DVD player.

Converting files to other formats, so to speak, in a hurry, is the perfect audio converter. However, if the output needs to achieve crystal clear sound quality, or even convert one file type to another, it is indispensable without powerful dedicated software. Of course, this requires ordering more, and without any experience, time to get the same high-quality MP3 files as the first time and you can’t get. However, with at least some in-depth study from audio editors, let alone professional music studios, the results will exceed everyone’s expectations.

THE MOST COMMON FORMATS FOR MUSIC AND OTHER AUDIO FILES, AND HOW THEY ARE RELATED TO EACH OTHER

THE MOST COMMON FORMATS FOR MUSIC AND OTHER AUDIO FILES, AND HOW THEY ARE RELATED TO EACH OTHER

Music Formats

 

And for the direct competitors of the universal MP3 format, they can count on a lot today.

Music Formats

Due to continuing inconsistencies in home storage of the WAV format, it was eventually discontinued. But for professional studios, he says, the basics of the job. Especially when recording live vocals or instruments. Just convert the recorded material from WAV to MP3 at the final stage.

music format

However, music can be represented in some other popular formats nowadays. For example, many times (especially the Internet) they use these data types like OGG, AIFF, AMR, etc. But the real competitor of MP3 has become the newest and best audio FLAC etc. Of course, for MP3 you can convert all parameters to the maximum, but the playback quality of FLAC represents much higher. Also, it is a single file and the separation occurs directly on the track due to the player or startup software. In other words, listeners see each track individually, but can switch between playback tracks. For the MP3 format, this also seems possible to merge multiple tracks through it, thus creating a single file. But here it is in this version fast switching between tracks will not be possible (normal fast forward should be used, that’s all).

However, not everything is bad. The fact that music or audiobooks are all popular formats today allows them to be easily converted, even keeping the original parameters of the audio material. Based on this, and for sound processing and conversion and audio editors, almost all programs call converters. Any program of this type (MP3 editor or converter) detects the original and final type of audio files, is unambiguous and can produce direct and reverse transformations. Let’s explain this specific example.

WAVE THEORY AUDIO EDITOR FOR MP3 FILES
Many types of software are used in audio processing today. First, look at the narrow application of so-called audio editors. The most prominent representatives of these can be called giants Sony Audio Forge, Sintrillium Cool Editing Pro, which was later acquired by Adobe and renamed Audition, Acoustica Mixcraft, ACID Pro and many others.

mp3 editor

The principle on which they operate is that, for convenience, all MP3 audio programs have a typical waveform, as originally used for WAV files. This method determines the appearance and opportunity enough to edit any type of conventional audio material in WAV format. Other than that, the fact that you can do basic copy, cut, paste, etc. E., it’s just a matter of getting the frequency characteristics and bitrate changes, not to mention using a lot of extra effects that plug into VSTs via DirectX or a generic host bridge studio thing.

In its simplest form, the conversion can be done using the standard file menu, which contains the line “Save As…” (Save As…) or the export function present in MP3 format. Thus, all the process is reduced to just the final selection of the format (MP3 here as an example) and activation of the recording mode. In this case the conversion will be done automatically saving the current configuration parameters and the frequency characteristics. I don’t like the original version? ?Nothing is easier than changing the format to MP3, pre-specified with higher settings. However, one thing needs to be considered here: if the raw material is of such poor quality that special remediation or even professional tools will not work for audio it is necessary to use Repairs here, the intervention of various filters, etc. D. For the layman, it will cause great difficulties.

As is clear, there is absolutely no difference between the audiobooks we are dealing with: MP3, music or just recorded voice or noise. By the way, audiobooks are supposed to have a much lower sound quality by default. This is understandable, since the file has to take up minimal space and, in general, the perceived sound characteristics of speech are not that important. Finally, is this a professional recording of a particular set of albums?

However, if you use some standard operations, even without specific knowledge, it’s fine to achieve good results, especially since there are such built-in templates, based on any application for specific operations. Of course, it will be very difficult for the first time to achieve a perfect sound, but if you study the plan and understand how it works, it will work like clockwork, and as a result, it will take a lot of time.

All about all audio file formats

Dematerialized music has evolved considerably for almost 15 years and has played an important role in the daily life of every individual. We’ve all heard more or less about FLAC, MP3, WAV, etc.! Few people really know the difference between each size, its pros and cons …

audio formats

This article is intended to enlighten you to make the best possible choice for extracting and compressing your audio files.

There are different types of layouts that can be grouped into several large families:

– uncompressed files

-lossless compressed files

– Lossy compressed files

audio formats

-Uncompressed files

WAV: WAV (Waveform Audio File Format) is an audio file format created by Microsoft for Windows. This format is usually an uncompressed container. Therefore, an audio CD with a duration of about 80 minutes in WAV weighs plus or minus 800 MB

Advantages: the file remains in its original form, no loss of information (no loss)

Disadvantages: The WAV file is an uncompressed format that gives it a large size and therefore takes up more space in the storage space.

AIFF – Audio Interchange File Format (AIFF) is the Mac OS equivalent of the WAV format. Therefore, it has the same characteristics as this. The pros and cons of this format are the same as for WAV.

– Lossless compressed files

FLAC: The FLAC (Free Lossless Audio Codec) format is without doubt the most beneficial file for the user. Firstly, in terms of WAV and AIFF, this format is a lossless format, ie the digitization of the file does not imply any loss of information from the audio spectrum. The file is scanned and returned as is. The second advantage of this format is the size it occupies in the storage space. Nondestructive compression is applied to this type of format as a ZIP file, making the scanned file about 2 times less space than a WAV file. Therefore, for 80 minutes of music on CD, the occupied space will be approximately 400 MB. Finally, this format is universal, compatible with most multimedia players, it is compatible with all operating systems except iOS,

Advantages: file size, identical reproduction of the original file during scanning, free and compatible with almost all media players and operating systems

– Disadvantages: none

ALAC: The ALAC (Apple Lossless Audio Codec) format is simply the Apple equivalent of the FLAC file.

– Lossy compressed files

MP3: The MP3 format (Mpeg Layer 3) is a well-known format. It is a format with destructive compression, that is, a recording from which musical information has been removed thanks to the so-called psychoacoustic compression algorithm (taking into account the peculiarities of the human ear), so that less scanning is needed to create a lighter file to obtain . This format is most commonly used for dematerialized music, as it allows a significant space saving in the storage space with a size of about 150 MB for an 80 minute CD. Compression can be more or less destructive depending on the speed used, which can range from 4: 1 (320 Kbits / sec) to 12: 1 (128 Kbits / sec).

-Advantages: it takes up little space on the hard disk and does not affect the quality of the songs with a dynamic range and a limited variety of timbres

– Disadvantages: paid MP3 license, destructive compression for “richer” songs.

AAC: The AAC (Advanced Audio Coding) format is a format close to the MP3 format, but provides additional definition with an identical compression rate. Apple uses this specific format in the iTunes Store, but also on YouTube. the extension can be written in various forms, such as .AAC, .M4A or MP4

-Advantages: better compression quality than MP3

-Cons: compressed file format at a loss

What is the best audio format?

What is the best audio format?

Many are known, but there is always the question of what is the best audio format. The main and most recognized for listening to music are MP3, Wav, FLAC and Ogg.

But, to choose the best audio format, you must first know that they have several conformations, and you can always choose the best. Music always goes everywhere, at home in front of the computer, in a living room with a hi-fi system, with headphones on public transport or when playing a sport. Music that gives a special meaning at all times and that encourages listening.

best audio format

There are many ways to take advantage of it, but this is usually done in digital format. In audio files, there is a wide variety and normally many still use MP3 for convenience. But there are less popular alternatives that seek to provide a different, better experience. For those who do not know it, there are a number of main sound systems.

The best audio format

Beyond the fact that the MP3 format is the most popular of all the audio formats available, it is not the only one. Some others like “FLAC”, “WMA”, “OGG” have certain characteristics which, depending on what you want, can be very useful on certain occasions.

In technology, audio formats can generally be classified into 2 categories. There are those which preserve all the quality and those which involve losses of quality of the sound or information.

Those that preserve the quality of the audio are those that come from pure sources such as CDs. This is how those who lose quality and sacrifice this information must save space.

Audio quality formats

“FLAC” is a lossless audio codec or “FLAC”. It is one of the formats that best preserves audio quality and its compression algorithm is excellent. It is open source, does not generate quality losses and the file size because it is compressed, is much smaller.

best audio format
lossless

Apple Lossless is known as “ALAC” and is very similar to “FLAC”. The difference is that it is not as efficient, so these files are larger, although they still have unconditional support for iOS, which “FLAC” does not.

“APE” is another and although the problem with this format is that it is not compatible with the vast majority of players, it is considered to be similar to the “FLAC” or “ALAC” format in terms of audio quality. . As it is highly compressed, it accelerates the functioning of the computer’s processor and it is therefore not recommended to use it in low-consumption computer equipment.

“WAV” and “AIFF” are not compression formats, but rather exact copies of the original content and differ in the way they record the data. “AIFF” was created by Apple and “WAV” is more universal, but both have too much disk space.

Formats with loss of audio quality

MP3, MPEG Audio Layer III or MP3, as many people already know, is the most common format that can be found. “ACC” is very popular on iTunes and is considered more efficient than MP3 because files in this format are smaller.

OGG Vorbis is one of the free and open source alternatives to MP3 and ACC. It is not limited by patents, but it is also not supported by many players. WMA is Microsoft’s proprietary format and is very similar to MP3, but without much advantage over the others.

best audio formats

Which audio format to choose?

The most recommended is “MP3” or “AAC” because many players support it. In addition, if they are encoded with a high bit rate, they can hardly be distinguished from the original source. However, if you want to burn music, formats like “FLAC” are recommended, because you can then convert everything to other formats without losing audio quality.

Once the audio formats are known, when choosing, the differences between each must be taken into account. In general, what the experts recommend is to use “MP3” or “AAC” as they are compatible with most players and the quality of both is very similar to that of the original source, especially if it is encoded with a high bit rate. Unless you have a specific need, “MP3” and “AAC” are the most recommended options.

However, one thing to know is that to store music in lossless formats, there is no “FLAC”. You probably won’t notice any higher quality, but it’s good for storing music if you plan to convert it to other formats later. In these cases, “FLAC” is always recommended, and it is also possible to choose the format without loss or degradation of quality

What is the best audio format?

What is the best audio format?

Many are known, but there is always the question of which is the best audio format. The main and most recognized for listening to music are MP3, Wav, FLAC and Ogg.

But, to choose the best audio format, you must first know that they have multiple conformations, and you can always choose the best one. Music always goes everywhere, at home in front of the computer, in a living room with a hi-fi system, with headphones on public transport or when playing sports. Music that gives a special meaning to each moment and that encourages when heard.

There are many ways to enjoy it, but it is usually always done in digital format. Within the audio files, there is a great variety and normally many still use MP3 for convenience. But there are alternatives that are less popular and that seek to offer a different and higher quality experience. For those who do not know it, there are a number of main sound systems.

The best audio format

Beyond that the MP3 format is the most popular of all available audio formats, it is not the only one. Some others like “FLAC”, “WMA”, “OGG” have certain characteristics that, depending on what you want, can be very useful on certain occasions.

In technology, audio formats can generally be classified into 2 categories. There are those that retain all the quality and those that lead to quality losses in sound or information.

Those that preserve the quality of the audio are those that come from pure sources such as CDs. This is how those who lose quality and sacrifice this information are to save space.

Formats that preserve audio quality

“FLAC” is Free Lossless Audio Codec or “FLAC”. It is one of the formats that best preserves the audio quality and its compression algorithm is excellent. It is open source, does not generate quality losses and the size of the file because it is compressed, is much smaller.

Apple Lossless is known as “ALAC” and is very similar to “FLAC”. The difference is that it is not as efficient, so these files are larger, although they still have the unconditional support of iOS, something that “FLAC” does not have.

“APE” is another and although the problem with this format is that it is not compatible with the vast majority of players, it is considered similar to the “FLAC” or “ALAC” format in terms of audio quality. As it is highly compressed, it makes the computer’s processor work faster and therefore it is not recommended to use it in low-power computing equipment.

“WAV” and “AIFF” are not compression formats, but rather exact copies of the original content and differ in the way they save data. “AIFF” was created by Apple and “WAV” is more universal, but both have too much disk space.

Formats with loss of audio quality

MP3, MPEG Audio Layer III or MP3, as many already know them, is the most common format that can be found. “ACC” is very popular on iTunes and is considered more efficient than MP3 since files in this format are smaller.

OGG Vorbis is one of the free and open source alternatives to MP3 and ACC. It is not restricted by patents, but it is also not supported by many players. WMA is Microsoft’s proprietary format and is very similar to MP3, but without great advantages over the others.

Which audio format to choose?

The one that is most recommended to choose is the “MP3” or “AAC”, since many players support them. Furthermore, if they are encoded with a high bitrate, they can hardly be distinguished from the original source. However, if what you want is to burn the music, formats such as “FLAC” are recommended, because then you can convert everything to other formats, without losing the audio quality.

Once the audio formats are known, when choosing, the differences between each one must be taken into account. In general, what experts recommend is to use “MP3” or “AAC” since they are compatible with most players and the quality of both is very similar to that of the original source, especially if it is encoded with a high bit rate. Unless you have a specific need, “MP3” and “AAC” are the most advisable options.

However, one thing to know is that to store music in lossless formats, there is no such thing as “FLAC”. You probably won’t notice a higher quality, but it’s good for storing music if you plan to convert it to other formats later. In these cases, “FLAC” is always recommended, and it is also possible to choose the format without loss or degradation of file quality.

As a final conclusion, it can be said that you should not be obsessed with the subject, but you just have to be sure of what you want and choose.