By epb on June 23, 2010
I have a sizable collection of music, so sizable in fact that I can’t store the full collection on any portal media. Since I only use Windows to play video games, I use Rhythmbox to manage my music and found myself in need of a way to sync to a USB thumbdrive. Now, the issue [...]
Posted in linux | Tagged linux, mp3, music |
By epb on May 31, 2010
An odd quest perhaps: but adding album art to an MP3 (in ID3 tags) is readily doable with the KTaglib extension for PHP. Once you have it, you can use a script like this to add artwork to an MP3: $mp3 = new KTaglib_MPEG_File(’2.mp3′); $idv2 = $mp3->getID3v2Tag(true); $album = new KTaglib_ID3v2_AttachedPictureFrame(); $album->setType(KTaglib_ID3v2_AttachedPictureFrame::FrontCover); $album->setPicture(‘testalbum.jpg’); $album->setMimeType(‘image/jpeg’); $idv2->addFrame($album); [...]
Posted in php | Tagged metadata, mp3, php |