Re: QuickTime movie audio samples access on iOS
Re: QuickTime movie audio samples access on iOS
- Subject: Re: QuickTime movie audio samples access on iOS
- From: Art Gillespie <email@hidden>
- Date: Thu, 24 Jun 2010 17:14:21 -0700
I think AudioFile and ExtAudioFile are for audio-only containers: If you query the readable file formats using kAudioFileGlobalInfo_ReadableTypes on an iPhone 4 with iOS4 you get:
3GPP-2 Audio
3GP Audio
AIFC
AIFF
MPEG Layer 1
MPEG Layer 2
MPEG Layer 3
NeXT/Sun
WAVE
AC3
AAC ADTS
AMR
AUDB
Apple CAF
Apple MPEG-4 Audio
MPEG-4 Audio
Querying the supported extensions (kAudioFileGlobalInfo_AllExtensions) gives you:
mp2
amr
ac3
mpeg
mp3
aifc
wav
3gp
mpa
aa
m4a
mp4
aiff
snd
caf
3g2
mp1
aac
aif
au
adts
I *think* the answer to getting audio samples out of existing .mov containers lies in AVFoundation, but I'll be damned if I've figured out how to do it, save using AVAssetExportSession to write to a new aac/m4a file and then reading *that* with ExtAudioFile. (That method is slow. Really, really slow. Users-at-the-door-with-pitchforks slow.)
Could someone from Apple weigh in on this? Is there an API in iOS4 for reading raw audio samples from a .mov?
Best,
Art
On Jun 24, 2010, at 2:57 AM, Jan wrote:
> Hi,
>
> I am trying to read sample frames from AAC and MP3 audio files in the QuickTime MOV container format on iPhone OS / iOS. Using the ExtAudioFile APIs, reading "normal" AAC and MP3 files works fine, but when I supply a .mov container with AAC or MP3 audio content I get error 0x7768743f (presumably kAudioFileStreamError_UnspecifiedError).
>
> Do the ExtAudioFile APIs not support the QuickTime container format? If so, is there any other API I could use for this on iPhone OS / iOS?
>
> Thanks! _______________________________________________
> 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
_______________________________________________
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