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 LC Audio encoding (Clarification)

Platform: EZSDK 55_05_02_00, Ubuntu 11.10, DM814x

The instruction (http://processors.wiki.ti.com/index.php/OMX_AAC_LC_Encoder_Integration_in_EZSDK) is great, but I had to make minor change to:

Step 5 (Exclude 'omxbase')

   COMP_LIST_c6xdsp = memcfg domx omxcore vlpb adec aenc

Step 6 (Exclude 'aaclcdec')

   CODECS_IN_APP = aaclcenc

--------------------- Test process --------------------

1.  Audio encoding using the microphone as the audio source - successful!

2. Audio encoding using the input file

   Sample audio source: http://download.wavetlan.com/SVV/Media/HTTP/http-aac.htm (Test #7 download!)

Test a (1-ch output file) - Output file only contains white noise:
# ./audio_encode_a8host_debug.xv5T -i /media/sda1/Test7-AAC_AAC-LC_Stereo_96kbps_44100Hz-EC-WT.AAC -o /media/sda1/out/Test7.aac -c aaclc -n 1 -b 96000 -s 44100 -f ADTS

Test b (2-ch output file) - Error:
# ./audio_encode_a8host_debug.xv5T -i /media/sda1/Test7-AAC_AAC-LC_Stereo_96kbps_44100Hz-EC-WT.AAC -o /media/sda1/out/Test7-2ch.aac -c aaclc -n 2 -b 96000 -s 44100 -f ADTS

------------------------------ Questions -------------

I. Do I have to include 'omxbase' in Step 5?

II. Since the audio source is 2-channel, so encoding it using 1-channel would fail - right?

III. Is anything wrong with the input Test7 audio file? If yes, could you please provide the link to the correct audio file.


Regards,

g

  • Hello,

    Le George said:

    Step 5 (Exclude 'omxbase')

       COMP_LIST_c6xdsp = memcfg domx omxcore vlpb adec aenc

    This step completes modifications on DSP side. You should add omxbase too.

    Le George said:

    Step 6 (Exclude 'aaclcdec')

       CODECS_IN_APP = aaclcenc

    This step completes modification on A8 side (IL Client).

    How to test


    Load the DSP image by

    target # firmware_loader 0 dm81xx_c6dsp_debug.xe674 start

    The IL Client executable audio_encode_a8host_debug.xv5T is used in the following way to test AACLC Encoder -

    target # ./audio_encode_a8host_debug.xv5T -i input.pcm -o output.aac -c aaclc -n 2 -b 192000 -s 44100 -f ADTS


    AAC-LC Encoder (V01.00.01) on C674x supports:
    Supports only 16 bit PCM samples as input.
    Only Constant Bit Rate (CBR) encoding is supported

    For mono and stereo channel, input sampling frequencies from 16 KHz to 48 KHz are supported.

    Only AAC-LC output format supported.

    You could check here for more information:

    Could you follow the same steps that are described and let me know the result.


    Best Regards,
    Margarita

     
  • Margarita,

    Using a raw PCM input file, the Audio encoding is OK.

    Please provide comments for Steps 6 & 5:

    - Step 6 (omxbase excluded in Step 5), the build process reports the missing file:

    <EZSDK>/component-sources/omx_05_02_00_48/src/ti/omx/interfaces/openMaxv11/OMX_TI_Audio.h

    The enclosed zip file shows that the file does indeed exist. I need to fix the include path somehow...

    6013.AudioEncoding-Step6-BuildError.zip

    - Step 5 (aaclcdec excluded in Step 6):

    I'm not sure about the error.

    8154.AudioEncoding-Step5-BuildError.zip

    ---------------

    Step 1 (typo):

    ACLCDEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/component-sources/c674x_aaclcdec_01_41_00_00_elf

    The installed audio decoder's path is "c674x-" instead of "c674x_".

    Thank you for the quick response.

    Regards,

    g

  • Hi Margarita,


    I have followed all the steps in order to install and build the AAC-LC encoder in my Ezsdk.

    http://processors.wiki.ti.com/index.php/OMX_AAC_LC_Encoder_Integration_in_EZSDK

    The compilation was successful and while running the audio_encode_a8host_debug.xv5T application on board. It hangs at

    root@dm814x-evm:/media/card# ./audio_encode_a8host_debug.xv5T -i in.pcm -o out.aac -c aaclc -n 2 -b 192000 -s 44100 -f ADTS
    output file: Testfile.aac
    codec:  aac
    no of channnels : 2
    bitrate : 192000
    samplerate : 44100
    outputformat :ADTS

    Audio Encoder  example  
    ===============================

    and hangs.


    can you please guide me.

    Regards,

    Basavaraju Gandla

  • Hello,

    What is the software version of EZSDK that you are using here?

    Are you loaded the DSP image?

    Could you debug it and post the log?

    Best Regards,

    Margarita