Creativebits.org

an All Creative World site
William's picture
188 pencils

A word about encoding music and iTunes...

This is going to be a fairly brief article about encoding music, sound quality and how to get the most useful results.

There are three 'main' formats for encoding music in popular use today.

1. MP3
2. AAC
3. WMA

MP3 is available in nearly every gadget that can play digitised music. There are _many_ ways of encoding to MP3. Results can be awful to fantastic both in file size and sound quality depending on what is used to do the encoding. iTunes has it's own built in MP3 encoder which is really bad. Do not use.

AAC is actually a type of MPEG4, that it is commonly wrapped up in a DRM technology. This is how music on the iTunes store is delivered. Sound quality can be very good. The AAC encoder used by iTunes is not the same as the AAC encoder used by iTunes store.

WMA is the Microsoft & Windows Media Player format. I don't really know much about this to be honest. I have been told the sound quality can be good, probably comparable to AAC music from iTunes store. This has all sorts of DRM on it allowing you to 'rent' your music, which they can, disable if you stop paying your subscription fee.

There are many other formats such as Ogg Vorbis, FLAC etc. They all have there good points, but are not as widespread as the 3 mentioned above.

I strongly feel that of these 3 main formats, the only format worth ripping too is MP3. MP3 is the universal format used by Mac, PC, Linux, most modern phones, digital hi-fi, cheap DVD players and probably in a few years your car, washing machine and fridge. ANother reason is that DRM is an added obstacle to enjoying your music when and where you want.

The reason iTunes has such a terrible MP3 encoder, I believe, is so that people will use Apple's AAC format in prefernece to MP3. Once you have ripped all your CDs you realise that just about the only gadget that will play these is the iPod. The quality loss when re-encoding a digital file to an alternative format makes the quality considerably worse. MP3 is a lossy format, like JPEG is for images. Repeated saving reduces the quality.

What's a boy to do ?

- You want to have the flexibility to play your music on a variety of gadgets, from your iPod, to your Casio Watch, without having to pay a fee.
- You want a decent file size
- You want sound quality which is good enough to crank up loud and still sound good.
- You want something simple to use that integrates with your Mac or PC, regardless of what sort of machine you buy next.

