Tuesday, July 14, 2015

How to Find Out the Actual Quality of an Audio File?


There's a very simple principle when dealing with mutimedia files: Crap in, crap out. If you convert .mp3 files to .wav, it is not going to sound any better. MP3 is a lossy format, which means parts of the music are shaved off to reduce the file size to a more compact level. It is supposed to use "psychoacoustics" to delete overlapping sounds, but it isn't always successful. Typically, cymbals, reverb and guitars are the sounds most affected by MP3 compression and can sound really distorted or "crunchy" when poorly ripped or overly compressed.

But some people believe it's the same and they will send you .mp3 files converted to .wav swearing it is lossless quality. How can you guess the real quality of a file without even having to put your ears to the test?

You need a spectrogram to analyze the file. This will give you a visual representation of its content, allowing you to detect problems. Adobe Audition has an excellent spectrogram, but today, we're going to use Spek, a very good spectrogram freeware for Windows, Mac OS X and Linux. Download it here.

Just drag and drop your audio file on Spek and pay attention to high frequencies: 16kHz and more. If they appear to have been "cut" or degraded above 16kHz, the audio file has probably been compressed.

Be careful though:

1) A clean and nice looking spectrogram does not mean the file is perfect, but if it looks bad, you can be certain there's a problem.

2) There can be an artistic degradation of the file. For example, the "Telephone voice effect" cuts everything above 4kHz.

3) Some instruments do not produce high frequencies. It is very well possible to have lossless tracks with no high frequencies at all.

Here are 2 spectrograms of different versions of the same track.


A. Lossless conversion, FLAC:



B. Lossy low-quality conversion in MP3 CBR (Constant Bitrate) at 128 kbits/s:



As you can see, there is a big difference between the FLAC file and the MP3 CBR 128 kbits/s file, meaning the file has been degraded.

So here you go, this method might not be perfect, but at least it can give you an idea about how bad an audio file is.

Spectrograms can also be useful to spot out clicks or whistling noise.

While FLAC still uses up to six times the volume of MP3, the advantage is that more information is retained, leading to an audible boost in quality.

"FLAC has a place in the future for high-quality audio. It is good for transporting files on the Internet as it typically halves download time. It is unlikely that for lossless compression there will be significant improvements."
- Malcolm Hawksford,
Professor of Psychoacoustics at Essex University.

3 comments:

  1. your best bet is to post your own stuff my friend

    ReplyDelete
  2. OK but when you want to tell us about flac(uncompressed wav is more appropriate) don't
    post stuff like : http://thekinginflac.blogspot.fr/2015/06/elvis-regresa-2012.html

    mp3 source

    ReplyDelete
    Replies
    1. And that's why a special note was made on that particular release.

      Delete