- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page