How many of you have been in the process of replacing all your CD's with MP3's over the past few years?  And how many of you have been in the process of replacing all your CD's and cassettes with MP3's over the past several years?  Or for that matter, replacing CD's, cassettes, and vinyl with MP3's?  I know some of you have got rid of old CDs once you have an MP3 copy of it on your computer or your iPod.  Good idea?  I think not.  Little do you realize how low the quality is of those MP3's you are rocking on your laptop speakers or the earbuds on your iPod.  It seems to sound great to you, but you have probably reached the limitation for the speakers you are using.  Which is why to you, whether you are listening to a 320k MP3 or a 192k MP3, it all sounds the same to you.  Well what happens when you get older and can actually afford to buy yourself a nice sound system, a good hi-fi, or maybe a rockin system for your ride.  What good are those MP3's then?  They sound horrid on good stereo equipment not to mention their bad quality and addition of digital artifacting can actually cause damage to good stereo equipment.  ENTER...FLAC, the Free Lossless Audio Codec.

So what is FLAC?  FLAC stands for Free Lossless Audio Codec, and it is an audio compression format like MP3, but while MP3 uses a "lossy" compression, which basically discards audio information that humans can't hear, FLAC uses a lossless compression, which will not change the quality of the compressed audio. This means that if you rip an Audio CD track to a FLAC file, that file will retain the same quality of the original (CD quality), like a WAV file, but it will take less space (usually about one third of the corresponding Wav file). An MP3 file would take a lot less space (about one tenth of the corresponding Wav file) but to get this compression rate MP3 (like other lossy compression algorithms, such like Ogg Vorbis or WMA), throws away part of the sound information. Of course lossy compression algorithms try to discard info that an average human can't hear, but if your ears are sensible and well trained, you will appreciate the high quality of FLAC lossless compression. I don't want to hear any crying about the lack of MP3's here.  FLAC only, trust me, in the next ten years you will appreciate me for making you listen to FLAC rather than MP3's. 

Friday, August 19, 2011

Spectral Comparisons

The following write-up about Spectral Comparisons has been copied word-for-word from http://blowfish.be/eac/Spectral/spectral.html.  I include it because I believe it is valuable information for those learning about the differences in digital encodings.  Spectrals can sometimes be a quick way to see information about the quality of a file, but be warned, spectrals are not the end-all, be-all answer to knowing what is a genuine FLAC or what is a definite transcode as there are sometimes other factors involved in determining such things.  Please read this though for some useful information about Spectral comparisons.

1. Introduction: lossless and lossy formats


