- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable