--- Aubin Paul <[EMAIL PROTECTED]> escreveu: > On Sun, Nov 23, 2003
at 12:59:44AM -0300, Gustavo Sverzut Barbieri
> wrote:
> >  --- Aubin Paul <[EMAIL PROTECTED]> escreveu: > I would like to
> add
> > embedded image extraction to mmpython; the idea
> > > is
> > > pretty simple. Since id3v2 tags contain image data, we can write
> to
> > > the mmpython cache, and then use that for cover data.
> > > 
> > > Extracting the image itself is ridiculously easy:
> > > 
> > > from mmpython.audio import eyeD3
> > > id3 = eyeD3.Mp3AudioFile( i )
> > > images = id3.tag.getImages();
> > > name = md5(i) + '.jpg'
> > 
> > md5 is slow. maybe we can recriate the previous file place inside
> > mmpython cachedir? I mean:
> 
> Well, it's not /that/ slow, and it does pretty much guarantee
> uniqueness... we use it elsewhere I'm pretty sure. It doesn't matter
> if it's md5, just a unique hash.

using md5 is good because you can have the same file in different
places and it will match and also don't care about you changing file
within directories.
   Using something like I said wouldn't match, but it's unique if you
rember that one dir cannot have 2 files with the same name. However it
doesn't handle moving files.

   My only concern is scaning a big dir, ie 500mb, it will take too
much. You can use "freevo cache" but in runtime you'll need to rescan
to get the md5 to then get the cover? Or md5 are kept in cache too?


> > I'm not aware of img.writeFile, but IMO you're all the images to
> the
> > same file? What's the point?
> 
> Well, we can only show one image; I guess we could just jump to the
> end of the list, but we only get a array of images anyway.

Better to get the bigger one?
And if we have 2 images (front and back), there is a way to know which
one is the front cover?
   If not, maybe we should have the first/last one and have an item in
item's menu (pressing E in item) that show every cover that item have,
then you can choose one.


Gustavo


______________________________________________________________________

Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
http://mail.yahoo.com.br


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to