3

I would like to use the commandline audio ripper abcde to:

  1. Rip audio cds to mp3
  2. Download and then embed the appropriate album art

Can someone show me an example of how to accomplish this under both Trusty Tahr LTS and Xenial Xerus LTS?

Full disclosure: I was formerly one of the maintainers of abcde.

7

For both Trusty and Xenial it is a good idea to use one of the multimedia PPAs of mc3man to get the most modern abcde available:

1. Installation for Trusty:

Add the following PPA and some required packages:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install abcde lame eyed3 glyrc imagemagick cdparanoia

2. Installation for Xenial:

Add the following PPA and some required packages:

sudo add-apt-repository ppa:mc3man/xerus-media
sudo apt-get update
sudo apt-get install abcde lame eyed3 glyrc imagemagick cdparanoia

3. Running abcde for Trusty or Xenial:

You can use a customised ~/.abcde.conf file to get quality mp3 files as well as album art but if you just want to use the commandline simply use the following, under either Trusty or Xenial:

abcde -o mp3:-V2 -a default,getalbumart

This will find the album art and download it next to your mp3 files which will be encoded to Variable Bitrate with bitrate averaging between 170-210 kbps. What more could you want?

4. Embed the album art?

Well, you could want to actually embed the cover image into your mp3 files. To do this simply change to the directory that holds your mp3s and the cover image and run the following:

for i in *.mp3
do
eyeD3 --add-image cover.jpg:FRONT_COVER "$i"
done

And now you are done :)

References:

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.