Link to home
Start Free TrialLog in
Avatar of FINGERLICKINGGOOD
FINGERLICKINGGOOD

asked on

Extract ID3v2 Encapsulated Image from mp3


Programming in Delphi Version 7.

I was wondering if anybody had a code sample of how to display the encapsualted image from a ID3v2 tag. I have successfully extracted and wrote to other popular frames, but the picture is eluding me. I can only seem to extract it as a string. If possbile i would also like a code sample to read other frames of the ID3v2 tag, such as Rating, Lyrics, etc.. Thankyou.
Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image

Hmmm, what image you are talking about... I don't see any "image" in IDv2 tag. The other this is that is also doesn't contain lyrics or rating...

Are you talking about the images and lyrics some players retrieve from internet ... ?
Avatar of Ferruccio Accalai
Avatar of FINGERLICKINGGOOD
FINGERLICKINGGOOD

ASKER

To ivanov G, there is a image frame for ID3v2 tags. Have a look in windows media player, iTunes that i know of. Many images can be stored there. Have a look at this site:  http://www.id3.org/id3v2.3.0.html#sec4.15 this is where it details the image. Please help.
FINGERLICKINGGOOD, doesn't the link posted above help? It's about storing images in ID3V2 tag and the suggested component http://www.torry.net/vcl/mmedia/audio/id3v4.zip (already available with source) uses the structure from  http://www.id3.org/id3v2.3.0.html#sec4.15

F68 ;-)
yeah i was only able to read pictures that i had put in there and not picture that were put in by windows media player or iTunes for windows. I could embed the picture then extract it and then the file would not play! removing the tag fixed this problem. So i think i will give up. If i add pictures to all of my mp3's this will add up to roughly 100MB. So i have decided to just create a folder that has all album images named to the convention of "Artist" - "album" and the software i am using will look in this folder for a picture with that name. That way i can have 1 detailed 100KB image that will serve all songs in the album, instead of 20 5KB images embedded in each file. But if you can post a complete project that successfully adds and views a picture, and is playable, that would be good.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial