Results 1 to 10 of 10

Thread: mp3 Album Art

  1. #1
    Constant Bitrate
    Join Date
    Sep 2006
    Location
    Cornwall, England
    Posts
    161

    mp3 Album Art

    I have been looking into building a CarPC after the success of my HNC project a few years ago (a simple DOS car MP3 player with 4 line matrix display). I have experience with programming and thought that it would be cool to make my own front-end for my system as the winter is coming and there's not much to do after work. I am new to Visual Studio and the .NET stuff but have programmed VB 5 a few years ago. Anyway, I'll get to the point, I have managed to open an MP3 file and get data from it, Album, Title etc. but I can't find anywhere on the internet that explains how the album art is stored in the MP3 file.

    Does anyone know how to get the artwork out of the file, as I think that displaying the art makes an MP3 player look very pro.

    Thanks

    Craig

  2. #2
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Quote Originally Posted by portreathbeach View Post
    I have been looking into building a CarPC after the success of my HNC project a few years ago (a simple DOS car MP3 player with 4 line matrix display). I have experience with programming and thought that it would be cool to make my own front-end for my system as the winter is coming and there's not much to do after work. I am new to Visual Studio and the .NET stuff but have programmed VB 5 a few years ago. Anyway, I'll get to the point, I have managed to open an MP3 file and get data from it, Album, Title etc. but I can't find anywhere on the internet that explains how the album art is stored in the MP3 file.

    Does anyone know how to get the artwork out of the file, as I think that displaying the art makes an MP3 player look very pro.

    Thanks

    Craig
    ID3v2 supports album art? I thought all the programs that support album art had their own repository.

  3. #3
    Neither darque nor pervert DarquePervert's Avatar
    Join Date
    Apr 2004
    Location
    Elsewhere
    Posts
    13,948
    Quote Originally Posted by TheLlama View Post
    ID3v2 supports album art? I thought all the programs that support album art had their own repository.
    Yes, ID3v2 embeds album art in the file itself.
    How? I'm as clueless as the OP.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

  4. #4
    Constant Bitrate
    Join Date
    Sep 2006
    Location
    Cornwall, England
    Posts
    161
    Yeah, I know that the album art is held inside the MP3 file, but my question was, how do I get Visual Basic to get the artwork from the file. If the MP3 file is opened as a binary source with VB, the last 128 characters hold the information, Track number, Album, Title etc. but what part of the file is the Artwork stored and how can I get VB to display it.

    Thanks

  5. #5
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Here you go: http://www.id3.org/id3v2.3.0.html#sec4.15

    Shouldn't be hard to implement at all. You are going to have to parse id3v2 tags. You probably want to do this anyways since otherwise you are limited to 32byte fields etc.. You can read further up on the id3.org specs and learn about frames. Basically it allows a variable amount of data to be stored.

    Implementation shouldn't be -that- bad. I would recommend looking at something like libID3 and see how they did it. Then you need to load the jpg data into memory, and then get your program to display it. I don't know how .NET works, but you will probably need to load the data into a DIB or something then stick it in an ImageBox or bitblt it.

  6. #6
    Newbie
    Join Date
    Mar 2007
    Location
    San Jose CA
    Posts
    7
    Quote Originally Posted by portreathbeach View Post
    Yeah, I know that the album art is held inside the MP3 file, but my question was, how do I get Visual Basic to get the artwork from the file. If the MP3 file is opened as a binary source with VB, the last 128 characters hold the information, Track number, Album, Title etc. but what part of the file is the Artwork stored and how can I get VB to display it.

    Thanks
    Check out this website. Even if you don't use their library, their routines will help you understand the format and requirements from a coders perspective

    http://id3lib.sourceforge.net/

    You want a ride?
    1. Get in
    2. Sit Down
    3. Shut up
    4. Hold on

  7. #7
    Newbie
    Join Date
    Jun 2006
    Location
    Washington DC
    Posts
    24
    Speaking of album art, do any of you know of a way to get the album art INTO the files? I'd say 98% of my 50Gb of MP3's are from 2001 or before (college networks were great ). Unfortunately, this was pre album art being popular so most of mine are pictureless.

  8. #8
    Neither darque nor pervert DarquePervert's Avatar
    Join Date
    Apr 2004
    Location
    Elsewhere
    Posts
    13,948
    I use Tag & Rename, but there are other tools out there to embed album art.

    Google is your friend.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

  9. #9
    Constant Bitrate
    Join Date
    Sep 2006
    Location
    Cornwall, England
    Posts
    161

    iTunes

    If you have iTunes on your computer and have all of your mp3's in the iTunes library, you can quite easily get album art onto your mp3 files. You get a piece of software called iTunes Art Importer!

    All you do is run iTunes, and also run iTunes Art Importer. Now, you highlight all of the songs in a particular album and then click the search button on iTunes Art Importer. iTunes Art Importer then searches Amazon.com for any suitable artwork and displays it in a box. You simply select the artwork you want and click the download button. This then puts that artwork into the mp3 files that are selected on iTunes.

    Hope that makes sence.

  10. #10
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Tag & Rename is the ultimate tagger/namer for windows.

    In Linux-land: I use: EasyTAG, ex-falso (part of quodlibet), and AlbumArt.

    Ex-Falso is probably my new favorite. AlbumArt is a QT program and it will download from Amazon and stick them in the tags.

Similar Threads

  1. Album art downloader
    By hijinks21 in forum Software & Software Development
    Replies: 105
    Last Post: 07-20-2006, 09:56 AM
  2. Replies: 18
    Last Post: 03-12-2006, 05:56 PM
  3. Select album to play via album art
    By xGumbyx in forum Mobile Impact
    Replies: 21
    Last Post: 01-25-2006, 07:46 PM
  4. Program to grab mp3 album art?
    By Street in forum Software & Software Development
    Replies: 16
    Last Post: 12-06-2005, 02:17 PM
  5. Ripping to MP3 WITH album art?
    By coachreed in forum General MP3Car Discussion
    Replies: 5
    Last Post: 05-20-2004, 06:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •