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.

How to create MPEG-2 AAC-LC Stream on C674x

Hi all,

I am using a DM8168 board with EZSDK 5.05.02.00.

The Datasheet for the AAC LC Encoder C674x says:

"ISO/IEC 14496-3 (MPEG 4 AAC LC) and ISO/IEC 13818-7 (MPEG 2-AAC LC) standards compliant"

so, it seems that the codec supports MPEG-4 and MPEG-2 standards. I am able to configure the AAC enconder for MPEG-4 using OMX_AUDIO_AACStreamFormatMP4ADTS as the AAC stream format. But when I tried to configure it for MPEG-2 using OMX_AUDIO_AACStreamFormatMP2ADTS, I got an error. How can I configured the AAC Encoder for MPEG-2?

Thanks in advance,

Eugenia Guzman

  • Hi Guzman,

    If you have ezsdk overlay source code, you can replace from

    params->aot = IMP4AACENC_AOT_LC;

    to

    params->aot = IMP4AACENC_AOT_MP2_LC;

    This should generate MPEG2 streams.

    you can modify GetParams in omx_aenc.c to respect this from iLClient.

    OMX_AUDIO_AACStreamFormatMP4ADTS configures only stream header to ADTS and not profile.

    Ram

  • Hi Ram,

    I have the ezsdk overlay source code. I made the change but the resultant file doesn't have audio. I am using the following version of the AAC encoder:

    c674x_aaclcenc_01_00_01_00_elf


     I checked the AAC_LC_Encoder_C674x_UserGuide.pdf and it says that this encoder only has the following options for the Audio Object Type:

    -AACENC_OBJ_TYP_LC
    -AACENC_OBJ_TYP_HEAAC: not supported in this version of the AAC Encoder
    -AACENC_OBJ_TYP_PS: not supported in this version of the AAC Encoder

    it doesn't mention the support for the MPEG2 LC.

    Do you know if it is really supported? Is there another version of the encoder that supports MPEG2?

    Thanks,

    Eugenia Guzman