Lossless audio compression explained


Free Download Mp4Gain
picture

Lossless audio compression explained

LossLess Audio compression

FLAC is perhaps the most popular lossless audio format and encoding codec.

lossless audio compression

Music lovers are gradually switching to this format. WavPack competes with it, but it is not that popular. It’s the same story with Apple Lossless, which reduces the size to 60%.

Here the story is exactly the opposite: the quality is better and the size is greater.

Skeptics say that it is almost impossible to distinguish MP3 (320 kbps) from Losless by ear. “And if there is no difference, why pay more?” In fact, on ordinary equipment, it is quite difficult to feel the difference in audio formats, even for music lovers. But there are those who immediately feel this difference (they personally attended the experiment). But when listening to a good device, the difference is huge. The problem is that not everyone can afford a good device.

Compressed using special lossless audio codecs, it can be restored with absolute precision if desired.

If you take a normal audio CD disc with analog sound, record it in WAV format for uncompressed sound, then compress WAV using lossless codec, then decompress the resulting sound file into WAV and burn the result to a blank CD , you can get two completely identical audio files COMPACT DISCS.

The advantage of lossless for storing an audio collection is that the quality of the recordings is much higher than that of lossy codecs and they take up less space than uncompressed audio. It is true that lossy files are smaller than lossless music files. Most modern playback programs understand the lossless format. Programs that cannot play it can easily learn it using the lossless plugin. What are lossless audio formats?

Lossless audio formats
A true music lover is unlikely to be satisfied with the sound of music recorded in Ogg Vorbis or MP3 compression formats. Of course, if you listen to audio recordings on home audio equipment, sound defects cannot be heard with your ear, but if you try to play a compressed file on high-quality Hi-Fi equipment, you will immediately find the sound defects. . Of course, creating a collection of quality music on CD or vinyl is not easy. There is a reasonable alternative to this path for lovers of high-quality sound: lossless music. It can be stored on your PC in a way that allows you to keep the original music settings unchanged, even if compression is applied. In this way it simultaneously solves the problems of high-quality music and its compact storage, since audio equipment for listening (headphones, speakers, amplifiers) is quite affordable.

Uncompressed lossless audio formats:

CDDA is an audio CD standard;
WAV: Microsoft Wave;
IFF-8SVX;
IFF-16SV;
AIFF;
Compressed formats:

FLAC;
APE – Monkey’s Audio;
M4A – Apple Lossless – Apple’s high-quality music format;
WV – WavPack;
WMA: Windows Media Audio 9;
TTA – True Audio.
LPAC;
OFR – OptimFROG;
RKA-RKAU;
SHN – Shorten.
FLAC format
The most common format is the. It differs from lossy audio codecs in that no data is removed from the audio stream when it is used. This makes it possible to use it successfully to play music on Hi-Fi and Hi-End equipment, as well as to create an archive from a collection of audio recordings.

The great advantage of the format is its free distribution. This is important for musicians who record music on their own. The format has grown in popularity lately, thanks to which its support is included in the vast majority of multimedia players.

APE format
Unlike FLAC, for the APE format there are only codecs and plugins for the Windows platform. For other platforms, there are expensive third-party software solutions. The algorithm is capable of achieving lossless compression of the audio information between 1.5 and 2 times. It includes three main stages of encoding, of which only one is based on the use of inherent properties of sound for compression. The rest are similar to conventional filing cabinets. Despite the fact that the compression algorithm is distributed free of charge, the licensing restrictions are such that it is practically inaccessible for amateur musicians.

Apple Lossless Format
You can listen to high-quality lossless music using the audio compression codec without sacrificing Apple quality. This format was developed by Apple for use on its own devices. The format is compatible with iPods with special dock connectors and the latest firmware.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Audio compression formats

Audio compression formats

Audio Compression Formats

Now there are many audio compression formats that were originally developed for a computer, but later migrated to home appliances. Some of them are outdated and practically unused, some have appeared recently and have not had time to occupy their niche yet. Here I will focus only on the lossy compression formats that allow you to achieve the highest degree of compression of the audio data. What does “lossy compression” mean? Only after encoding from a .wav file to a compressed format, and then re-encoding from a compressed format to a .wav file, the original file and the final file will be different. Maybe not for the better.

audio compression formats

The compressed audio format means that there is practically no change in sound quality, despite the decrease in file size by several times. How do you manage to achieve such a result? The science of psychoacoustics answers this. The human brain is designed in such a way that we do not notice the whisper of books in the background of a conversation, although on a computer, with close listening, we can track this sound. So it turns out that it looks like it is, but it looks like it isn’t …

The combination of conventional data compression methods and the knowledge of what information is perceived by our brain and what is not, allows you to achieve a music compression ratio of up to 10 times with an acceptable sound quality. Below I have provided a brief overview of the most common and well-known music file compression formats that could be used to create a home music collection.

