• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to manage/embed Covert Art from Mp3 Files with Cocoa App?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to manage/embed Covert Art from Mp3 Files with Cocoa App?


  • Subject: Re: How to manage/embed Covert Art from Mp3 Files with Cocoa App?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 11 Jun 2008 07:44:16 -0700


On 11 Jun '08, at 6:59 AM, Nicolas Goles wrote:

Hi, I want to develop a Cocoa Application to manage an embed Cover Art files
to Mp3's. The thing is that I don't know how to achieve this, or where to
read about how to do it. I asked in several places / googled a lot and ended
up here.

iTunes stores cover art in MP3 files in a particular ID3 tag <http://www.id3.org/ >. There's a Mac library for manipulating these tags: <http://drewfamily.homemail.com.au/Cocoa_-_ID3Tag_framework.html >


In AAC files, there's a particular QuickTime 'atom' (AAC uses the QT movie file format) for cover art. The QT APIs can access it, at least for reading, but writing looks considerably harder.

A newer wrinkle is that when iTunes 7 auto-downloads cover art, it for some reason stores it outside the files, in a subdirectory of the iTunes Music folder. The stuff in there is rather cryptic, but there've been a few blog posts I've found that decipher it:
http://www.command-tab.com/2006/09/12/itunes-art-redux/
http://www.falsecognate.org/2007/01/deciphering_the_itunes_itc_fil.php


You can also send AppleEvents (via AppleScript or the Scripting Bridge) to iTunes to get or set the artwork for any track. I think that's been covered on this list in the past few months, so check the archives.

Honestly, by far the easiest way to read cover art is to require 10.5 and just use the QuickLook framework to give you a thumbnail of the file; although I suspect this will limit the resolution you can get. And it's read-only. Matt Gemmell wrote a little snippet showing how to do it:
http://mattgemmell.com/files/source/nsimage_quicklook.zip


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to manage/embed Covert Art from Mp3 Files with Cocoa App? (From: "Nicolas Goles" <email@hidden>)

  • Prev by Date: disabling Print in modal panel
  • Next by Date: Re: Link to zlib
  • Previous by thread: How to manage/embed Covert Art from Mp3 Files with Cocoa App?
  • Next by thread: Re: How to manage/embed Covert Art from Mp3 Files with Cocoa App?
  • Index(es):
    • Date
    • Thread