Audio formats


Free Download Mp4Gain
picture

Audio formats

Compression

Compressions are systems for reducing the file size by using different types of algorithms and / or encodings.

compressed audio

There are two types of compression: lossless (compression), which compresses the file without deleting information. Decompression can therefore exactly return the original and lossy (lossy) compression, eliminating redundant parts that are considered irrelevant or irrelevant and the decompression does not return to the original.
It is clear that the first system preserves the integrity of the original, but less compressed, while the second implies a loss of quality, but compresses much more, in proportion to the degree of loss one is willing to accept. Let’s look at a few examples.

Lossless compression

Lossless compression is based on reducing the redundancy typical of human production.

human perception
For example, in a book dedicated to experimental music, the phrase “experimental music” is repeated many times with 19 characters. At this point, simply replace it with a symbol that is normally not included in the text, e.g. ‘# 1 #’ to reduce a term from 19 characters to one of 3 and store 16 characters for each occurrence. Actually we have to say “for every occurrence after the first”, because in order to unpack the text, we also have to create an index of the substitutions in which it is written in this case
# 1 # = “experimental music”.
Obviously, many other words or phrases are repeated several times in the book, and each of them can be replaced by a symbol such as # 2 #, # 3 #, …, # n #, where n is a progressive number, which ultimately makes significant savings.
The Lempel-Ziv (LZ) algorithm uses a similar system, the derivatives of which underlie many modern lossless compression programs, including the well-known ZIP.
In fact, the ancestor of many lossless encoders is the so-called Huffman coding. It is a redundancy elimination system that was developed in 1952 by the researcher of the same name, then an MIT student. His algorithm solves the problem of encoding a series of strings (string = any character set) as compactly as possible, taking into account the frequency with which strings occur: the most common is assigned the shortest symbol in to maximize compression. Here is a good example dealing with Huffman coding issues.

Another type of lossless compression, which is always based on reducing redundancy, is the so-called Run Length Encoding (RLE), which works in a very simple way. Suppose we have the following string of 20 characters
ABBBBBBBBBCDEEEEFGGG

By applying the RLE it will
A 9BCD * * * 4EF 3G

for a total of 13 characters with a saving of 35%.
In practice, a code consisting of the character and the number of repetitions was inserted instead of the repeated characters. The asterisk indicates that the following is the number of repetitions and is not part of the chain (this is of course the basic principle; the details of the coding may vary).
Of course, this system is not productive with text, but it is the case with images where long stripes of the same color are fairly common.

Lossy compression

Lossy compression is based on the elimination of the information components that are considered to be more or less irrelevant depending on the compression level required. At low compression levels, only the really irrelevant details are removed, while at higher levels, the sensitive details are also removed.
An example that is not audio is the encoding of JPEG images, in which nuances are eliminated by assigning neighboring pixel groups the same color if their difference is less than a value that is proportional to the degree of compression. On this page you can see the effect of the size reduction and the corresponding loss of quality when increasing the compression levels.

Further information on compression on Wikipedia (free, community-created encyclopedia) can be found here in English. Wikipedia also exists in Italian, but the content is smaller.
First class compressed audio formats
Lossless (lossless)
These formats work similarly to zip. You compress the content without removing anything. At the time of listening, it is necessary to perform a decompression and to return to the original in one of the linear formats already shown.
Since it is lossless compression, the comparison between these codecs is not made in


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Digital Music: A Quick Guide to Having the Best Lossless Files

Digital Music: A Quick Guide to Having the Best Lossless Files

Digital Music

Surely changing our music from one side to the other, from an analog format to a digital one or even music already stored in digital format on a compact disc towards one for use on mobile devices, would result in a loss of sound quality that would exceed convenience and comfort.

This has been the main vision of people who care about sound quality, since the concept of digital music files was born. A reference generated by the common use of highly compressed lossy formats such as MP3.

wHowever, it is an opinion that simply “cannot take any more water.” Yes, popular formats like MP3 and AAC sacrifice some quality to keep file sizes small, but the emergence of lossless digital audio formats that are capable of preserving every piece of information from a CD recording means that a ripped file It may sound indistinguishable from the original.

You may still be wondering why you should spend precious time ripping up your CD collection. It’s all about convenience: a lossless digital music collection saves shelf space, is easy to move and to back up; for larger collections, it also makes locating individual songs and albums much easier and faster. You can also access a digital music library from multiple sources simultaneously, for example, from multiple network music players located in different rooms in your home.

Additionally, thanks to higher quality file acquisitions with popular streaming and download sites like B&W Society of Sound, higher quality music files can now be accessed as part of a subscription-based model without taking up space valuable on shelves – or even the attic – with physical means.

On the hardware side, storage devices like NAS and external hard drives offer huge amounts of space at ever lower prices. And with increasingly better and less expensive, widely available high-quality DACs, computers now offer excellent reproduction and can be easily connected to your existing hi-fi system, either wired or wireless.

