PDA

View Full Version : Help! - Album Art in Batch



Nick
2005-02-22, 14:47
Well, wasn't as tricky as I thought to get it running
on Windows XP, having never touched PERL before. It's
working its way through my 700-odd albums as we speak.
What a great little program. Well done and thanks!

Nick

--- Victor Brilon <victor (AT) victorland (DOT) com> wrote:
> Nick wrote:
> > Thanks Victor. Looks unix'y - have others tested
> it
> > on Windows? Also, seems to be specific to MP3,
> would
> > it work on my WMA files?
>
> It *is* unix-y, but that's because I am :)
>
> It runs fine under Windows and OSX as long as you're
> ok with running it
> from the command line. Others with more Windows
> experience have run it
> and can help you with any problems -- but it seems
> painless.
>
> As for file types, anything that your Slim server
> recognizes (including
> WMA), this code will pick up as well.
>
> Victor
>
>

Victor Brilon
2005-02-22, 15:00
Thanks! Glad you got it working. Any suggestions or feedback on
improving the algorithm it uses to match album covers would be greatly
appreciated.

Victor

Nick wrote:
> Well, wasn't as tricky as I thought to get it running
> on Windows XP, having never touched PERL before. It's
> working its way through my 700-odd albums as we speak.
> What a great little program. Well done and thanks!
>
> Nick
>
> --- Victor Brilon <victor (AT) victorland (DOT) com> wrote:
>
>>Nick wrote:
>>
>>>Thanks Victor. Looks unix'y - have others tested
>>
>>it
>>
>>>on Windows? Also, seems to be specific to MP3,
>>
>>would
>>
>>>it work on my WMA files?
>>
>>It *is* unix-y, but that's because I am :)
>>
>>It runs fine under Windows and OSX as long as you're
>>ok with running it
>>from the command line. Others with more Windows
>>experience have run it
>>and can help you with any problems -- but it seems
>>painless.
>>
>>As for file types, anything that your Slim server
>>recognizes (including
>>WMA), this code will pick up as well.
>>
>>Victor
>>
>>

Joshua Uziel
2005-02-23, 02:37
* Victor Brilon <victor (AT) victorland (DOT) com> [050222 14:05]:
> Thanks! Glad you got it working. Any suggestions or feedback on
> improving the algorithm it uses to match album covers would be greatly
> appreciated.

As mentioned on your website:

"I need someone who uses formats other than MP3 (FLAC, Ogg, etc) to
test this code to see if there are any problems specific to those
formats. I don't have access to a large library of those formats to
test with"

All of my music is in ogg format, and the results seem to match the
expectation your "Random observations made while developing this code"
lay out. Just curious... is there an easy way to find out what a
Artist/Album combo will match? As an example, I didn't get an image for
"The Beatles"/"A Hard Day's Night" (which I think I need to remove the
apostrophe). There are other albums (like greatest hits albums) that I
want to know how to get the right image the first time for.

Thanks for the useful tool. :)

Victor Brilon
2005-02-23, 06:08
Joshua Uziel wrote:
> Just curious... is there an easy way to find out what a
> Artist/Album combo will match?

Right now, there's not an easy way to do that other than to point the
script just at the album directory. If you have an idea of how to handle
this better btw, I am all ears.

> As an example, I didn't get an image for
> "The Beatles"/"A Hard Day's Night" (which I think I need to remove the
> apostrophe). There are other albums (like greatest hits albums) that I
> want to know how to get the right image the first time for.

Yep, this is a known issue. The code currently brute forces the
stripping of any non-word characters in the titles since a lot of times
they're used inconsistently. But this clearly is not a workable
solution. I have some ideas on how to fix this and will try to get
around to it this week if job/life/family issues permit.

> Thanks for the useful tool. :)

Glad you found it useful and thanks for the suggestions.

Victor

Mark Bennett
2005-02-23, 15:29
As another data point, I'm using exclusively FLAC files,
and I think it worked pretty well.

There's some very strange matching, and some obvious matches
I would expect to find that it didn't. Haven't had time to
try to analyse why yet.

The oddest match is:

Genesis (live) was matched as Foxtrot
(Both albums by Genesis)

The failed matches I'm surprised at are:

Artist Album
-----------------------------
Heart Heart
Whitesnake 1987
Derek and the Dominoes Layla and Other Assorted Love Songs
The Georgia Satellites Open All Night
Thin Lizzy Black Rose
Thin Lizzy Renegade
Rush Rush
All About Eve Touched By Jesus

Most of the rest are relatively obscure, or have non-alpha
characters in the tags.

On Wed, 2005-02-23 at 01:37 -0800, Joshua Uziel wrote:
> * Victor Brilon <victor (AT) victorland (DOT) com> [050222 14:05]:
> > Thanks! Glad you got it working. Any suggestions or feedback on
> > improving the algorithm it uses to match album covers would be greatly
> > appreciated.
>
> As mentioned on your website:
>
> "I need someone who uses formats other than MP3 (FLAC, Ogg, etc) to
> test this code to see if there are any problems specific to those
> formats. I don't have access to a large library of those formats to
> test with"
>
> All of my music is in ogg format, and the results seem to match the
> expectation your "Random observations made while developing this code"
> lay out. Just curious... is there an easy way to find out what a
> Artist/Album combo will match? As an example, I didn't get an image for
> "The Beatles"/"A Hard Day's Night" (which I think I need to remove the
> apostrophe). There are other albums (like greatest hits albums) that I
> want to know how to get the right image the first time for.
>
> Thanks for the useful tool. :)
>

Joshua Uziel
2005-02-23, 17:34
* Mark Bennett <mark (AT) markandliz (DOT) co.uk> [050223 14:29]:
> The failed matches I'm surprised at are:
>
> Artist Album
> -----------------------------
> Derek and the Dominoes Layla and Other Assorted Love Songs

This is the one in your list that I match up with and I did get the
correct cover.jpg for it... I have "Derek And The Dominos" and just
"Layla" as the album (this was ripped before I put that much effort into
the tags of things).

I'm pondering why "The Beatles"/"A Hard Day's Night" doesn't get a
cover.jpg when that matches a normal Amazon search... is it from a
conflict with the DVD or something?

On the topic of tagging, does anyone have a favorite bulk-retagging tool
for Linux that (hopefully) supports ogg? I'd like something that just
takes the tags you've got and only changes just what you've told it to.
As of yet, tagtool is the best I've found... but it's graphical and
something convenient and command-line would be best for my needs. (The
bulk retagging would be for artist/album names.)

Dan Sully
2005-02-23, 17:42
* Joshua Uziel shaped the electrons to say...

>On the topic of tagging, does anyone have a favorite bulk-retagging tool
>for Linux that (hopefully) supports ogg? I'd like something that just
>takes the tags you've got and only changes just what you've told it to.
>As of yet, tagtool is the best I've found... but it's graphical and
>something convenient and command-line would be best for my needs. (The
>bulk retagging would be for artist/album names.)

EasyTag 1.99 - http://easytag.sourceforge.net/

-D
--
<weezyl> $6.66: The Value Meal of the Beast.

Victor Brilon
2005-02-23, 17:49
Mark Bennett wrote:
> As another data point, I'm using exclusively FLAC files,
> and I think it worked pretty well.

Good to hear. Thanks for letting me know.

> There's some very strange matching, and some obvious matches
> I would expect to find that it didn't. Haven't had time to
> try to analyse why yet.

Most of these that don't match are because the title and artist combo
are too short to make an exact match. The algorithm needs tweaking to
get that piece right but I just haven't had time to mess with it.

Easiest way to check this out is to do a search on Amazon with the query
string of "Artist Title" in the Music section. You'll see for example
the fact that the first result for the Thin Lizzy album actually has no
cover art and nether does the Satellites album. And the All About Eve
album had no exact matches.


> The oddest match is:
>
> Genesis (live) was matched as Foxtrot
> (Both albums by Genesis)
>
> The failed matches I'm surprised at are:
>
> Artist Album
> -----------------------------
> Heart Heart
> Whitesnake 1987
> Derek and the Dominoes Layla and Other Assorted Love Songs
> The Georgia Satellites Open All Night
> Thin Lizzy Black Rose
> Thin Lizzy Renegade
> Rush Rush
> All About Eve Touched By Jesus

Chip Hart
2005-02-23, 20:53
Dan Sully wrote:
> EasyTag 1.99 - http://easytag.sourceforge.net/

I'll second that one. The only tool with better options is
tagscanner (Win-based), which features freedb look up guessing
(a la Musicbrainz) and some better interface tools - but it's
generally trickier to deal with.

--
Chip Hart - Marketing * Physician's Computer Company
chip @ pcc.com * 1 Main St. #7, Winooski, VT 05404
800-722-7708 * http://www.pcc.com/~chip
f.802-846-8178 * Pediatric Software Just Got Smarter
Your Practice Just Got Healthier

Mark Bennett
2005-02-24, 01:21
So it sounds like most of the failures are either limitations of
Amazon's database, errors in my tagging, or just my plain obscure
taste in some cases. Apart from the short name problem, it sounds
like your script worked as advertised - most excellent.

Thanks for checking this for me, I'll have to go round and collect
the information manually.

Thanks,
Mark.

On Wed, 2005-02-23 at 18:49 -0600, Victor Brilon wrote:
> Mark Bennett wrote:
> > As another data point, I'm using exclusively FLAC files,
> > and I think it worked pretty well.
>
> Good to hear. Thanks for letting me know.
>
> > There's some very strange matching, and some obvious matches
> > I would expect to find that it didn't. Haven't had time to
> > try to analyse why yet.
>
> Most of these that don't match are because the title and artist combo
> are too short to make an exact match. The algorithm needs tweaking to
> get that piece right but I just haven't had time to mess with it.
>
> Easiest way to check this out is to do a search on Amazon with the query
> string of "Artist Title" in the Music section. You'll see for example
> the fact that the first result for the Thin Lizzy album actually has no
> cover art and nether does the Satellites album. And the All About Eve
> album had no exact matches.
>
>
> > The oddest match is:
> >
> > Genesis (live) was matched as Foxtrot
> > (Both albums by Genesis)
> >
> > The failed matches I'm surprised at are:
> >
> > Artist Album
> > -----------------------------
> > Heart Heart
> > Whitesnake 1987
> > Derek and the Dominoes Layla and Other Assorted Love Songs
> > The Georgia Satellites Open All Night
> > Thin Lizzy Black Rose
> > Thin Lizzy Renegade
> > Rush Rush
> > All About Eve Touched By Jesus
>