There are several types such as WAV, MP3 and FLAC, but what is the difference?


Free Download Mp4Gain
picture

There are several types such as WAV, MP3 and FLAC, but what is the difference?

Music File Formats

Comprehensive research on file formats
Do they like music to all?

audio file formats

I think many people enjoy music by downloading or playing streaming instead of CD these days, but what kind of format music is stored as data?

I researched the differences, advantages and disadvantages of each format.

Types of audio compression

There are three types of music file formats: “Not compressed”, “compressed with loss” and “compressed without loss”.

File-based compression can reduce the size of the file and reduce the download time and storage capacity.

“Uncompressed format”
As its name indicates it, it is an uncompressed file. The point are the original data.

The advantage is the accuracy of the data. However, it also has the disadvantage of a large file, which uses about 10 MB for a 1-minute audio file.

The most used are “WAV” and “AIFF”. It is common to use “WAV” for Windows and “AIFF” for Macintosh.

“Compression format with loss”
This compression format is probably the one that most uses.

Although there are individual differences, it is said that the human audible range is 20 Hz to 20000 Hz. This file format has the advantage that the file size can be deleted while maintaining a certain level of sound quality when it is removed and compressed Other parts difficult to identify.

Even so, the disadvantage is that the sound quality is lower than the original data. It is not exaggerated to say that “MP3” is the best-known file format. As successors, “AAC” is often used, which was created to achieve higher sound quality. In addition, “WMA”, “Vorbis”, etc. They are also in this format.

“Format of compression without loss”
This format compresses the original data while preserves them.

During playback, you can decompress and return to the original uncompressed format, so the sound quality is the same as that of the original data. Although the file size can be reduced compared to the uncompressed format, it is still about half, so the size of the file is greater than that of the compressed format with loss and takes more time coding and decoding.

In addition, it is currently not handled by the main music distribution sites, and the number of devices that can be reproduced is less than that of uncompressed formats. The most common of these formats is “FLAC”, and Apple uses a single format called “ALAC”.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

What is the difference between MP3 and AAC? Part 3

What is the difference between MP3 and AAC? Part 3

aac vs mp3

Finally, let’s review the important MP3 and AAC compatible devices.

 

MP3 o AAC

MP3s are compatible with almost all music-playing devices, such as personal computers, smartphones, and audio devices. Therefore, it is generally better to save the file in MP3 format.

As for AAC, it is a recommended storage format for iPad / iPhone users and those who use iTunes, Apple’s official music player, because it is compatible with Apple devices. Even if you import the sound source from a CD with iTunes or purchase paid music content from iTunes, it will be saved in AAC format.

Which is better, MP3 or AAC?

Unsplash logo Photo by marksolarski
In this article, I explained about MP3 and AAC music file storage formats. Finally, if you do not know what is the storage format that I should use, to leave and save the music files in MP3 format, it can be said that it is the best. MP3s have many playable devices and the sound quality is not that different from AAC.

Also, files saved in MP3 format can be easily converted to AAC files using iTunesw. When saving as MP3, it can also support post file conversion, so if you have problems with the save format, it is better to select the MP3 format. Also, if you’re targeting Apple devices, try saving music by choosing an AAC format that doesn’t need to be converted.

What is the difference between MP3 and AAC? Part 2

What is the difference between MP3 and AAC? Part 2

AAC Vs. MP3

The disadvantage of the “lossy compression format” used by MP3 / AAC is that the compressed data file cannot be restored to its original size (the original sound quality of music content).

aac vs mp3

There is a music content compression format called “lossless compression format”, which has a relatively large data size and can restore the original sound quality when playing music files.

There is not much difference between the two compression formats, but if you want better sound quality, you should use the “lossless compression format”. In the next chapter, we will further compare the differences between MP3 and AAC formats.

Comparison of MP3 and AAC

Unsplash Logo Photo by duck58cth
We will compare MP3 and AAC in terms of sound quality and compression rate (bit rate).

Sound quality

As mentioned above, MP3 and AAC are compression methods that use the “lossy compression format”, so there is not a big difference in sound quality between the two formats. The sound quality of MP3 and AAC differs depending on the compression rate (bit rate) of the music content file. So what exactly is the compression rate (bitrate)? The next section describes (compression bit rate).

Compression rate (bit rate)

format Compression rate (bit rate)
64kbbp 96kbbp 128 kbbp 160 kbp 192 kbbp 256 kbbp 320kbbp