LAME (http://lame.sourceforge.net/) is a fantastic, free encoder that can achieve all the above. This program is normally run from the command line, which can be a problem for many Mac users who normally prefer something a bit slicker.

There are now two good solutions for the Mac.

- Max (http://sbooth.org/Max/)
- iTunes-LAME (http://www.blacktree.com/apps/iTunes-LAME/)

Max is a standalone app that can lookup the track names from FreeDB, and then rip and encode to your own prefered settings. In it's latest version it can encode to a multitude of formats. The only feature that seems to be missing is the ability to add the tracks to iTunes library.

iTunes-LAME is an Applescript program that integrates with iTunes. It is essentially a wrapper around the command line program. It uses iTunes to lookup track names from Gracenote. Sound encoding options are essentially passed using the same format as the command line. It is a little more involved, and probably requires a few minutes background reading for best results.

iTunes-LAME ships with a slightly older version of LAME however it is easy to download the sourcecode and recompile a newer version.

Are there any problems with LAME ? The only one I can think of is that it is slower than iTunes to encode a CD. Recent versions have been quicker, and you can improve the speed by tweaking settings at compile time to optimize for G4 or G5 processors. I tweaked LAME for my G4 Powerbook and got a 10% improvement.

If any one is interested I can supply my G4 compiled version of Lame, otherwise you need the Developer Tools installed to compile this.

There are probably some inaccuracies in this article. I realise there probably are ways to remove the DRM from iTunes store songs. However every time a crack is found, Apple realeases a new version of iTunes which fixes that particular weakness. This is normally under the guise of a new 'improved' iTunes.

As a followup article I will discuss what settings to use with LAME to get the best all round compromise of size and sound quality.

Commenting on this Blog entry is closed.

gabrielpm's picture
3 pencils

I'm satisfied with the encodes prepacked with iTunes. (I think it's Quicktime's anyway). I tweak the settings, sometimes. VBR *can be* tricky.

AAC should be lossless. MP3 is lossy in that it should remove only what is impossible to hear for the human ear. Obviouslly, it doesn't always turn out that way. My take? LAME might be overkill... just maybe.

William's picture
188 pencils

AAC is most defiantly lossy. That is why Apple introduced Apple lossless encoding too.

MP3 encoding can just as lossy as AAC. It depends on many factors which I will cover in the next article.

Will

diroussel@drupal.org's picture
1 pencil

It's interesting to note that if you use a high enough bitrate then AAC can be lossless, which I don't think is the case for MP3.

Unforunately, I've never seen a "Use high enough bit rate to be lossless" check box in iTunes.

If someones got some time, they could take a wav, try encode a VBR AAC file, then decode and compare with the original, then repeat until there is zero difference.

leov's picture
37 pencils

With the size of hard drives today, I see little reason in encoding to MP3 or AAC on desktop computers.

Apple Lossless is lossless, and probably the best choice for iTunes music collections. Convert to MP3/AIFF/FLAC as needed.
The ideal solution would be a FLAC plug-in for iTunes, but I'm not sure if that's entirely possible to get working right. And it doesn't seem like something Apple is going to implement.

Kjetil Valen
kjetil . valen (a) skir . no

Leo Valen
leo (a) code.coop

Apfhex's picture
325 pencils

Except, what if you want to put the files on a digital music player? And not all of us have 500 GB hard drives... :)

The article claims that iTunes MP3 encoder sucks. Care to elaborate? How does it suck? What's wrong with it? Apple didn't "cripple" it so people would use AAC instead; iTunes was around a long long time before AAC.

Personally I encode my music in 256k VBR AAC (now that iTunes can do that) since I have absolutely no need to play it on a device that doesn't support AAC, and it's 10 times faster than encoding with LAME.

William's picture
188 pencils

The reaon I say that the iTunes MP3 encoder is bad is purely from listening tests. I have listened to a song from CD, encoded with iTunes MP3, iTunes AAC and LAME. The iTunes MP3 was by far the worst. (I used 192K VBR.)

The AAC file and LAME files both sounded good, but AAC has the limitation of only being played on an iPod. If my next phone has a decent music player built in I can be sure I canplay my music on that. As far as I know there are only a couple of phones that can play AAC files.

Will

phatcactus's picture
109 pencils

Some time ago I had an iPod. Cool. I encoded a good deal of music as M4As. And then the iPod broke (surprise!). Guess what my options are as far as a replacement audio player that'll play my M4A files.

Very clever, Apple. Ya got me.

And lost me as a regular customer. Hah.

In short, use MP3.

irez's picture
24 pencils

im an apple fan boy, but there is no doubt in my mind that the ipod is the only mp3 player i'll ever use, so ripping in AAC isnt that big a deal for me. I have a mix of MP3 and AAC and unless you have an external hard drive designated as a music hard drive, you really should stay away from Apple loseless.

xacto!

alexleonard's picture
123 pencils

ogg vorbis is my favourite. I've just ripped my entire cd collection to it. I like the sound quality, I like to support the open source nature of it. It will never be DRM controlled and unlike mp3's will never be looking for licensing fees.

More info can be found here:

http://www.vorbis.com/

and for Mac encoding:
http://www.nouturn.com/oggdrop/more.php

Unfortunately iPod doesnt support this format (henceforth I bought the sleek iAudio X5 60Gb mp3 player) but if enough people pushed apple, they might be convinced to release a firmware update to support ogg.

--------------
Business: www.pixelapes.com
Personal: www.ebauche.net
Blog: ebauchemusic.blogspot.com

leland's picture
6 pencils

Listening to music in headphones all day, I have to agree with William - iTunes encoded MP3s pale in comparison to LAME rips. It's the subtleties that make the difference. It may take longer but I think it's time well spent.

hibitdat's picture
1 pencil

There seems to be a little confusion over AAC. It is not, as some have printed in the cumputer press, 'Apple Audio Codec' - it is of course a universally deployable codec that enhances MP3 with newer thinking. There are many products available from a wide range of manufactures (including Panasonic) that play AAC perfectly - the Only AAC files they can't play are ones purchased from the iTMS. This is easily overcome by burning the files to an audio CD then re-encoding (usually in inferior MP3) for use on other devices. For normal, non critical use high-bit-rate AAC (pref better than the 128k used on most iTMS tracks) is fine, for audiophile use or preservation something like Apple Lossless or FLAC is the way to go. I work in a sound engineering, audiophile recording environment and we do not use, nor recommend the use of MP3 in any way now other than support for legacy devices that do not suport superior codecs.

kangta's picture
1 pencil

with your blog's help, i got my wma to mp3 tool, thanks again!~~~~~~~~~~~~

http://www.yaodownload.com/audio-mp3/videoencodersconverter/audiovideo2mp3converter_videoencodersconverter.htm

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace