Help - Search - Members - Calendar
Full Version: album cover jpegs into id3v2 of mp3's
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
Marino13
I currently rip my cd's to flac using eac. I then create LAME 3.90.3 aps mp3's using foobar 0.8.3. I am in the process of converting the flac files to LAME 3.97 beta 1 -V 2 --vbr-new mp3's. I am thinking about getting an ipod and I am interested in seeing the album cover show up on the display as the songs are playing. I know I could just use a tagging program to insert the album cover into the id3v2 tag. The problem is that I have about 1800 cd's and I would have to do it for each cd.
I am looking for a way to "mass insert" the album cover jpeg's that I have into the mp3's that I am creating. My current setup is that my flac files are saved in F:FLAC\Artist\Album\*.flac. I also have a jpeg of each album cover in F:FLAC\Artist\Album\Artist - Album.jpg. This allows me to see the album cover displayed in the folder window of Explorer.
Does anyone know of a batch file or a way I could just tell it to look in the corresponding flac folder and insert the jpeg from that folder into the id3v2 tag of the mp3 files? My mp3's are at G:\mp3s\Artist\Album\*.mp3. I hope I explained this so you can understand it. Thank you in advance for any help you can provide! With more than 22,000 mp3's I know that this would take a long time but it is better than sitting at the computer and doing it manually.
Alex B
You could first copy and rename the image files from F:\FLAC\Artist\Album\*.jpg to G:\mp3s\Artist\Album\Folder.jpg with some file utility.

After that you could use The Godfather with a script available here: http://com1.runboard.com/bthegodfathermp3f...criptcenter.t71 for embedding the images.

Another possibility would be to use J. River Media Center 11. It has the needed batch tools for converting FLAC to LAME 3.97b1 mp3 and for copying & embedding the cover art images to mp3 tags. I'd be happy to give you step-by-step instructions at J. River's MC forum if you like to try MC. You might find the program useful in many ways with such a large audio library.
Marino13
QUOTE(Alex B @ Oct 9 2005, 07:49 AM)
You could first copy and rename the image files from F:\FLAC\Artist\Album\*.jpg to G:\mp3s\Artist\Album\Folder.jpg with some file utility.

After that you could use The Godfather with a script available here: http://com1.runboard.com/bthegodfathermp3f...criptcenter.t71 for embedding the images.

Another possibility would be to use J. River Media Center 11. It has the needed batch tools for converting FLAC to LAME 3.97b1 mp3 and for copying & embedding the cover art images to mp3 tags. I'd be happy to give you step-by-step instructions at J. River's MC forum if you like to try MC. You might find the program useful in many ways with such a large audio library.
*



Yes, I would love that if you do not mind.
=trott=
I have struggled with this problem too...and have found 2 solutions which are free and work reasonably well.
1: itunes art importer allows you to search for cover art and apply it to files, but it also has the ability to use existing folder.Jpg files. (and indeed even export cover art to folder.jpg). it may be best to use the 'BE edition' version mentioned at the top...
2: itunes library tool takes your itunes library and applies cover art in an existing folder.jpg file to every mp3/aac file which does not yet have existing artwork. It can also remove dead files from your library.

The second solution requires the .net framework 2.0 pre-release though...

Personally I use cover art downloader in combination with itunes library tool. (cover art downloader can apply tags directly to mp3 files but not to aac files...)

Both these solutions require you to have itunes installed with a populated library.
Alex B
Marino13 and others who may be interested,

I've posted instructions for copying and embedding cover art images with MC11 in this thread at MC user forum.
Truthseer
QUOTE(Marino13 @ Oct 9 2005, 08:05 AM)
The problem is that I have about 1800 cd's and I would have to do it for each cd.
I am looking for a way to "mass insert" the album cover jpeg's that I have into the mp3's that I am creating.


Try using ID3TAG-IT at ID3TAG-IT. It mass adds cover art into mp3 tags. One click link to the source of the art and BAM, I think (IMHP) it is as comprehensive (tag wise) as FB2K is to audio players. Check it out.
Otto42
QUOTE(Marino13 @ Oct 9 2005, 09:05 AM)
I am looking for a way to "mass insert" the album cover jpeg's that I have into the mp3's that I am creating.  My current setup is that my flac files are saved in F:FLAC\Artist\Album\*.flac.  I also have a jpeg of each album cover in F:FLAC\Artist\Album\Artist - Album.jpg.  This allows me to see the album cover displayed in the folder window of Explorer.
Does anyone know of a batch file or a way I could just tell it to look in the corresponding flac folder and insert the jpeg from that folder into the id3v2 tag of the mp3 files?  My mp3's are at G:\mp3s\Artist\Album\*.mp3.  I hope I explained this so you can understand it.
*


One thing iTunes does do is to make scripting this sort of thing reasonably straightforward and easy to do.

Install iTunes. Load all your MP3s into the iTunes library. Save this script as "AddArt.js" then double click it to run it.


CODE

var iTunesApp = WScript.CreateObject("iTunes.Application");
var tracks = iTunesApp.LibraryPlaylist.Tracks;
var numTracks = tracks.Count;
var i;
var count = 0;
var fso = new ActiveXObject("Scripting.FileSystemObject");
for (i = 1; i <= numTracks; i++)
{
try {
var currTrack = tracks.Item(i);
if ( currTrack.Artwork.Count == 0 )
{
 var artist = currTrack.Artist;
 var album = currTrack.Album;
 var artwork = "f:\\FLAC\\" + artist + "\\" + album + "\\" + artist + " - " + album + ".jpg";
 if (fso.FileExists(artwork))
 {
  currTrack.AddArtworkFromFile(artwork);
  count++;
 }
}
} catch(er) {}
}
WScript.Echo ("Added artwork to " + count + " tracks.");
Otto42
QUOTE(=trott= @ Oct 10 2005, 01:33 AM)
2: itunes library tool takes your itunes library and applies cover art in an existing folder.jpg file to every mp3/aac file which does not yet have existing artwork. It can also remove dead files from your library.

The second solution requires the .net framework 2.0 pre-release though...
*



It's all just variations on a theme, man. This script will do the same thing without that .NET overhead... or having to install code that you don't know anything about.

CODE

var iTunesApp = WScript.CreateObject("iTunes.Application");
var tracks = iTunesApp.LibraryPlaylist.Tracks;
var numTracks = tracks.Count;
var i;
var count = 0;
var fso = new ActiveXObject("Scripting.FileSystemObject");
for (i = 1; i <= numTracks; i++)
{
     try {
     var currTrack = tracks.Item(i);
     if ( currTrack.Artwork.Count == 0 )
     {
             var loc = currTrack.Location;
             var f = fso.GetFile(loc);
             var artwork = f.ParentFolder + "\\folder.jpg";
             if (fso.FileExists(artwork))
             {
                     currTrack.AddArtworkFromFile(artwork);
                     count++;
             }
     }
     } catch(er) {}
}
WScript.Echo ("Added artwork to " + count + " tracks.");


For dead file removal, look no further than this script: http://ottodestruct.com/iTunes/RemoveDeadTracks.txt
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.