Backing up a CD collection on Linux

July 1st, 2009

I must admit that I rarely listen to any music besides Metallica. However, my girlfriend and I have a small collection of dust-collecting CDs which would be much better off digitalized and stored in a computer. To me anything which is on a computer is far more accessible than anything on a plastic disc.

In this post I show how I digitalized my CD collection on Linux (Ubuntu with Gnome) using Asunder and Grip to rip and encode lossless Flac files, and EasyTAG to edit the files’ ID3 tags.

Ripping format: Flac

I had previously read Martin’s post (in Norwegian) about backing up his music collection and I was inspired by some of his choices. Like Martin I wanted a lossless copy of the CDs which could be converted to any other format. I also wanted a format which is open. Therefore, I decided to go for Free Lossless Audio Compression (FLAC). Another benefit of Flac is that the files are smaller than uncompressed wav files. The files are however larger than for instance mp3 files but these are not lossless.

Flac plugins for several media players can be downloaded from the Flac page at SourceForge. As a media player on Windows/Linux I have up until now been using VLC quite a lot. VLC comes with a built in Flac plugin so no extra plugin is needed.

Ripping and encoding tool for Linux: Asunder/Grip

I started off ripping and encoding CDs with Winamp. Winamp is as the name reveals for Windows and it is not open source. It works quite well but the freeware version has a 8x CD-ripping cap. Not that it is a big problem but I wanted to find something for Linux which is open source.

Grip Flac encoder settings

Grip Flac encoder settings

The first alternative I found was Grip. Grip is available through the Ubuntu repositories so installing it is easy. When I fired it up it complained that the flac encoder was missing. This is nothing a “sudo apt-get install flac” can’t fix. I also had to set the path for the flac encoder (see the screenshots above). One is also able to set several options using the flac command line. I left the default settings more or less untouched but you have all the options at your fingertips.

After a bit of configuration I was off to a running start. I decided to use Flac, enable ID3 tags, keep upper case file names and spaces rather than underscores. I guess this is something I am used to after using Windows for a long time.

There is however one thing to complain about. Grip frequently crashes when I am trying to rip certain CDs. I really don’t know why but I think they are CDs with multimedia content as well. This means I can’t use Grip for all my CDs. However, I really liked Grip and if you do not experience these problems I would warmly recommend it.

Edit: The problem with Grip seems to be related to the ID3v2 tags on some CDs and it is already registered as a bug. Turning off the ID3v2 tags was at least a workaround for me.

Sound juicer configurations

Sound juicer configurations

Then I tried Sound Juicer (Audio CD Extractor) which is a simple and easy to use ripping tool. It worked really well, ripped all the CDs I tested, and stored them as Flac. However, it lacked some of the flexibility I want when it comes to customizing file and folder names. It was moreover not possible to create playlists automatically. If you need as simple tool I would warmly recommend Sound Juicer.

Asunder

Asunder

The third one I tried was Asunder. This was another simple tool but it has somewhat better file name configuration options than Sound Juicer and it created playlists automatically. It has not crashed so far and it does what it should. The configuration was not as detailed as Grip’s but it had the most important options. I would have preferred to have them all but Asunder actually worked on my computer with most CDs. Ripping and encoding was therefore done with Asunder when Grip did not work.

Another alternative is XMCD but since Asunder was working I did not bother to check it out. This blog entry and this Wikipedia entry suggests a few other tools you might want to check out if you want something else. You may also want to check out one of these guides(one, two)which shows you how to rip and encode a CD as flac using the command line only. This looks tempting since you will get some of the configurability which I miss with Asunder.

ID3 editing tool for Linux: EasyTAG

All of the tools mentioned above contact an Internet database to download information about the discs and tracks one rips. This information is then stored in the flac-files ID3 tag. This is very convenient but the information is unfortunately not always correct and sometimes it is not formated the way you want it. To edit the ID3 tags of a large number of files one will need some tool support because doing it manually is just too time consuming.

EasyTAG user interface

EasyTAG user interface

I have for a long time been using mp3tag on Windows and I am really satisfied with it. It is unfortunately not available for Linux so I had to look for another tool. I found EasyTAG through the Ubuntu repository. Even though the user interface could have needed a overhaul it seems to be doing its job and I decided to go for that. It offers the functionality I need (rename files, folders, and automatically get tags from file/folder names). It is also possible to search an online database for updated tags.

I am sure there are other options but EasyTAG seemed to satisfy my needs and I did not bother to look further.

Future work: media center software, encoding for portable players, and DVD backup

