Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a bunch of MP3 files that have their album art included within the file itself. I am now looking for a way to extract them to store them separably, at best from command line.

Is there a way to achieve this?

share|improve this question
up vote 15 down vote accepted

You can use eyed3 which is a great utility for handling id3 tags. To extract all images from an mp3 file you can use:

eyeD3 --write-images=DIR mp3_file

This will write all embedded images from the mp3 file to the specified directory.

share|improve this answer
    
On Ubuntu, the version currently provided (0.6.18) makes corrupt image files. – scruss Jun 2 '15 at 10:42

I just found out that ffmpeg will do the trick!

ffmpeg -i file.mp3 file.jpg
share|improve this answer
    
This failed using ffmpeg 2.0.2 on my Synology NAS (file.jpg: Invalid argument), but works using 2.3 on OS X Mavericks. Thanks! – Richard Barnett Feb 15 '15 at 7:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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