MP3 Upper Limit Frequency 8.3 kHz 11.7 kHz 15.2 kHz 18.6 kHz 21.3 kHz 22.0 kHz 22.0 kHz

MP3 size 123kB 184kB 245kB 308kB 372kB 494kB 616kB

AAC upper limit frequency 13.5 kHz 15.2 kHz 18.7 kHz 19.1 kHz 19.6 kHz 20.0 kHz 20.0 kHz

AAC size 127kB 188kB 249 KB 310kB 368kB 490kB 613kB

The comparison table above shows the compression rate (bit rate) of MP3 and AAC, and the upper limit of frequency and data size (capacity). The higher the value of the compression rate (bit rate), the higher the upper limit for frequency and data size (capacity), and the better the sound quality.

Although the compression rate (bit rate) of MP3 and AAC is the same, the data size (capacity) and the upper limit frequency are different, so please compare the sound quality using the table above as a guide.

Proper use of MP3 and AAC

In this chapter at the end of this article, we will introduce how to use MP3 and AAC correctly. Even if you read the comparative explanation of MP3 and AAC presented so far, many people may not get it right. How to use MP3 and AAC correctly should be judged by the compression rate (bit rate).

Bit rate

As discussed in the previous chapter, the higher the value expressed in “kbbs” called the compression rate (bit rate), the better the sound quality. However, MP3 and AAC have the same compression rate (bit rate) but different upper limit frequencies.

128 kbps to 160 kbps is adopted for general MP3 / AAC music files. This is because you can watch various music genres like J-POP and Jazz with high sound quality. You can fully enjoy music with your PC speakers and audio equipment.

Then I will explain the characteristics of the compression rate (bit rate) of 128 kbps or less and the compression rate (bit rate) of 160 kbps or more, and which file format should be used, MP3 or AAC.

Less than 128 kbps

A compression rate (bit rate) of less than 128 kbps does not improve the sound quality of music, etc., and is not suitable for the music content storage file format. Suitable as a conversation-focused radio sound source. Also, if it is less than 128 kbps, the AAC format has a higher frequency upper limit, so the sound quality is said to be better than MP3.

192 kbps or higher

The compression rate (bit rate) of 192 kbps or higher reproduces even delicate sounds like classical music. If you have a good ear, you can clearly tell the difference in sound quality.

When the compression rate (bit rate) is 192 kbps or higher, the MP3 format has a higher upper limit frequency and is said to have a higher sound quality. The data size (capacity) is almost the same as that of AAC, so it is recommended to save it in MP3 format.

What is digital audio?

What is digital audio?

Digital Audio

Digital sound is nothing more than a combination of numbers. With a certain algorithm, sound, such as air pressure, is converted into data streams and encoded for further processing and playback. Depending on the algorithm used, the music file has one format or another, one or another extension.

Analog Vs. Digital Sound

Remember that along with digital sound, there is analog sound, which is represented by a continuous electrical signal that reflects the change in the sound wave. The analog to digital sound conversion is a setting of the numerical value of the amplitude at a given time with a given density of values. Consequently, the more values ​​that are recorded, the more reliable and accurate the image of the digitized sound fragment is recreated. With such digitization, very voluminous data matrices emerge that, depending on the format used, differ in the sound quality / volume ratio of the final file.

Perhaps the main advantage of digital audio over analog is the ability to store and copy data indefinitely without losing the original quality (whereas when copying from one analog medium to another, a decrease in recording quality is quite noticeable).

The most widespread and popular digital audio format today is MP3 (MPEG Layer 3). It was developed, after a series of intermediate formats and investigations, started in 1987, by the Fraunhofer Institute in Germany.

The developers of the format were faced with the task of simplifying and reducing the cost of shipping long musical fragments. As you know, one minute of a stereo signal from a CD (16 bit, 44.1 kHz sample rate) takes up about ten megabytes of memory. At the same time, unlike text or graphic files, the audio signal cannot be compressed without loss of quality. Thus, modem transmission of an uncompressed composition from an audio CD lasting 3 minutes at a data transfer rate of, say, 24 kbps will take several hours. Scientists at the Fraunhofer Institute managed to achieve multiple file size compression: on average, one minute of a compressed audio signal in MP3 format takes about 1 megabyte. The principle of compression is based on the elimination of “unnecessary” sounds from the music file, to which the human ear is immune, or that duplicate each other.

