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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI just found out that ffmpeg will do the trick!
ffmpeg -i file.mp3 -an -c:v copy file.jpg
ffmpeg
2.0.2 on my Synology NAS (file.jpg: Invalid argument
), but works using 2.3 on OS X Mavericks. Thanks!
Feb 15, 2015 at 7:48
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.
If you use the Windows version of VLC media player, you can find the album art for all files you played in
%appdata%\VLC\art\artistalbum
by default. One folder per artist, one subfolder for each album.
If you use Linux version of VLC media player, by default you can find the album art for all files you played in a directory similar to this one:
$HOME/.cache/vlc/art/artistalbum/Sergei Rachmaninoff/Paganini Rhapsody _ Piano Concerto no. 2
(one folder per artist, one subfolder for each album)
If you use Mac, it is in:
~/Library/Caches/org.videolan.vlc/art
With mp3tag
you can do it perfectly. Extract the cover image from one mp3 and put it into another, so it will belong to the same album and that will reflect when you upload them go Google Music for example.