Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux: Library to write ID3v2 data and cover art

I need to locate a command line tool that would allow me to write ID3v2 and album art to an MP3 file. Command line is required as it will be executed from PHP, so no graphical interface. Searches of Google have proved fruitless, so perhaps there is a tool available that will enable me to do this?

like image 251
tombazza Avatar asked Aug 27 '09 11:08

tombazza


1 Answers

eyeD3 (http://eyed3.nicfit.net/), as suggested by Arboghast, will do the job.

eyeD3 --add-image file.jpg:FRONT_COVER music.mp3

will add the front cover album art (which is what iTunes/iPhone uses for the image).

eyeD3 --add-image :FRONT_COVER music.mp3

will remove the last front cover image. (Note that if you want to replace an image [e.g. you fixed the image], you need to remove the image and then add it. If you just add the image again you will get multiple front cover images.)

like image 123
prewett Avatar answered Nov 03 '22 12:11

prewett