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

Re: ID3v2 tags


  • Subject: Re: ID3v2 tags
  • From: "Marco Papa" <email@hidden>
  • Date: Wed, 18 Jun 2008 11:18:34 -0700

Thanks for everybody's reply and pointers to the ID3v2 reference:

 http://www.id3.org/id3v2.3.0

and several open source libraries that will do the "tag extraction". There is at least one C++ library that should be easy to link with the Apple frameworks.

Let me then be more specific on what I am trying to do. 

I am reading and playing MP3 and AAC audio streams. I connect to the network audio streams using HTTP with CFHTTPMessage and CFReadStream APIs from the Core Foundation (CF  Network Interface). My callback handles kCFStreamEventHasBytesAvailable events to get the stream data (after the HTTP headers have been retrieved).

I then parse the network packets to recover the audio packets using Audio File Stream Services APIs. Then I buffer the audio packets and send them to a playback audio queue object using Audio Queue Services APIs. Everything plays just fine.

Audio File Stream Services has the ability to get me "some" metadata (such as the File Format, it being LPCM, MP3, AAC, etc.., and the bit rate), but not much more.

I assume the right place to look and extract the ID3v2 tags would be right at the beginning on the transaction, in response to the kCFStreamEventHasBytesAvailable event, before I pass the stream to Audio File Stream Services. This code would work like a proxy pass-through. Correct?

Thanks for any insight.

-- Marco


On Wed, Jun 18, 2008 at 1:39 AM, Marco Papa <email@hidden> wrote:
Is there any easy way to extract the frames that contain ID3v2 tags from an MP3 stream using the Core Audio APIs?

Thanks.

--
Marco Papa, Ph.D.
Computer Science Department
University of Southern California
Henry Salvatori Computer Center
Los Angeles, California 90089-0781
Voice: +1-213-974-2137
Cell: +1-310-944-5468
E-mail: email@hidden


 _______________________________________________
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

  • Follow-Ups:
    • Re: ID3v2 tags
      • From: Jens Alfke <email@hidden>
References: 
 >ID3v2 tags (From: "Marco Papa" <email@hidden>)

  • Prev by Date: Re: AudioBuffer question
  • Next by Date: Re: ID3v2 tags
  • Previous by thread: Re: ID3v2 tags
  • Next by thread: Re: ID3v2 tags
  • Index(es):
    • Date
    • Thread