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'
for img in images:
    img.writeFile(MMPYTHON_CACHEDIR,name=name)

Simple enough. But the catch is:

1) How do I put this into mmpython (or Freevo)
2) Since multiple tracks would have identical images embedded in them,
how do we track their MD5's as well as the original mp3 files?

It would be easier to put right into Freevo, but not very clean.

Aubin



-------------------------------------------------------
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