Nonsensical values from kAudioFilePropertyBitRate
Nonsensical values from kAudioFilePropertyBitRate
- Subject: Nonsensical values from kAudioFilePropertyBitRate
- From: Jens Alfke <email@hidden>
- Date: Sat, 22 Mar 2008 16:58:53 -0700
kAudioFilePropertyBitRate is returning nonsensical values for some
files.
For most, but not all, AAC files (encoded by iTunes) it returns
numbers like 63992, 63989, 96003. Each file gets different results,
but they're repeatable for that file.
Some VBR MP3 files, such as a 124kbps one encoded by & purchased from
eMusic.com, get 32 for this property.
But it does return the right values for most files I'm trying it on,
including VBR ones (although sometimes it's slightly off from what
iTunes reports — like 174k vs 182k.) So I'm quite confident I'm
calling it correctly. And I'm not having trouble with the values of
any other AudioFile properties.
(This is with OS X 10.5.2 on a MacBook Pro.)
Is this a known issue, or should I file a bug report?
What's an alternative, more reliable way to get the average bit-rate?
(I'm trying to filter out files that would be too high-bandwidth to be
streamed over the user's Internet connection.) I'm considering just
dividing the file size by its duration...
—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