• 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: AudioFileCountUserData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioFileCountUserData


  • Subject: Re: AudioFileCountUserData
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 22 Jan 2009 12:59:08 -0800


On Jan 22, 2009, at 11:54 AM, Chris Adamson wrote:

I've noticed that getting artist/album/title metadata from audio files via AudioFileGetPropertyInfo / AudioFileGetProperty works for .mp3's (in that getting the kAudioFilePropertyInfoDictionary property returns a CFDictionaryRef with non-trivial data), but not for iTunes .m4a's, for which the dictionary contains only an approximate duration.

I use QuickTime to get the metadata; this seems to work for all MP3 and AAC files. Open the file as a movie, call QTCopyMovieMetaData, then rummage through the resulting dictionary for the properties kQTMetadataKeyDisplayName, kQTMetadataKeyAlbum, kQTMetadataKeyArtist, etc. (In some cases those properties don't work, so you have to fall back to the older OSType codes kUserDataTextFullName, etc.)

—Jens

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AudioFileCountUserData (From: Chris Adamson <email@hidden>)

  • Prev by Date: Re: Slow seeking in MP3 files using ExtAudioFile
  • Next by Date: Re: Few sample rate conversion questions
  • Previous by thread: AudioFileCountUserData
  • Next by thread: AudioQueueOfflineRender: how do I know when I'm done?
  • Index(es):
    • Date
    • Thread