After ripping my CDs I need to first look into arranging the music with a new media player/music library. Next, I need to find something for encoding it in a somewhat more compressed format for portable mp3 players. Then I would like to look into ripping the DVDs I have as well. After building a gaming media centre for the living room I need to put it into proper use.

If you have any hints or comments please leave me a message.

Disclaimer

Ripping CDs and DVDs for personal backups is permitted according to Norwegian law. Other countries may have different legislation when it comes to copying/taking backup copies of copyright protected intellectual property like CDs and DVDs. Do not use this guide to copy/spread copyright proctected material illegally.

https://bugs.launchpad.net/ubuntu/+source/grip/+bug/283658

Digital movie rental for the masses, now also in Norway

June 2nd, 2009

Finally, it seems we will get a decent movie rental service here in Norway as well. Microsoft announced that they will start (or more correctly expand) their movie rental service in other countries besides the USA. This means that we will be able to enjoy 1080p movies and series with 5.1 sound in Norway as well through our Xbox.

I have previously been impressed by how easy it is to buy and download digital content through either your Xbox or xbox.com. If the movie rental it is as simple as buying games/game add-ons I am sure it will be a hit. Well, as long as Microsoft is able to get a decent selection of material and as long as the the pricing is right it is going to be a hit.

Microsoft’s movie on demand and other services like Hulu have not been available here in Norway so far. I have until now used Cdon’s bredbåndsfilm a bit but the selection of movies is not yet good enough. The biggest problem with Cdon’s offering though is ironically enough their dependency towards Microsoft. Cdon and other services like SF Anytime do unfortunately require Windows and Internet Explorer.

Another interesting news is Microsofts Games on Demand (browse down a bit). They do not say anything about Norway but it would be really cool to be able to buy Xbox games and download them over the Internet. However, the Xbox’s 20GB disk may be a bit of a problem…

Aigaion for SourceForge community choice award

May 22nd, 2009

It is time for the SourceForge community choice awards. I have of course nominated Aigaion, my favourite web bibliography tool. Some time ago I wrote about it here.

The nominations close May 29th so you should be quick to nominate your favourite. Voting starts June 22nd and I do of course think you should vote for Aigaion.

Downloading music for charity

May 18th, 2009

Downloading music for charity sounds too good to be true don’t it? It isn’t but well you have to pay for it.

I recently discovered this acoustic version of All within my hands on Youtube. Even though St. Anger has some highlights I must admit that it isn’t my favorite Metallica album (that is of course Master of Puppets). However, I really liked the acoustic All within my hands and I wanted to get it eh … all within my own hands.

It turned out that it was played at the yearly Bridge School Benefit for children with severe physical impairments and complex communication needs. I am no big fan of people running after me in the streets or calling me on the phone to ask me to donate money to whatever reason. Even though the causes are good I just don’t like being nagged into doing something. I prefer doing it of my own will. I must admit though that I am not much of a charity giver (shame on me) but when I could get good music and support a good cause I felt it was right.

The solution was of course the live Metallica catalog which I think is a good source for music and a great store. The store sells all (?)  live Metallica shows since 2004 and gives you about 20 older shows for free. The music comes without DRM in either MP3 and FLAC. You’ll get the MP3 version of a show for $9.95 and the FLAC version is going at $12.95.

Metallica played at the Bridge School charity both the 27th and the 28th of October 2007.  Metallica played only 8 songs each night (some covers and some Metllica songs) so the shows are a bit expensive. However, you have to remember that all net proceeds goes to the Bridge School. The set lists have some variations between the two days. Of the cover songs I really liked I’m only happy when it rains.

This is by far not the first thing I have bought after seeing it on youtube or somewhere else. I just don’t see why people are against it and so afraid of people posting copyright protected material there. I think the exposure it gives an artist and the sales this generates is well worth the potential loss of income. I could have chosed to continue listening to the youtube version but I wanted to have the song and I decided to pay for content of higher quality in the sense that it is Flac and therefore also transportable to other devices but my computer.

Vuze on Ubuntu after removing openjdk

May 12th, 2009

I recently removed openjdk to get my BankID working. A change often has consequences and I did not have to wait long.

For some reason I do not bother to dive into, openjdk is hard coded into Vuze as its preferred Java implementation on Ubuntu. When I removed openjdk, Vuze would of course not start. It is apparently a bug (or meta bug) but it is quite simple to fix.

Change one line in /usr/bin/azureus by using “sudo gedit /usr/bin/azureus” and change the line JAVA=’/usr/lib/jvm/java-6-openjdk/jre/bin/java -Xmx1024M’ to JAVA=’/etc/alternatives/java -Xmx1024M’