When streaming or ripping discs, the file format option may seem complicated by too many options. This is what we think of the main formats that can be the salvation of true audio enthusiasts:

FLAC

Free Lossless Audio Codec is a popular choice for many audiophiles. Like MP3 and AAC, FLAC is compressed to keep file sizes relatively small, but unlike those formats, it is lossless and therefore – in theory – indistinguishable from the quality of a CD. In theory. Audio from CD converted to FLAC will typically shrink about 50 percent from its original size; a typical three-minute song on a CD will take up 30-40MB of space, while a ripped FLAC version of that song results in 15-20MB.

FLAC supports metadata (artist and song information can be embedded in the file and artwork can be referenced by the file) and will be played on a wide variety of software and hardware. Crucially for many, it is currently not compatible with Apple products like iTunes or the iPhone.

However, there are downsides to FLAC from an audiophile perspective and a lot of that comes during encoding and decompressing the file for playback. Because FLAC is unzipped on the fly, the sound quality is highly dependent on the software you are using to do that. Therefore, although it is theoretically lossless, there are still barriers to overcome when listening to the music contained in FLAC.

Apple Lossless

As you might guess from the name, Apple Lossless Audio Codec (or ALAC) was developed by Apple and works with company products like iTunes, iPod and iPhone (as well as supported by a number of other computers and players on software); If you are an avid user of the Apple team, it will be very attractive to you. However, like FLAC, this format is compressed, and files ripped from a CD are typically around 40-60 percent of their original size. Furthermore, ALAC suffers from the same decoding problems as FLAC.

AIFF

AIFF is a lossless format, but also without compression. While this means that it takes up as much space as the source file when ripping from a CD, it also avoids any compression issues, making it the ideal file for people who are concerned about sound quality.

Lossless audio formats

Lossless audio formats

We will show you the formats that maintain all the quality of the audio files, compressing just enough. Lossless formats tend to maintain the original quality almost totally, suffering a minimum loss of quality. In summary, they are slightly compressed so that the audio remains intact and the size on disk is smaller.

Among the Lossless formats we have:

FLAC, is a format whose algorithm is similar to ZIP or GZip, but specially designed for audio compression. While ZIP would compress a CD quality audio file from 10% to 20% of its original size, FLAC would compress it from 30% to 50% while maintaining the full quality of the source.

Monkey’s Audio (APE), like FLAC allows lossless compression, but the greatness of Monkey’s is that it compresses bit by bit, reaching data rates of up to 700kbps without any loss of quality.

Apple Lossless (ALAC) uses an MP4 container (with a .M4A extension) for its files just like the MPEG-4 AAC and is specially created for use on the iPod.

Shorten is another Lossless format with characteristics similar to Monkey’s Audio or FLAC, but using the .SHN extension and requires fewer resources for its reproduction.

WavPack uses a hybrid mode, unlike the other Lossless formats, since it uses a Lossy file, which creates a relatively small file at high quality, and a corrector file that recovers the remaining quality of the original file, resulting in an audio file at averages between Lossless and Lossy, but with the same quality as a compressed file with any other Lossless algorithm.

TTA (True Audio) is a free and free LossLess format that reduces by 30% the original size of the source audio file and uses compression / decompression in real time.

What are the advantages of listening to music in FLAC format?

The FLAC format allows us to save audio without loss of quality. This codec encodes the file with the same information that the original CD would have (which would be the WAV file).

Flac

It is an open source format (Free Lossless Audio Codec) that could be improved, thanks to its registration as an open source license.

Higher quality, especially for HiFi equipment: this format allows us to enjoy a bitrate between 900 and 1100 kbps that does not delete information as it does in the MP3, even if it is of high quality. You will notice a warmer, fuller and cleaner sound.
The information is continuous between tracks: just like on the original CD, you can listen to music without interruptions between tracks.
The music is not altered: and that is the main reason why FLAC is ideal. Well, the file you use is the same one that you would download from the CD.
The FLAC format supports unlimited sampling rates – a FLAC can reproduce frequencies of 192,000 Hz without problem.
However, all that it reduces is not gold. There are also some problems with FLACs that you should be aware of, although they are not serious at all.

Disadvantages of listening to music in FLAC format

They take up more: as a FLAC file usually takes up a little more than half of the original CD file. It is easy for an album to go to 300 MB.
Many players do not support FLAC – this is changing in a beastly way. But the industry has fought for the MP3 to the last breath and many players, radios, etc. do not yet support this standard.
That is, the disadvantages are or rather were. In the future we will have a new cleaner format, which will surely take up less space and be an evolution of FLAC. Currently, however, it is the format par excellence and the one that we should all use, although I am not sure that a new, closed format will not come out, that can cope with it before it reaches its peak.