Re: 'aach' available but fails with format error
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