• 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: 'aach' available but fails with format error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'aach' available but fails with format error


  • Subject: Re: 'aach' available but fails with format error
  • From: Ethan Funk <email@hidden>
  • Date: Mon, 28 Mar 2011 17:29:30 -0700

Yep... that was it.  mFramesPerPacket needs to be 2048 for the aac-he codec, 1024 for aac-lc.  Thanks.

Ethan...

On Mar 28, 2011, at 11:45 AM, Eric M. Aldrich I wrote:

> See below
>
> On 28 Mar 2011, at 10:26 , Ethan Funk wrote:
>
>> I'm using interleaved packet for the input format.  mixerInputFormat is defined elsewhere.  A converter and other processing (not shown) converts between the mixerInput and the StreamFormat.
>>
>> 	AudioStreamBasicDescription tempFormat;
>> 	int value;
>> 	OSStatus err;
>> ...
>> 	tempFormat.mChannelsPerFrame = parent->fileStreamFormat.mChannelsPerFrame;
>> 	tempFormat.mFormatFlags = 0;
>> 	tempFormat.mBytesPerFrame = 0;
>> 	tempFormat.mBytesPerPacket = 0;
>> 	tempFormat.mBitsPerChannel = 0;
>> 	tempFormat.mFramesPerPacket = 1024;
>
> Try 2048 for aach. I haven't worked with aach in a while, but I think this is your problem.
>
> Eric
>
>>
>> 	err = AudioConverterNew(&parent->StreamFormat, &tempFormat, &aacEncoder);
>>
>>
>> On Mar 28, 2011, at 8:58 AM, Eric Allamanche wrote:
>>
>>> How do your input/output AudioStreamBasicDescriptions look like exactly? Especially, what's the mFramesPerPacket value set to?
>>>
>>> Eric
>>
>> _______________________________________________
>> 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
>
> ---
> Eric M. Aldrich I
> Apple Core Audio Engineering
> Audio Codecs
>
>
>

 _______________________________________________
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: 
 >Available codecs (From: Ethan Funk <email@hidden>)
 >Re: Available codecs (From: Anders Norlander <email@hidden>)
 >'aach' available but fails with format error (From: Ethan Funk <email@hidden>)
 >Re: 'aach' available but fails with format error (From: Eric Allamanche <email@hidden>)
 >Re: 'aach' available but fails with format error (From: Ethan Funk <email@hidden>)

  • Prev by Date: AudioFileStreamParseBytes produces no packets
  • Next by Date: Re: weird build errors from AUResources.r
  • Previous by thread: Re: 'aach' available but fails with format error
  • Next by thread: iOS app performance degraded on iOS 4.3?
  • Index(es):
    • Date
    • Thread