This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AAC performance problems on DM365

Other Parts Discussed in Thread: TVP5158

I'm having issues encoding AAC audio on the DM365.

I'm capturing 16 KHz audio with the TVP5158. I upsample to 48Khz and pass 1024 samples (2 bytes per sample, 2 channels for 4096 bytes) to the encoder. I do not get any encoding errors. My encoded packets are streamed over RTP and eventually get decoded on a different system. I do not get any decoding errors either, but the whole encoding process (AUDENC1_process) takes ~26ms... at 48KHz you have 1024 packets available every ~21ms. Hence the profermance issue.

I ran the same test encoding video (h264 at 352x240) and found the encoding processing time to be ~3.6ms. This leads me to believe my problem is not with the HW, but rather with SW configuration. Could I be missing a configuration step?

 

Here are the configuration parameters I pass to AUDENC1_create

ITTIAM_EAACPLUSENC_Params

parms-> s_iaudenc_params.size = 112                        
parms-> s_iaudenc_params.sampleRate = 48000                
parms-> s_iaudenc_params.bitRate = 128000                  
parms-> s_iaudenc_params.channelMode = 1                   
parms-> s_iaudenc_params.dataEndianness = 2                
parms-> s_iaudenc_params.encMode = 0                       
parms-> s_iaudenc_params.inputFormat = 1                   
parms-> s_iaudenc_params.inputBitsPerSample = 16           
parms-> s_iaudenc_params.maxBitRate = 576000               
parms-> s_iaudenc_params.dualMonoMode = 0                  
parms-> s_iaudenc_params.crcFlag = 0                       
parms-> s_iaudenc_params.ancFlag = 0                       
parms-> s_iaudenc_params.lfeFlag = 0                       
parms-> noChannels = 2                                     
parms-> aacClassic = 1                                     
parms-> psEnable = 0                                       
parms-> dualMono = 0                                       
parms-> downmix = 0                                        
parms-> useSpeechConfig = 0                                
parms-> fNoStereoPreprocessing = 0                         
parms-> invQuant = 2                                       
parms-> useTns = 0                                         
parms-> use_ADTS = 1                                       
parms-> use_ADIF = 0                                       
parms-> full_bandwidth = 0                                 
parms-> i_channels_mask = 0                                
parms-> i_num_coupling_chan = 0                            
parms-> write_program_config_element = 0