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.

DaVinci add aac codec

Hello everyone!

          I want to add aac codec to dvsdk_3_10_00_19 ,and i find an example url:http://processors.wiki.ti.com/index.php/DM365_Audio_Codecs_Integration_with_DVSDK_2.10.01.18_Demos.

         but i am failed.the dm365 and dm6467 are different .the files and the location of  files are different too.

         what should i do when i want to add  the aac codec to dvsdk_3_00_10_19?

          Thank you very much!

          Regards

  • Hi,

    I understand that you are trying to use AAC codec with DM6467. Is this correct?

    The DM365 wiki topic you mentioned describes how to integrate an ARM audio codecs on DM365. These codecs can not be used on DM6467.

    On DM6467 you should use a DSP C64x codec.

    The AAC codecs can be downloaded from here

    http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Audio/index_FDS.html

    After downloading the codec you will need to integrate it in the codec server.

    Please read this wiki topic on how to do that:

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

    Thanks

    Cesar

     

     

  • Hi,

    Yes,i want to use AAC codec with DM6467.and i have downloaded codec from http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Audio/index_FDS.html  and the codec is dm6446_aacheenc_1_20_005_production . 

    I have readed the wiki http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK   and  modifi  the files.after i make codecs  ,it was failed .and the message is:

    package.mak :17  *** target pattern cotains no '%'.Stop.

    gmake:*** [package/ti/sdo/codecs/aacheenc,.interfaces] Error 2

    make[1]: *** [.all-packages] Error 2

    make[1]: Leaving directory   '/home/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10'

    make : *** [codecs] Error 2

     

    sometimes  the error message is :

    building  for  target C64P ...

    js: "/home/work/dvsdk/dvsdk_3_10_00_19/xdctools_3_16_01_27/packages/ti/targets/ITarget.xs",line  172:Error:  /home/work/dvsdk/dvsdk_3_10_00_19/cgt6x_6_1_12 cannot be found .  Ensure  that rootDir  for the C64P  target is set correctly in /home/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/cofig.bld

    gmake[1]:*** Deleting file  'package.mak'

    who knows  what should i do now?

    Thank you very much!

     

  • Any luck compiling the AAC encoders?  I am having a similar issue.

    The codec server fails to load, with the following runtime error:

    @1,264,857us: [+7 T:0x40afe490] OP - Processor_create_d> Loading and starting DSP server 'cs.x64P' FAILED, status=[0x80008013] (look for error code 'DSP_EBASE + 0x13' in dsplink*/packages/dsplink/gpp/inc/usr/errbase.h) This error code typically indicates a problem with the DSP memory map, i.e. it is different from what the Arm side specified; check the DSP server's memory map in your Arm application .cfg script, and make sure you have set 'armDspLinkConfig' configuration variable correctly (for details, refer to the documentation for ti.sdo.ce.Engine.xdc). Also, verify that the DSPLINKMEM segment on the DSP is large enough. 

    This appears to be an issue related to compiling the AAC-LC codecs.  See below for warnings when they're being compiled.   I switched to the AAC-LC codecs since they are freely licenses, but haven't been able to get them compiled yet.
    Has anyone used the AAC-LC codecs successfully before?
    ------------------------------------------- aac-lc compiler warnings  ---------------------------

    warning: creating ".sysmem" section with default size of 0x400; use the -heap

       option to change the default size

    "aac_decoder.c", line 337 (approximate): warning: relocation from function

       "AACDEC_TII_Decoder" to symbol

       "$Tramp$L$PI$$$.text:__divi:rts64plus.lib<divi.obj>$0x80000000" overflowed;

       the 31-bit relocated address 0x20000078 is too large to encode in the 21-bit

       signed PC-Relative field (type = 'R_C60PCR21' (82), file =

       "/home/bschwagler/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/packages/

       ti/sdo/codecs/aaclcdec/lib/aacdec_tii.l64P<aacdec_tii.o64P>", offset =

       0x80006ce4, section = ".text:_AACDEC_TII_Decoder")

    "aac_ifft.c", line 37 (approximate): warning: relocation from function

       "AACDEC_TII_IFFT" to symbol

       "$Tramp$L$PI$$$.text:__divi:rts64plus.lib<divi.obj>$0x80000000" overflowed;

       the 31-bit relocated address 0x20000030 is too large to encode in the 21-bit

       signed PC-Relative field (type = 'R_C60PCR21' (82), file =

       "/home/bschwagler/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/packages/

       ti/sdo/codecs/aaclcdec/lib/aacdec_tii.l64P<aacdec_tii.o64P>", offset =

       0x800103f4, section = ".text:_AACDEC_TII_IFFT")

    "aac_ifft.c", line 63 (approximate): warning: relocation from function

       "AACDEC_TII_IFFT" to symbol

       "$Tramp$L$PI$$$.text:__divi:rts64plus.lib<divi.obj>$0x80000000" overflowed;

       the 31-bit relocated address 0x20000010 is too large to encode in the 21-bit

       signed PC-Relative field (type = 'R_C60PCR21' (82), file =

       "/home/bschwagler/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/packages/

       ti/sdo/codecs/aaclcdec/lib/aacdec_tii.l64P<aacdec_tii.o64P>", offset =

       0x8001046c, section = ".text:_AACDEC_TII_IFFT")

    "aac_pns.c", line 210 (approximate): warning: relocation from function

       "AACDEC_TII_GenRandVector" to symbol

       "$Tramp$L$PI$$$.text:__divi:rts64plus.lib<divi.obj>$0x80000000" overflowed;

       the 31-bit relocated address 0x20000048 is too large to encode in the 21-bit

       signed PC-Relative field (type = 'R_C60PCR21' (82), file =

       "/home/bschwagler/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/packages/

       ti/sdo/codecs/aaclcdec/lib/aacdec_tii.l64P<aacdec_tii.o64P>", offset =

       0x8000cce4, section = ".text:_AACDEC_TII_GenRandVector")

    "aac_pns.c", line 210 (approximate): warning: relocation from function

       "AACDEC_TII_GenRandVector" to symbol

       "$Tramp$L$PI$$$.text:__divi:rts64plus.lib<divi.obj>$0x80000000" overflowed;

       the 31-bit relocated address 0x20000040 is too large to encode in the 21-bit

       signed PC-Relative field (type = 'R_C60PCR21' (82), file =

       "/home/bschwagler/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/packages/

       ti/sdo/codecs/aaclcdec/lib/aacdec_tii.l64P<aacdec_tii.o64P>", offset =

       0x8000cd18, section = ".text:_AACDEC_TII_GenRandVector")

    "aac_utils.c", line 337 (approximate): warning: relocation from function

       "AACDEC_TII_Rounding" to symbol

       "$Tramp$L$PI$$$.text:__call_stub:rts64plus.lib<push.obj>$0x80000000"

       overflowed; the 31-bit relocated address 0x20000008 is too large to encode

       in the 21-bit signed PC-Relative field (type = 'R_C60PCR21' (82), file =

       "/home/bschwagler/work/dvsdk/dvsdk_3_10_00_19/cs2dm6467_1_00_00_10/packages/

       ti/sdo/codecs/aaclcdec/lib/aacdec_tii.l64P<aacdec_tii.o64P>", offset =

       0x80011680, section = ".text:_AACDEC_TII_Rounding")

     

    warning: output file "bin/cs.x64P" cannot be loaded and run on a target system

    .executables files complete: Fri Oct 28 08:50:33 PDT 2011.