About Lossy


Free Download Mp4Gain
picture

About Lossy

Lossy

We all love good music. More recently, the audio CD was good digital music. This is 44100 Hz, stereo, 16 bits (linear) per channel, not compressed in any way, which means, according to Wikipedia, 1411.2 kbps.

Lossy

But at the end of the 20th century, in the era of the birth of multimedia, when music began to be played not only on players, but also on computers, it turned out that the audio CD (that is, naked PCM) is even better. . compress. There was, for example, Microsoft ADPCM, which compressed this case a bit, without losing quality, in WAV files. But generally speaking, the original 44 kHz stereo would still require a lot of space this way. Hence, the quality dropped to 22 kHz mono. One of the first multimedia albums of that time: “Immersion” from the group “Nautilus Pompilius”, is still around, and I did.

So MP3 won. To store and distribute compressed music. At 128 kbps “CD Quality”.

MP3 came up strangely. Technically, this is MPEG-1 Audio Layer 3. A layer for compressing audio data into a modern, progressive standard for storing video data on Video CDs. Just packed in its own .mp3 file format. The video CD is no longer interesting to anyone. The following MPEG-2 standard is used in DVD and digital television broadcasts (not HD). And the next MPEG-4 standard is now used for HD video and continues to evolve.

MP3 was revolutionary. It was (almost) the first lossy compression format. When we don’t try to preserve everything that was in the original signal, but, based on some psychoacoustic model, we cut out what a person is not going to hear anyway, and compress the rest. Like JPEG.

Then I tried digitizing the accumulated audio collection. Compact cassettes (just “cassettes”, but more correctly “compact cassettes”) turned out to be complete shit. The frequency range is such that it makes no sense to sample with more than 22 kHz. There were no reel-to-reel recorders in the house. But vinyl records shook the sound quality. With good equipment, you can draw better quality than a CD. You just need to get rid of the clicks.

And then I realized that MP3 is shit too. At these same 128 kbps, the sound quality suffers greatly. And the scariest thing is that vile metallic hues appear where they shouldn’t be. My ears need at least 192 kbps, and the more the better.

Let’s take a hint from a famous punk rock band in the past. Like FLAC. It is such a modern lossless compression standard that it has successfully replaced WAV. Because it is free.

The original is CD quality, so frequencies up to 22 kHz are present as expected.

Original flac

We are going to harvest with FFmpeg, or rather with LAME.

At 320 kbps and 256 kbps, the spectrogram looks almost like the original.

At 192 kbps, there are signs of a 16 kHz cutoff. The spectrogram “darkens”, apparently, the psychoacoustic model has cut something out. By ear, the higher frequency “bursts” really disappeared.

MP3 192 kbps

At the notorious 128 kbit / s, everything is already specifically cut off at 16 kHz. Background sounds are “fuzzy” and begin to bubble. Nothing to do with the original in terms of enjoying the musical details.

MP3 128 kbps

But you can do 64 kbps in MP3. The stereo is gone. Everything gurgles terribly and irritates with completely strange sounds.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

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.

Files without compression, lossless and lossy formats

Files without compression, with compression but without loss and with compression and with loss … what does that mean?

There is currently a huge confusion in most people about audio formats and that is why we are going to give an explanation that is as simple and clear as possible so that most of the people who read can understand enough to be able to make decisions about it. .

We will not try to get into technicalities or knowledge What are for specialists or connoisseurs or programmers, such as those who developed the mp4gain, but rather we will talk about general concepts at the beginner level but that can allow a correct understanding of the matter.

So the first thing we must understand is that the quality of an audio file depends on the amount of details it contains and for it to contain many details, it takes up a lot of space on the hard disk.

We could say that there are three groups of audio file formats:

– audio formats that do not have compression such as WAV, AIFF, etc.

– formats that compress audio but do not have a loss of information. FLAC, MPEG-4 SSL, WAV PACK, etc.

– There are also the formats that the audio compresses but that do have a loss of information, for example MP3, Ogg, HERE, ETCÉTERA

Now let’s clarify what it means that some formats do have compression but do not have loss of information while others also have compression but do have loss of information.

The formats that are compressed but have no loss of information what they do is something very similar to zip the file. In other words, they simply compress.

The original information but they do not discard anything, therefore when unzipping the file the original file is obtained again that had all the details and therefore is of very high quality.

On the other hand there are files such as MP3 that are compressed but also to achieve greater compression what they do is that they get rid of some part of the information. For example, those frequencies that are not audible to the human ear also get rid of that information that is redundant and they also use the method called masking which part of the idea that a sound that is very loud and is very forward It will be able to mask other sounds and the human brain will not perceive those other sounds. Therefore, according to this theory, they can get rid of these sounds that have been masked and the file will sound more or less the same to the human ear.

This concept of sound masking was one of the great milestones that made MP3 become so popular because it could compress files a lot, at a time when disk space was not superfluous, and yet they sounded pretty good to that ear. era and those people.

Also the programs that made the normalization of the audio volume, achieved results that at that time sounded good, but at this time the listening ear as a has become much more demanding and sophisticated. And so we need much more modern normalizers with much more algorithms. more powerful like mp4gain.

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.