MP3
MPEG 1 Layer III (less often MPEG 2 Layer III), also sometimes called by people as incompetent MPEG 3 (this format does not exist), has been for many years the only association with the phrase “computer music” for many users. Developed in the late 1980s, the format, which allowed music to be compressed up to 10 times without a catastrophic loss of quality, quickly took root in home computers.

The optimal compression bit rate is approximately 192 Kb / s. Although everyone’s ears are different: someone distinguishes distortions better, someone worse. A decent minimum is 128 Kb / s. It is possible to use a variable bit rate. That is, at the moment when the range of sound frequencies is small, the bit rate decreases, and when many things sound at the same time, then, on the contrary, it increases. A constant bit rate greater than 320 Kb / s is often excessive and causes a loss of space. Also, the MP3 file includes a specific area header Id3 tag. Contains basic information about the file. There are 2 different versions of this tag. The second, consequently, is more extensive, but nothing revolutionary has been added. The sound quality of an MP3 file can vary greatly depending on the selected encoder and player.

MPEGplus / Musepack (MP + / MPC / MPP)
This encoder is similar in principle to MPEG Layer II (MP2), but uses a more advanced algorithm. Unlike most modern codecs, the goal of the creators of Musepack was not at all to achieve the highest possible quality at low bit rates. The format is best displayed at medium and high bit rates (typical file bit rate is usually in the 160-180 Kb / s range). A superb psychoacoustic model that uses VBR encoding for excellent sound quality. As a result, the codec performs better than most of its competitors at similar bit rates. The quality of the files obtained when compressed in MPC significantly exceeds the quality of similar MP3 files. One of the serious shortcomings of the current version of Musepack is the limitation of the file format: 44 kHz, 16 bit, stereo, which makes it inapplicable, for example, to compress audio tracks for DVD movies. If MP3 compatibility is not too important to you and you want the highest quality from the final file, choosing Musepack may be the ideal solution. Using this format is a real alternative to using lossless compression to encode music from CDs for those who are already disappointed with the possibilities of the MP3 format. and it is desirable that the quality of the final file is as high as possible, choosing Musepack may be the ideal solution. Using this format is a real alternative to using lossless compression to encode music from CDs for those who are already disappointed with the possibilities of the MP3 format. and it is desirable that the quality of the final file is as high as possible, choosing Musepack may be the ideal solution.

Lossy Audio File Types: How It Is Different From Lossless

Lossy Audio File Types: How It Is Different From Lossless

Lossy Compression vs Lossless Compression

Lossy is a word used in digital audio to describe the type of compression used to store audio data. The algorithm used in the lossy audio format compresses the audio data in such a way that it discards certain information. This loss of signal means that the encoded sound is not identical to the original.

lossy vs lossless

Lossy audio produces lower quality audio and has a smaller file size.

Lossy compression is also called irreversible compression because data that has been deleted is impossible to recover.

What is the difference between Lossy and Lossless?
When you create MP3 files by ripping one of your music CDs, some details of the original recording are lost, making it a lossy format. This type of compression isn’t just limited to audio; for example, JPEG image files are also lossy compressed.

Sheets of colored paper compressed into a ball

This method is the opposite of lossless audio compression used for formats like FLAC, ALAC, and others. In this case, the audio is compressed in such a way that the data is not deleted. The sound is identical to the original source.

Lossy archives take priority when it comes to compatibility. While lossless files are only supported by some devices and apps, a lossy audio format like MP3 will work on almost any device.

How Lossy Audio Compression Works
Lossy compression makes certain assumptions about frequencies that the human ear is unlikely to detect.

When a song is converted to a lossy audio format such as AAC, the algorithm analyzes all frequencies and then discards the frequencies that the ear should not be able to detect. These low frequencies are filtered or converted into mono signals that take up less disk space.

Another technique eliminates very quiet sounds that the listener is unlikely to notice, especially in the loudest part of the song. This approach reduces the size of the audio file while maintaining the highest possible audio quality.

What happens to the audio when it is compressed?
Lossy compression introduces artifacts. These artifacts are unwanted sounds that are not in the original recording but are a by-product of compression. This noise degrades sound quality and is noticeable when music files are converted using low bit rates.

Various types of artifacts affect the quality of the recording. Distortion is one of the most common artifacts. For example, distortion makes the drums feel weak, without any real beat. Song voices can also be affected, resulting in harsh vocals and lack of detail.

In many cases, casual listeners can’t tell the difference between lossy and lossless encoding, although some audiophiles using very expensive equipment claim to hear the difference. The difference in quality is only noticeable when very low data rates or aggressive compression algorithms come into play.

Why compress audio files?
Most digital audio formats use some form of compression to efficiently store sound. Without compression, the file sizes would be very large.

