Lossless audio compression


Free Download Mp4Gain
picture

Lossless audio compression

Lossless Audio compression

FLAC is perhaps the most popular lossless audio format and encoding codec. 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%.

Lossy file compression

The story here is: quality is better and size is bigger.

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.

In what format and with what quality is music heard on the radio?
In fact, we can say that there are currently two main audio formats: lossy (compressed) and lossless (uncompressed). They are classified into many types.

Lossy takes up less disk space, but degrades the quality of the audio track. When compressed using the MPEG protocol (hence the name mp3 – mp4 for files containing video sequences), the hues and transition tones, which are barely noticeable to the ear, are cut off. This makes the file clearer, but it also degrades it. The last place is occupied by the bit rate of that file: the degree of compression of each second of the audio track. The lower the bitrate, the less space the file will occupy and the worse the quality. Thus, a composition of three minutes in mp3 with a bit rate of 320 kilobits per second will occupy up to 3 megabytes on disk; a similar composition with a 96 kilobit bit rate will occupy about 400 kilobytes.

Lossless is as close to the original analog sound * as possible, making it much loved by sound engineers. Lossless formats take up much more disk space even compared to mp3-320. Among these formats, the most common are WAV (standard), FLAC (economic), AIFF (Apple). The former is used most often.

Professional sound recording is done only in uncompressed format. Only with him do the sound engineers work.

On the radio, the situation is somewhat more complicated. This is due to the peculiarities of the work of the media, namely efficiency and commercial profitability. The use of high-capacity servers is expensive and therefore most radio stations encode audio tracks in mp3 format at a bit rate of 256 kilobits per second. However, this is typical mainly of national stations. Equipment purchased from abroad has standard configurations that assume WAV encoding.

Why are software developers focusing on WAV? Because the radio signal cannot propagate without interference. Therefore, the listener still receives a small and sometimes significantly distorted signal. Therefore, broadcasters are faced with a reasonable question: what quality of sound will the listener perceive best: distorted ideal or distorted distortion? For this reason, in Europe and the United States, the WAV standard (AIFF, if the station operates with Apple equipment) is adopted, in Russia – mp3 with a bit rate of 256 kilobits per second.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

Lossless audio compression explained

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.

What are the advantages of the lossless audio format?

What are the advantages of the lossless audio format?

Lossless and Lossy Audio Files

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

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 a PC in a way that allows you to keep your music’s original 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.

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 gained a lot of popularity recently, 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 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. Even though the compression algorithm is distributed free of charge, the licensing restrictions are such that it is practically inaccessible to 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. The format does not use specific rights management (DRM) tools, but the container format contains such capabilities. It also supports QuickTime and is included as a feature in iTunes.

The format is part of the free access libraries, which allows you to organize listening to files in Windows applications. In 2011, Apple released the source codes for the format, opening up broad prospects for the codec. In the future, it can seriously compete with other formats. The tests yielded good results. Compressed files vary in size between 40-60% of the originals. The decoding speed is also impressive, which justifies its use for mobile devices, whose performance is not high.

One of the disadvantages of the codec is that the extension of the audio files matches the audio codec, leading to confusion because AAC is not a high-quality music format. Therefore, it was decided to store the data in an MP4 container with the extension .m4a.

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.

Encoding digital audio with a loseless format?

Compressing a digital audio with loss is to reduce the size of an audio file.

Codecs are used to reduce the size of the files. Some of the operations that codecs can perform to reduce file sizes are as follows:

Reduce the bit rate of the original sound so that the audio takes up less space.
Remove sounds at frequencies that are not noticeable by the human ear.
Elimination of redundancies of the audio signal.
They can reduce the number of existing channels by transforming a surround sound to Stereo.
Reduce the number of bits per sample.
Etc.
Note: The compression process of an audio is extremely complex. In addition, each codec applies different methodologies to compress the size of an audio.

Obviously during the compression process there will be a loss in audio quality. The higher the weight reduction of the compressed file, the higher the loss of quality.

UTILITIES THAT YOU HAVE TO COMPRESS AN AUDIO

Obviously compressing an audio has certain utilities. Some of them are as detailed below:

The space needed to store the songs on our hard drive will be much smaller. Although hard drives are cheap and their storage capacity is large, it is not feasible and / or practical to store all of our songs without loss.
We can pass the audio files to third parties in a much more convenient and fast way. After compressing a music song we can pass it by email or other means without any problem.
It seems that the trend in the very near future will be to consume video and audio via streaming. Therefore the compression of video and audio is very important. If we offer a web service in which we provide streaming audio, it is essential to compress the audio to save bandwidth and so that customers can play it at home without problems.

Select the compressed audio file format

There are numerous types of compressed file format with loss. Some of the most popular are the following:

.mp3
.ogg
.wma
.m4a
.aac
Depending on the needs, it may be useful to select one format or another.

However in my case I recommend using the mp3 or ogg file format. The reasons are as follows:

The .mp3 files do not stand out for providing the best audio quality. However, the .mp3 format is the most universally extended.
Any music player is capable of playing the .mp3 file format. You cannot say the same of the other file formats.
Everyone is able to play audio in .mp3 format. Even people with little knowledge technologically speaking.
If someone does not want to use the .mp3 format because they think the quality is not enough, or because it is a proprietary format, I recommend using .ogg. In the following link you can find the advantages and disadvantages of the .ogg files with respect to the .mp3 files.
Select the audio compression codec (encoder)

Once the file format is selected we must be aware of the codec that we will use to perform the audio compression.

In the case that we want to compress in the .mp3 file format there are the following codecs:

FHC: It’s the first codec that existed. At present this codec has become obsolete. Its compression time is very high and does not support variable bit rate.

Xing: It is the fastest encoder and allows you to obtain files with a variable bit rate (VBR). However, the quality level offered by this type of encoder is lower than Blade and Lame.

Blade: Until Lame’s appearance was the best option. It is slightly slower than Xing, but the quality levels obtained are much better. Currently this host has a problem and it does not support variable bit rates.

Lame: It is available under the GNU license and is also the best host available today. It supports variable bit rates, is fast and the quality obtained is better than in the rest of the encoders.