This autumn I finally decided to take the time and convert my entire CD collection to MP3s. Afterwards I can say that it was a great decision as now the entire collection is once again usable, I can't even remember when I had last time crawled into the cupboard and taken those CDs out from there. The actual CD ripping took the time it took, you really can't make it happen any faster. But clearly the biggest obstacle at this process was the decision making at the beginning. How and with what tools I should do the job. Thus I decided to write this “Best Practise” / “How to” blog entry, perhaps this can help someone with the same dilemma. At least this will help me to remember how to do this. ;) What I wanted to do? When I started I made the following decisions:
Naturally I had to make few compromises to full fill the first and the second decisions. The best possible music quality would have required me to use FLAC format, but that would have not allowed me to listen to the music with all devices. With “all devices” I mean all phones in our family (Android and Symbian), network media players (WD TV Live HD), media players (Creative ZEN X-Fi Style), car stereos (very important!), laptops (Ubuntu) and most importantly all future additions to this arsenal. This lead me to choosing MP3 with Variable Bit Rate as the format. Now all I had to do was to figure out how to efficiently add CD cover images to the the ripped MP3s and albums. CD Cover Images I was a bit surprised to find out that the ripping software in general wasn't ready to add the CD Cover Images automatically and even more surprised that there really isn't any standard, de facto or otherwise, about the size of the cover images to use. I did some research in the Internet and also benchmarked some MP3 files sold in the net stores and found out that one could actually use almost any picture size one likes. Majority of the current MP3s sold seem to include cover images embedded with ID3 Tags sized 300x300 pixels. And this seems to be the currently prevailing recommendation of many web sites also. The major concern with the embedding of the cover images is their impact on the MP3 file size. A cover image sized 300x300 pixels adds about 40-60kB to the file size. My opinion is that this is very acceptable, especially considering that the size of a good quality MP3 file is between 6-8MB. This means that the picture takes less than one percent of the final file size. I also considered whether I actually should put in larger cover images, but when I tested 300x300 pixel images in different devices, I came to the conclusion that it looks really good and there is no need for larger images. But... Yes, there is a but! Even though I had embedded the CD cover images to all files of my test album, some of my devices still were unable to show the cover image when browsing the albums. It seems that some devices look for a separate image file within the album folder and use that as cover image. So I came to a conclusion that one must have both the separate image file and the embedded ID3 tag image. Final decision about the CD cover images To make the cover images available to all devices I made a decision to:
Picture: For example, the CD cover image on the right is sized 300 x 300 pixels. Where to get the CD cover images? There are many places where you can download the CD cover images. However there aren't that many places that offer really good quality, so most likely you are going to have to do some searching from several places. Here's where I found my images from:
Decisions about the tools for ripping and tagging There is a huge number of possible software to use for CD ripping and file ID tagging. And at least as many web sites recommending and evaluating these tools. Thus I won't go into details here. As I'm an Ubuntu user I ended up using Rubyripper for CD ripping and EasyTAG for adding the embedded cover images to ID3 tags. EasyTAG can be installed thru both Synaptic Package Manager and Ubuntu Software Centre so it's just click'n'play. However Rubyripper is a bit of a pain to install but it's well worth the effort. I'll explain the installation in detail later in this document. It's kind of matter of opinion, but I also decided to exempt my laptop's internal CD drive from the chore of ripping two hundred CDs. And went to the local computer store and purchased a cheap external USB CD/DVD drive to be used in this job. I gathered that it's cheaper this way if the CD drive gets destroyed during the ripping. Luckily nothing of that kind happened and the external LG CD/DVD drive is still live and kicking after the ripping job. CD Ripping and Tagging Process - In Brief Here's how the ripping and tagging process went in a nut shell
Finding out your CD drive's Accuraterip Offset Rubyripper uses a thing called Accuraterip offset value to make the CD drives perform better with the digital audio extraction. The offset and the values seem somewhat confusing and things aren't that well explained at the Accuraterip's web site, but the offset value is easy to find and I guess it won't hurt if you also put this value into the Rubyripper. My guess however is that this really isn't absolutely necessary! To find the Accuraterip offset value for you specific device please to to this web page: http://www.accuraterip.com/driveoffsets.htm and locate your CD/DVD drive from the list. Then pick the right offset value from the “Correction Offset” column. You'll need this value when you're setting up Rubyripper for the first time. If you are unsure about your CD/DVD drive's exact name you can always install “Sysinfo” -tool from Ubuntu Software Centre (Ubuntu's apps service) and pick up the needed information from there. See picture below line “Model” tells you the needed info, which was in my case: “DVD RAM GP10NW20” (the LG's external USB drive). The same information can also be found from the listing console command " dmesg " shows.Picture: CD Drive model information provided by Sysinfo. For my drives the Acccuraterip Offset values where as follows: HP Laptop: +6, VAIO Laptop: +102 External LG USB CD/DVD drive: +6 Rubyripper Installation and Setup You can download Rubyripper CD ripping software from there: http://code.google.com/p/rubyripper/downloads/list This “how to” is written using version 0.6.0. But you should pick the latest version. Download it and open it with Archive Manager. Extract the Rubyripper folder to your hard drive. There is a “Readme” file within the Rubyripper folder, which contains detailed installation instructions. I used this procedure:
Picture: Rubyripper has just started. At the first run you should have a look at the settings by clicking the “Preferences” button. On the “Secure Ripping” tab you should pay attention to the following: (See picture below) Cdrom device:
Picture: Finding the device with console. For example, in my case, the mount points were: Vaio's internal CD drive: /dev/cdrom OR /dev/sr0 Vaio's external USB CD drive: /dev/cdrom4 OR /dev/sr1 Cdrom offset:
Picture: Rubyripper's Secure Ripping tab On the “TOC analysis” tab:
Picture: Rubyripper's TOC analysis tab On the “Codecs” tab:
I didn't see it necessary to change anything on the “Freedb” or “Other” tabs. I just left them to their default values. You can control the MP3 file and folder naming scheme and file locations on the “Other” tab. You can find more on the Rubyripper settings from here: http://filesharefreak.com/tutorials/rubyripper-native-secure-cd-ripping-on-linux/ EasyTAG Installation and Setup EasyTag is a software which can be used to modify the ID3 tags within the MP3 files. ID3 tags hold information about the song, album, artist and so on. And you can embed the CD cover image to the MP3 files using these tags. Installation is very straight forwards. You can find EasyTAG from both Ubuntu Software Centre and Synaptic Package Manager. Just click install on either one and that's it! Ripping CD with Rubyripper - In Detail Ripping CDs is very easy and relative fast thing to do when all settings are done (see above). Here's the procedure:
Tagging and Adding CD Cover Images with EasyTAG - In Detail Rubyripper tags artist, album and song names as well as music genre and publishing year automatically to all MP3s it makes. If you want to later change this information, add more information or add CD cover images to MP3 files, you can use EasyTAG. Using EasyTAG is unfortunately not very intuitive, but when you get the idea, it's pretty fast.
If you wish to edit other ID Tags, you can do so on the Common tab. Always first choose the MP3 files from the central “Area B”, which you want to edit. And then make the changes under the Common tab and click the small radio button on the right hand side of each field you change. Finally remember to click the hard drive icon to write the changes to the disk. Picture: EasyTAG ID3 area's Common tab Special Cases Some times it happens that Rubyripper just doesn't get thru some song. This might be due to scratched CD for example. In these cases Rubyripper seems to do worse job than other possible ripping software as it still tries to combine the ripped chunks and thus ends up with silent gaps in the final ripped MP3 file. I decided to make a compromise in these few cases and just copy the wav file directly from the CD and then convert that file into a MP3. Another option would be to use some other ripping software that doesn't care for reading errors. Using WAV to MP3 conversion I was able to create equal quality MP3s minus, of course, the unrepairable CD reading errors. Here is the command I used: Convert WAV to MP3
Where “input.wav” is the name of the WAV file and “output.mp3” is the name of the MP3 file after the conversion. Read more about this from here: http://askubuntu.com/questions/59520/how-to-convert-wav-to-ogg-and-mp3-using-vbr I also had another special case. Some of my music was already in FLAC format. To convert these files into MP3s, again with equal quality as the ripped CD, I used this command: Convert FLAC to MP3 for file in *.flac; do flac -cd "$file" | lame -V 0 --vbr-new - "${file%.flac}.mp3"; done Read more about this from here: http://www.linuxtutorialblog.com/post/solution-converting-flac-to-mp3 Create Playlist Manually Rubyripper – as propably all ripping softwares – automatically creates a playlist for all ripped CDs. If you'll have to do manual converting of WAVs and/or FLACs to MP3s you'll also have to create or edit the playlist files. Luckily the playlist files are really really simple. All they are, is a simple list of file names, nothing else. The quickest way to manually create a playlist is to open console and type in the following command when you are in the folder containing the MP3 files: ls > filename.m3u You will probably want to name the playlist “filename.m3u” according to the band and album names. In my case the playlist file names are like this: “The Corrs - Forgiven, Not Forgotten (mp3).m3u”. I just adapted the naming format from the Rubyripper. Note: the comma in the file name might create problems in some cases, but I didn't face any problems with any of my devices. The playlist files are just normal text files that can easily be edited with any text editor. The above command lists all files in that folder to the playlist file. After running the command you do have to edit away all other files (lines in the text file) but the MP3 files. After this the playlist works perfectly. It's really quick and easy. Final words Do not copy! Support the artists and software vendors. Rip only the CDs you own! And use open source or use money to buy the software! Never ever buy music in WMA format as it might be broken with DRM and most likely will not play in any of your devices! Burning CDs out of DRM broken WMAs is not a solution - it's just idiotic! |
Tech Blog >