Skip the navigation

Ask the iTunes Guy: Compression and lossless encoding

By Kirk McElhearn
April 6, 2012 09:22 AM ET

Macworld - [Ask the iTunes Guy is a regular column in which we answer your questions on everything iTunes related. If there's something you'd like to know, send an email to the iTunes Guy for consideration.]

The idea of file compression--and what file types iTunes works with--can be confusing. In this installment, I answer your questions about lossless audio compression and file formats.

Sorry to be such a dummy, but could you define 'lossless' for me?

Lossless file compression is a technique that reduces the space of a file without changing any of its contents. For example, if you have a Word file with the text of Henry David Thoreau's Walden, this file takes up 582KB. If you compress it using OS X's Zip compression feature, the resulting file is 233KB. But when you expand this archive later, you'll end up with every single character from the original file--no data is lost.

In music, similar compression techniques are used for lossless files. If you create an Apple Lossless or FLAC (Free Lossless Audio Codec) version from an uncompressed AIFF or WAV file (from a CD, say) the song will typically run 50 percent to 60 percent the data size of the original, yet when you play it back, you'll enjoy every bit of data from the original. Compare that with with lossy compression--formats such as MP3 or AAC--where some musical data is removed to save even more space. This said, at a good bit rate--say 256-kbps--most people won't hear the difference between a compressed file and an original from a CD.

I ripped all my CDs in Apple Lossless format into their own iTunes library for archival purposes, and have the same music at lower bit rates in another library, which I use for syncing to my iPhone. Now that iTunes offers the ability to convert those lossless files to 128-, 192-, or 256-kbps AAC files, how do I merge my two iTunes libraries in such a way that I don't end up with two copies of each track, just the lossless versions when there are two of the same tracks?

Indeed, the option in iTunes 10.6 that lets you convert music on the fly to your choice of three bit rates (previously Apple only offered a 128-kbps option) makes it unnecessary to keep two libraries for most users.

To simply merge your libraries (and if you don't care about play counts, last played dates, or ratings) locate in the Finder the folder containing the lossless files and drag that folder into the iTunes window. After you've added all your music to the same library, click the Music library icon in the iTunes source list, then make sure you have the Kind column visible (View -> View Options, check Kind). Next, choose File -> Display Duplicates and iTunes will show a list of what it thinks are tracks in your library with duplicate versions. Look at each pair of duplicates, and if they look accurate, click the Kind column header to sort the duplicates list by file type. You'll want to keep the ones with the kind 'Apple Lossless audio file' and delete the others.

Originally published on www.macworld.com. Click here to read the original story.
Reprinted with permission from Macworld.com. Story copyright 2012 Mac Publishing, LLC. All rights reserved.
New newsletter: Consumerization of IT
mobile management

Our weekly newsletter will cover a wide range of topics and trends related to consumerization. Stay up to date with news, reviews and in-depth coverage of BYOD, smartphones, tablets, MDM, cloud, social and how consumerization affects IT. Subscribe now!