AAC Encoder parameters needed

AAC Encoder parameters needed

Hello,

I am successfully initializing the AACEncoder with the
following parameters:

UMC::AudioCodecParams audioCodecParams;

audioCodecParams.m_info_in.channels = 1;

audioCodecParams.m_info_in.sample_frequency = 16000;

audioCodecParams.m_info_out.bitrate = 32000;

audioCodecParams.m_info_out.stream_type = UMC::AAC_MPEG4_STREAM;

audioCodecParams.profile = UMC::AAC_LC_PROFILE;

audioCodecParams.m_pData = spMediaData.get(); // m_pData points to array
containing 0x1408

On the decoder side I set the following initialization
parameters

UMC::AudioCodecParams audioCodecParams;

audioCodecParams.m_info_in.stream_type = UMC::AAC_MPEG4_STREAM;

audioCodecParams.profile = UMC::AAC_LC_PROFILE;

audioCodecParams.m_pData = spMediaData.get(); // m_pData points to array
containing 0x1408

When I call GetFrame on the decoder side I get a result
value of UMC_OK

m_spAACDecoder->GetFrame(&m_mediaInputData,
&m_mediaOutputDataVec[m_outputIndex]); // returns UMC_OK

However when calling

dataOutSize = m_mediaOutputDataVec[m_outputIndex].GetDataSize();

dataOutSize has a value of 0;

Can someone please help me figure out what the right
Encoder parameters are so that I can use the aforementioned AAC Decoder
parameters.

I have verified that the AAC decode parameters do work
with other sources.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hello,

You may help to provide some runable to code to have some further check? For the encoder output, what is size of the output? is it only has 2 byte, '0x1408'? This looks like audio header, anther then the real audio frame data.

Thanks,
Chao

Thanks but If figured out my answer.

Leave a Comment

Please sign in to add a comment. Not a member? Join today