For example, a typical 3-minute song stored as an MP3 file is between 4MB and 5MB. Using the WAV format to store the same song, but without compression, results in a file size of approximately 30MB, at least six times that size. Fewer songs fit on your smartphone or hard drive when you choose uncompressed audio formats

Lossless audio formats

Lossless audio formats

Lossless audio

Audio files can be converted in a more or less space saving way using lossless or lossy codecs. While the data reduction is absolutely true to the original with lossless codecs, a difference can be heard from the original material, especially with heavy compression with lossy codecs.

Lossless compressed audio files lose approximately 25% to 50% of their original file size. Typical representatives are Monkey’s Audio, FLAC, or WavPack. Modern lossy codecs like AAC, Ogg Vorbis, or MP3, on the other hand, reduce source material by 90% without sounding noticeably worse.

Lossless audio compression

Unlike documents or images, for example, audio files are very difficult to compress, since identical repetitions are very rare in music. But it is precisely on such occurrences that the Huffmann or Lempel-Ziv algorithms depend, which are used in ZIP or RAR, for example. Therefore, most non-clustered compressors employ predictive coding. The signal is divided into a music component and a noise component. Depending on how well this prediction has been made, the noise component should ideally be Gaussian white noise that can be easily compressed using conventional methods.
In the ideal case, the result is 50% compression, which is highly dependent on the piece of music.

Monkey’s Audio, FLAC and WavPack are popular formats for lossless compression of WAV (PCM) files, for example digitized original recordings from the recording studio (for archiving or later processing) or archiving copies of music CDs. The sound quality is always the same as the original and the checksums reveal corrupted files. Increasing hard drive capacity at affordable prices makes “Lossless Codecs” interesting for everyday use.

Uncompressed: WAV (PCM)

WAV is the largest common denominator of Windows audio formats. The Macintosh equivalent is called AIFF. WAV is actually the collective term for various subformats, of which PCM is the most common and is generally equated with WAV.

WAV (PCM) is an uncompressed recording of sound samples: the time signal of a noise is sampled, quantized, digitized, and saved at discrete points in time. The more often and finer you record these values, the better the sound. With CD quality music, this instantaneous value is recorded 44,100 times per second and recorded with 16-bit “precision”, that is, 2 ^ 16 = 65536 possible values.

With the help of special programs (eg CDex, EAC, Audiograbber), Audio CDs can be transferred to the hard disk as WAV (PCM) files. Viewed in this way, WAV (PCM) files are copies of the original, provided the CD-ROM drive is not read incorrectly or the CD is damaged. One minute at CD quality requires roughly 10MB of storage space, which is not as happy to give away even in the age of ever-larger hard drives.

On the PC, WAV (PCM) and CD-quality (44.1 kHz, 16-bit, stereo) audio files are often the starting material for creating space-saving audio files in formats such as MP3. However, for sound processing on the home PC, WAV (PCM) is the first choice.

Monkey’s Audio

Monkey’s Audio is a lossless audio codec for PCM wave files. Monkey’s Audio comes with a convenient program interface (in English), over which files can be compressed, decompressed, verified or tagged. PCM wave files (any sample rate, 8/16/24 bit, mono or stereo) or corresponding Shorten or WavPack files are accepted as source files. Monkey’s Audio does not support multiple channels.

The APE tags that are used to store the title information can be supplemented with their own fields and are therefore very flexible. They are now used in conjunction with other audio formats as well.

The included command line encoder allows integration into other programs. Various audio players support the format through plugins. A plug-in for Winamp can be installed at the same time as installation. Monkey’s Audio is a Windows program by default. However, there is a platform independent version of Java.

FLAC

FLAC stands for “Free Lossless Audio Codec”. There are several lossless audio codecs available. FLAC is suitable here for several reasons: FLAC follows the open source philosophy (free open source code, available for many operating systems), works very fast, has a good and secure framework structure.

Lossless audio formatsĀ 

WAV (.wav) The WAV format is nothing more than a digital recording of real sounds, sounds that come from a source outside the PC. With WAV music, drums, piano, guitar, bass or vocals are heard the same, no matter what computer the file is played on (with the same acoustic quality of hardware components, of course).

wav

DSD (DFF, .Dsf) are used in digital media such as Super Audio CDs. Sampling quality is very high (variable sampling rate is approximately 64 times higher than for audio CDs), although according to several operators in this sector, it must be absolutely determined whether the final quality is higher than the sampling quality. PCM (used in high quality Blu-Ray and DVD Audio). I can reproduce free readers like Foobar 2000 or AIMP on our computer.

AIFF (.aif). It’s the Apple audio format used by Apple for Mac. It’s basically the WAV equivalent used by Windows.

