MP3 sounds fine to me, through my headphones at work, where the headphones and the soundcard are probably the main limiters of sound quality.

However, my local pub sometimes has a DJ who uses two PCs each running an MP3 player, instead of CDs or vinyl. One night, as the place filled up and became noiser, I realised I knew what song I was listening to, but I could not place the pitch; I wouldn't have been able to sing along because I wouldn't know what key to join in at.

Fortunately, I had an audiophile at hand to consult. He told me, there was practically no bottom end and very little top end -- my ears were missing vital information. Perhaps the pub's PA is lacking, but I suspect MP3 wasn't up to this demanding application; competing with the chatter in a noisy bar.

There is indeed already a node about this, fool.

Sound quality of an Mpeg 1 Layer 3 Audio File (hereafter 'MP3') is usually (in my experience) dictated by four things: Source, Encoder, Player and Output; quality is affected linearly in that order. I am not an Audiophile, and this is not written for an audiophile, just for people who like nice sounding tunage.

  • Source - If the audio you're grabbing is from a new CD, ripped digitally, you should not have any issues here. However, it's not totally foolproof. If the CD is badly scratched, your ripper will either simply record the scratch, or in some cases completely bork itself. Also, unless you have a God Box, using the PC while you rip is not a good idea since ripping a CD is very timing dependent -- just like burning a CD, if the flow of data it interrupted, the rip will end up with gaps and pops.

    If you're transferring from another source, though a sound input device, the quality if that input device comes in to play. Many sound chips are perfectly fine, but a number of older cards are crippled in the input department and only do things like 8-bit input or 22kHz sampling.

  • Encoder - Assuming the raw PCM Data made it into the PC without woe, the next step is to package it into the fabu MP3 format. Many encoders exist and, unless you're an audiophile, which encoder your use isn't an issue... within reason. Older Xing encoders should be avoided like the plague because they cut out at 16kHz versus the 20 or 22kHz that other encoders do; The newest Xing codecs do not have this problem because they are basically a copy of the Fraunhaufer codec.

    The Real Jukebox encoder has issues, too, so I'd recommend you avoid it.

    For most purposes a basic encoder like LAME should be fine, unless you're anal, in which case you'll want to look into something like the Radium codec or Encoder-X.

    Bitrate has always been a huge issue with most people, and so I'm not going to get into it in any great detail. Suffice it to say that, if at all possible, don't use 128kbps encoding. Very few encoders can handle complex wave forms or deep bass properly at 128, and so you're get mangled and clipped sound. Do yourself a favor and go to 160kHz, or even 192 is you can justify the extra disk space. Don't use VBR.. just don't.

  • Player - Once the file is encoded you, obviously, need a player to play it. Thankfully decoding an MP3 is much easier than encoding it, and so most MP3 Players do a decent (if not good) job of it. I'm partial to Winamp 2.71's Nitrane Decoder, with the stock XMMS decoder coming in at a close second. Players that suck include the old Micros~1 Media Player and Quicktime 4.0 (the decoder has been improved in 4.1 and 5.0).

  • Output - The last hurdle in getting great MP3 wave-forms is where the sound comes back out as analog sound waves. Sound cards are the usual cause of quality loss here, with speakers as a close second reason.

    While most sound chips are up to the task, many old sound cards only do 8-bit output and have horrid signal-to-noise ratios -- the original Sound Blaster Pro is a prime example. You might also be getting a 50/60-cycle hum in your speakers, usually due to improperly shielded power wires near your speaker lines. This can usually be remedied by using a Ground Loop Isolator. They're available from Radio Shock (in the US) and are specifically designed for this purpose.

    Another side not about output quality is the processing power of the device doing the decoding: Decoding a 44kHz 192kbps Data stream takes a lot of power, and if you don't have it you could be forced to drop your sampling rate to something like 22kHz. This is a bad thing, and if your can upgrade your computation capacity, do.

My (limited) understanding of MP3 compression is that it works on psychoacoustic principles. That is to say, when a track is ripped, it's spectral analysis information is compared to a psychoacoustic model stored in the encoder (what the encoder thinks you will hear). Any frequencies the encoder decides will be inaudible, are removed. This makes for great compression, but what about sound quality?

Some of the sounds an MP3 encoder removes probably don't make much difference to the average listener. Much of the time, though, the overall 'feel' or 'sound' of a song relies on VERY subtle factors (vinyl freaks know this, while CD enthusiasts seem to have forgotten it). MP3 compression removes a lot of these sounds. For example, if two notes sound at the same time, and one is much louder than the other, the softer sound is taken out. Also, as has been mentioned many times, the bottom end and top end are lacking.

As a result, casual listening (i.e. on headphones at work) is rarely affected. At high volume or on a good sound system, however, much of the warmth and expressiveness of a song is lost.

One note on MP3 sound quality:

As a sound designer, I have discovered that in performance spaces with a lot of flutter echo, tracks recorded from MP3s tend to sound better than tracks recorded directly from CDs. This may be because of the 'inaudible' sounds that are removed during compression, leaving less sound to bounce off the walls. There is one theater I've worked in that is particularly bad when it comes to echo (concrete walls and nothing soft to absorb sound); in most cases, the flatter, muffled sound of the mp3 track is much better in the space than the sound from the original source, as the sound bounces so much it is almost impossible to hear clearly.
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.