Get the embedded artwork from an MP3 file
Use the command eyeD3 [MP3_FILE] --write-images [FOLDER]
.
I had a collection of MP3 files from podcasts, and the MP3s had the show cover art embedded in the files. I wanted to extract the cover art as standalone images.
Initially from Stack Overflow I was directed to this command:
$ ffmpeg -i podcast_episode.mp3 -an -c:v copy cover_art.jpg
This mostly works, but it doesn’t know about image formats – for example, I ran it on one file and it created a PNG file with a .jpg
extension.
I found a better command using the eyeD3 Python library, which seems to get all the embedded artwork (including e.g. chapters) and writes them with file extensions that match the image format:
$ eyeD3 podcast_episode.mp3 --write-images embedded_artwork