APE (Mono Audio; .ape): Ordinary with a loss that allows us to reduce by about 50% the space occupied by our music (in some cases even more), without losing quality. In this way, an album that takes up about 600 MB in wav format averages 300 MB (much more than about 100 MB of high-speed mpc and 60 mp3 mp3, but the quality is the same as the original); On average, I speak because there are certain types of music where the level of compression is even higher. You can use WinAmp plug-ins to listen to songs in this format, or better yet, a player that uses it natively as Foobar 2000. Right now, it’s probably the best lossless codec, considering the balance between speed and compression (Click here for a lossless comparison table) format.)

Apple Lossless Audio Codec – ALAC (.m4a) This is a lossless audio codec created by Apple a few years ago and available as an open source from Apple since October 2011. Some programs support it in Windows (encoded). , including DbPowerAmp.

FLAC (.flac): a very popular open source format. It used to be very popular (among music purists), but some space has been lost with the MonkeyAudio bee format, which allows for better compression in the same quality. Compared to others, it always came in .ape format (but also after WavPack).

 

LA (Lossless Audio: .la): The lossless format that compresses the most. Conversion to this format is very slow, but achieves the best compression in history (for example, MonkeyAudio, this album would take up about 290 MB compared to 300 MB in APE). This is not widespread, as some MB obtained on a bee is not worth the long wait (and less support from third-party programs), but it is the winner of my lossless format comparison.flac

OPTIM FROG (.ofr) – Excellent lossless codec, best after LA as compressibility. Compression, when set to slightly high levels, is about 3 times slower than Monkey Audio and the gain in MB is about 2%. Like all other formats on this site, you can listen without the addition of Foobar 2000.

WAVPACK (.wv, wvc) – is a valid open source compression format that allows lossless, lossy and hybrid results. The compression rate is high and the compression is good. Another interesting hybrid format is that the lossy file is merged with another file, which allows you to completely restore the original file without loss in case we want to restore it.

What are the most popular audio formats?

What are the most popular audio formats?

There are dozens of audio files that we can use to convert a song, but the really useful ones can be counted on the fingers of one hand.

losseless

When we think of an audio file, most of us immediately think of MP3. Without a doubt, it’s one of the most popular audio formats, but it’s not the only one. Let’s see what are the most popular audio formats and what are the differences in use. And we have to choose that according to our needs.

There are different categories of audio files. First we defined the formats as uncompressed. The word itself defines this section of the file. In this case, the recorded sound waves are actually converted into a digital format without further processing. What does it all mean? In files that are very difficult to save and take up a lot of space. In order to simplify the storage of audio files and to reduce the load, formats with lossy data compression were created. These sacrifice some quality in favor of the small storage space required.

losseless

To fix this error, which represents the loss of quality in favor of file size, compressed audio formats were created without loss of data. Obviously, they’re not small files like lossy compression, but they’re still smaller than uncompressed. However, it must be said that these types of formats are only widespread in certain cases.

PCM

PCM is the most common and widely used audio format on CDs and DVDs that we have at home. It is the faithful conversion of analog audio into a digital file. It is no coincidence that it is an uncompressed audio format. Remember that analog sounds exist as waveforms. In order to convert a sound wave into digital bits, the sound must be sampled and recorded at certain intervals.

WAV

WAV stands for Waveform Audio File Format (previously it was also called Audio for Windows, now it is no longer). It is a standard developed by Microsoft and IBM in 1991. WAV files can contain compressed and uncompressed audio formats. In most cases, however, they are used for uncompressed people. Although it was developed for Windows, it can also be safely opened on a Mac.

MP3

This is without a doubt the most popular audio format. It was released in 1993 and over the years its success has increased thanks to the combination with the pieces of music. Why are they used so often? Quite simply, these are lossy compressed files, and the generated files are so small that users can create a music library without taking up too much space. And the quality? It is much lower than other formats, but the human ear doesn’t always manage to notice the difference significantly. MP3 is also a universal file. It can be found on smartphones, computers, smart TVs, tablets and many other electronic devices.

WMA

WMA stands for Windows Media Audio. It was first published in 1999 and has gone through several developments since then, always keeping the same name. As you can easily guess, it is an audio format created by Microsoft. It was developed to replace MP3s. Unfortunately, there are very few platforms that support this, so the MP3 mastery has never been compromised.

OGG

OGG is not a real compression audio format. We can define it as a multi-purpose multimedia container. It can contain all types of audio formats, but is often used to contain Vorbis files. It is one of the best performing files to reduce size without losing quality.

FLAC

FLAC stands for Free Codec Lossless Audio. It is a lossless, compressed format that was created in 2001. A FLAC file can be compressed to 60% of its original size without minimal loss of sound quality. It is also an open source format. Because of this, it is compatible with most programs and devices. It is the best quality alternative to MP3.