Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

AAC Encoder parameters needed

bitsmaker
Beginner
801 Views

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.

0 Kudos
2 Replies
Chao_Y_Intel
Moderator
801 Views

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

0 Kudos
bitsmaker
Beginner
801 Views
Thanks but If figured out my answer.
0 Kudos
Reply