This is not a guide. This section is here in order to visually show you the difference between the different kinds of files treated in the EAC guides. It ends with a brief explanation of what transcoding is and why transcoding normally is a bad thing to do.
Our point of departure is the wave file: the .wav file that EAC produces as you rip an audio CD track. To be sure, .wav is really a container format that can hold different kinds of audio; in this case the content of the .wav file is "really" PCM audio.
If you have ripped the CD properly, in accordance with the guides, the .wav file contains exactly the same audio data as the original CD. Wave files are rather large, though, which makes them awkward for transfer and/or storage. This is where FLAC enters the picture. It stands for "Free Lossless Audio Codec". It compresses the audio data without removing any of it, just like Zip and RAR compress data without removing any of it. This is why FLAC is properly called a lossless format. With the right kind of cue sheet, you can re-create a copy of your CD from your archived FLAC files any time.
Lossy formats can save space by removing some audio data, for example by cutting down on the number of kilobits used per second of audio and/or removing "unnecessary" audio data according to some algorithm, in addition to compressing the files. This way the files can be made much smaller, but there is always a trade-off between audio quality and file size.
A common standard for "acceptable" audio quality for mp3s is 128 kbps. It is a constant bitrate (CBR) setting that you see, for example, with most iTunes downloads (though they make use of the FhG encoder, not the superior LAME encoder for mp3). Ogg Vorbis has been developed to focus on quality measures rather than bitrates, but a rough equivalent to mp3 at 128 kbps would be the q3 setting.
Others claim that the threshold for "transparency" (where you can't tell the difference from the original) would be at 192 kbps for mp3s, and q6 (or even q5) for Ogg Vorbis. For LAME mp3, there is also the variable bitrate (VBR) preset V2 (target bitrate ~190) that would be the "transparent" VBR setting. (Variable bitrate, used in both the Ogg Vorbis -q presets and the LAME mp3 -V presets, means that the encoder analyses the audio data and only uses as high bitrate as is needed, i. e. lower bitrate for less complex (or silent) parts of the audio data.)
The pictures below are intended to show you the differences between different formats and bitrate settings, from "best possible" to "transparent" to "acceptable".

2. Spectral view


The pictures are screenshots taken while using the "spectral view" in Adobe Audition (v. 1.5). The spectral view is a way of making some audio properties visible. The screenshots show you the two stereo channels with the left channel on top. The horisontal axis is for time, the vertical axis shows the frequency of the audio data for each channel. The colours indicate the amplitude: from dark blue for the lowest decibel (softest) sounds to bright yellow for the highest decibel (loudest) sounds.
These screenshots show a maximum of 22 kHz for each channel. That is because we are looking at CD rips with the standard frequency of 44.1 kHz (combined for both channels). Other recordings, such as some soundboard tapes or vinyl rips, may go much higher.
All the screenshots, except two of the FLAC ones, are for the same track: "I Feel You" from Depeche Mode's Songs of Faith and Devotion. That is a reasonably complex audio track that serves to illustrate the differences between the different encodings. The LAME mp3 and Ogg Vorbis files were created from the FLAC file using dBpoweramp.

3. FLAC


First out is the original FLAC file - if it were decompressed to WAV (PCM) it would still look exactly the same. (In fact, any file you open in Audition is "converted" to WAV in order to show the waveform.) As you can see, it goes all the way up to 22 kHz. The file size is 31.2 MB; the decompressed .wav file would be 46.3 MB.
image loading...
FLAC (I Feel You, Depeche Mode) 31.2 MB
The following two pictures are here in order to illustrate that CD rips will look different depending on the source and the kind of music. The first one is a recording originally made in 1937, digitally remastered from the analogue master in 2000. It's the small jazz group Benny Goodman Quartet (clarinet, piano, vibraphone and drums) playing "Tea For Two". This is what old and most new acoustic recordings will look like. In other words, there is not necessarily anything wrong with a CD rip that does not show audio data all the way up to 22 kHz per channel. The second picture drives this fact home: it is Mitsuko Uchida playing the rondo from Mozart's KV. 545, recorded digitally in 1984 by Philips' finest.
image loading...
FLAC (small group jazz, 12.9 MB)
image loading...
FLAC (classical solo piano, 6.6 MB)

4. LAME mp3


LAME mp3, starting with the highest CBR setting, 320 kbps. The frequency has been cut off at 20.5 kHz - that is one reason for the comparatively small size. Another reason is the removal of some "unnecessary" audio data, that you can see in the stripey character of these pictures as compared to the original FLAC. The V0 that follows should be equal in sound quality to the 320 kbps CBR, but it is smaller in size because lower bitrates have been used for less complex parts of the audio, and the frequency maximum is at 19.5 kHz. Also, in the V0 you can see a "shelf" cut-off at 16 kHz, that is more pronounced in the "transparent" V2 (max frequency at 18.5 kHz), and prominent as a clear cut-off for the "acceptable" 128 kbps CBR.
image loading...
LAME mp3 320 kbps (I Feel You, Depeche Mode) 10.8 MB
image loading...
LAME mp3 V0 (I Feel You, Depeche Mode) 8.8 MB
image loading...
LAME mp3 V2 (I Feel You, Depeche Mode) 6.6 MB
image loading...
LAME mp3 128 kbps (I Feel You, Depeche Mode) 4.3 MB

5. Ogg Vorbis


Ogg Vorbis can go up to 500 kbps, and it thus has a higher "best possible" quality than mp3, illustrated here by the q10 setting. Ogg Vorbis uses a different algorithm from mp3, and doesn't cut off the frequency for the higher quality settings: both the q10 and the "transparent" q6 shown here have more or less audio data preserved at 22 kHz, though much less for the q6. The "acceptable" quality q4, still reaches roughly 19 kHz, but you can clearly see that some audio data is missing, compared to the original FLAC.
image loading...
Ogg Vorbis q10 (I Feel You, Depeche Mode) 15.4 MB
image loading...
Ogg Vorbis q6 (I Feel You, Depeche Mode) 5.8 MB
image loading...
Ogg Vorbis q4 (I Feel You, Depeche Mode) 3.9 MB

6. Transcodes


So, encoding to lossy formats gives you the advantage of small file size at the price of losing some audio data. This simple fact should be enough to explain why you can not encode such files again, and get higher quality audio files. You simply can not regain lost audio data, not by increasing the bitrate, and not by converting to another format.
The quality will actually decline in lossy to lossy encoding, even if you try to "increase" the quality by encoding to a higher bitrate, since the algorithm for removing "unnecessary" audio data is applied once again. If you encode from lossy to lossless, the quality will stay exactly the same, only the file size gets bigger. See the screenshots below. Yes, they look very much like the mp3 128 and the V0 above, respectively, but these really are screenshots of transcodes.
Do not ever do it.
image loading...
128 kbps LAME mp3 transcoded to 320 kbps LAME mp3 (I Feel You, Depeche Mode) 10.8 MB
image loading...
V0 LAME mp3 transcoded to FLAC (I Feel You, Depeche Mode) 30.4 MB

Monday, August 8, 2011

How To Rip A CD Into FLAC Format


There are quite a few programs that can be used for ripping FLAC.  I do not intend to make a complete listing of programs that can be used, but just a few Windows programs that will do the job.

  • Winamp - has had the ability to rip FLAC since version 5.31 (FREE)
  • dbPoweramp - works well for ripping FLACs, is easy to use and the converter is great too.  This is worth the price for the ease of use dbPoweramp Music Converter.  ($38)
  • J. River Media Center - Has the ability to rip FLAC.  I have never used this program, but if other programs will do this same thing free of charge, why pay? ($49.98)
  • CDex - An open source program which also performs FLAC rips. (FREE)
  • FreeRIP - Another free ripping program that can rip FLACs.  I have no experience with this program.  Use at your own risk. (FREE)
  • EAC - Exact Audio Copy.  Experts generally prefer to use this program as it has the most accurate bit-for-bit ripping process which does what it says, makes EXACT Audio copies.  This is the only program that I use for ripping CDs and is the preferred method of ripping. (FREE)
I will post a guide showing you how to properly install Exact Audio Copy on your Windows computer.  I will also post a guide for making flawless FLAC rips from your CDs.  Sometimes you may have scratched CDs which will not rip accurately using such a method which at that point, you can then at least use one of the other methods to get a FLAC rip, it just will not have the guarantee of being 100% accurate.  Of course there are a few tried and true methods you can use to fix a scratched CD which we will go over as well.

Free Lossless Audio Codec

How many of you have been in the process of replacing all your CD's with MP3's over the past few years?  And how many of you have been in the process of replacing all your CD's and cassettes with MP3's over the past several years?  Or for that matter, replacing CD's, cassettes, and vinyl with MP3's?  I know some of you have got rid of old CDs once you have an MP3 copy of it on your computer or your iPod.  Good idea?  I think not.  Little do you realize how low the quality is of those MP3's you are rocking on your laptop speakers or the earbuds on your iPod.  It seems to sound great to you, but you have probably reached the limitation for the speakers you are using.  Which is why to you, whether you are listening to a 320k MP3 or a 192k MP3, it all sounds the same to you.  Well what happens when you get older and can actually afford to buy yourself a nice sound system, a good hi-fi, or maybe a rockin system for your ride.  What good are those MP3's then?  They sound horrid on good stereo equipment not to mention their bad quality and addition of digital artifacting can actually cause damage to good stereo equipment.  ENTER...FLAC, the Free Lossless Audio Codec.

So what is FLAC?  FLAC stands for Free Lossless Audio Codec, and it is an audio compression format like MP3, but while MP3 uses a "lossy" compression, which basically discards audio information that humans can't hear, FLAC uses a lossless compression, which will not change the quality of the compressed audio.

This means that if you rip an Audio CD track to a FLAC file, that file will retain the same quality of the original (CD quality), like a WAV file, but it will take less space (usually about one third of the corresponding Wav file). An MP3 file would take a lot less space (about one tenth of the corresponding Wav file) but to get this compression rate MP3 (like other lossy compression algorithms, such like Ogg Vorbis or WMA), throws away part of the sound information. Of course lossy compression algorithms try to discard info that an average human can't hear, but if your ears are sensible and well trained, you will appreciate the high quality of FLAC lossless compression.

I don't want to hear any crying about the lack of MP3's here.  FLAC only, trust me, in the next ten years you will appreciate me for making you listen to FLAC rather than MP3's.