The main factor that determines the relationship between file size and sound quality within a given format is the bit rate. Bit rate is an indicator of how much information a second of sound encodes. The higher it is, the less distortion and the closer the encoded composition is to the original. The most common on the Internet are compositions with 128 and 192 Kbps bitrates. The maximum bitrate supported by programs and devices that work with MP3 is 320 Kbps. In practice, only an expert or a professional who works with sound can notice the differences between an MP3 file with a 320 bit rate.

To optimize the size of MP3 music files while maintaining decent quality, a variable bit rate (abbreviation VBR – variable bit rate) is used. In this case, the encoding program divides the file into fragments of different spectral saturation and encodes them with a suitable bit rate. Most modern MP3 players support variable bit rate playback. A significant advantage of MP3 files is that they can contain the name of the artist, the name of the track and the album, the year of its release, etc. The set of this data is called ID3 tags. Most modern gamers can read and display them on the screen.

In 2001, Swedish Coding Technologies and Thomson Multimedia developed the MP3 Pro codec. It is MP3-based and as a result is fully MP3 backward compatible and only partially forward compatible. It uses SBR (Spectral Band Replication) technology, so the codec provides good quality at low bit rates. However, the encoding quality at medium to high bit rates is inferior to that of most other codecs. For this reason, this format is mainly used for broadcasts on the Internet and demonstrations of fragments of new musical compositions.

Another type of MP3 was the development of MP3 Surround, recently introduced by the creators of MP3: the Fraunhofer Institute. This format repeats all the characteristics of multichannel sound, while still being compatible with standard stereo MP3: information describing the spatial characteristics of the sound is recorded on an additional track. By playing files of this format on special equipment capable of reading this track, you can obtain surround sound that conforms to the Surround 5.1 standard.

Digital audio: a simple but deep explanation about digital audio. Part 1

Sound is a phenomenon that implies a propagation of waves generally produced by a vibratory movement of a body. The propagation of sound implies a transport of energy without carrying out a transport of matter.

digital audio

As the sound is produced by a wave movement when applying the Fourier transform we can express it by a sum of sinusoidal curves that correspond to pure tones that can be characterized by the magnitudes of any wave such as:

-Period It is the time elapsed between two equivalent points of a wave.
– Wavelength It is the real distance a wave travels from its highest point to the next equivalent point.
-Frequency It is the magnitude that measures the number of repetitions in a space of time.
-Amplitude It is the distance between the furthest point of the wave with the equilibrium point.

These magnitudes give the sound a series of characteristics such as:

-Duration: Determines the length or short of the sound due to the time, measured in seconds, it occupies.
-Intensity: Determines the high or low sound due to what we know in relative terms as volume, which is measured in decibels (it is a logarithmic scale).
-Timbre: Determines the proper nuance of each instrument or sound source due to the different harmonics that compose it.
– Hue: Determines the acute or serious sound due to the frequency it has. The frequency is measured in hertz (Hz).

If we carefully consider it, we will see that the initial concept of Mp3Gain was intensity, which is measured in decibels and represents the loudness we perceive.

digital audio

Digital audio

Digital audio is the digital coding of an electrical signal that represents any sound wave. This electrical signal is picked up for example by a microphone, which takes the sound whose nature is analog and transforms it into electricity that still has the same type of analog nature, then through the necessary hardware and software it can be transformed into binary information, turning Something continuous in discreet. This process involves two tasks: sampling and digital quantification of the electrical signal.

Within the digital audio there are different types of formats to represent the audio:

-PCM: They contain all the information received from the analog to digital converter, without any omission of data. This makes the type of formats that have the best quality in the digital world. WAV is an example of this type of format in question.

-Compressed: It is similar to the previous one, but specific compression techniques are used in which “non-essential” information can be lost to reduce the size of the final file. They usually have good quality in relation to the weight of the file, but as noted above, information is lost, so those with sufficiently developed / trained ears might perceive that there is something strange in a song for example. On the one hand we have formats such as MP3 and OGG that compress with loss, compared to FLAC that compresses without loss. Obviously between one format and the other there is a notable difference in the size of the final file.

-Descriptive: They are used primarily to make music and contain mainly a description of what would be the “score” of the song. With this description, the algorithm, which reproduces the song, can take a sound source with samples of the instruments that the composition needs, to synthesize the final sound based on the indications of the “score”. Examples of this format are MIDI and tracker formats (MOD, XM, IT, etc.). The difference between MIDI and tracker formats is that the latter bring built-in sound sources into the file, so the final file weighs more than using MIDI. However, with MIDI we will need to obtain a sound source on our own or use the one that brings the default sound card (which is not usually too good).