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 use mp3 voice codec bundle into DM365 demo encode?



Hi,

 

   I run the DM365 demo encode and find that the bits per second arrived 64k/s(G.711).

If I want use other voice codec to make the stream is fewer.

What should I do?

Could you give me some support?

Thanks a lot.

Regards,

Weidong.Shi

  • Hi,
     
     I was able to compile the codecs and run the demo applications. You need to read the installation instructions IA-AACLC-Enc-ARM9E-BP.PDF and modify the makefile.prod in and user.bld to work with the DVSDK.
     
     I had problems integrating the engine into the DVDSK for my application. Let me know if you have any luck with this. Here are copies of my makefile.prod and user.bld.

     

    I hope you find this useful,

     
     Shlomo
     ---------------------------
     makefile.prod
     
     #/****************************************************************************/
     #/*                                                                          */
     #/*                  ITTIAM SYSTEMS PVT LTD, BANGALORE                       */
     #/*                         COPYRIGHT(C) 2008                                */
     #/*                                                                          */
     #/* This program is proprietary to Ittiam Systems Pvt. Ltd. and is protected */
     #/* under Indian Copyright Act as an unpublished work.Its use and disclosure */
     #/* is  limited by  the terms and conditions of a license  agreement. It may */
     #/* be copied or  otherwise reproduced or  disclosed  to persons outside the */
     #/* licensee 's  organization  except  in  accordance  with  the  terms  and */
     #/* conditions of  such an agreement. All  copies and reproductions shall be */
     #/* the  property  of Ittiam Systems Pvt.  Ltd. and  must  bear  this notice */
     #/* in its entirety.                                                         */
     #/*                                                                          */
     #/****************************************************************************/
     
     #
     #  ======== Makefile ========
     #
     
     # Set location of various tools
     
     DVEVM_INSTALL_DIR = /home/shlomo/davinci/dvsdk_2_10_01_18
     
     XDC_INSTALL_DIR = $(DVEVM_INSTALL_DIR)/xdctools_3_15_01_59
     
     CE_INSTALL_DIR = $(DVEVM_INSTALL_DIR)/codec_engine_2_24
     
     XDAIS_INSTALL_DIR = $(DVEVM_INSTALL_DIR)/xdais_6_24
     
     CMEM_INSTALL_DIR = $(DVEVM_INSTALL_DIR)/linuxutils_2_24_02
     
     FC_INSTALL_DIR = $(DVEVM_INSTALL_DIR)/framework_components_2_24
     
     # set the location for package directory which contains the codec and server xdc packages
     PACKAGE_DIR  = packages-production
     
     # Set location of xdc executable
     XDC = $(XDC_INSTALL_DIR)/xdc
     
     # Set XDCPATH to contain necessary repositories.
     XDCPATH = $(CURDIR);$(CE_INSTALL_DIR)/packages;$(CE_INSTALL_DIR)/cetools/packages;$(XDAIS_INSTALL_DIR)/packages;$(CMEM_INSTALL_DIR)/packages;$(FC_INSTALL_DIR)/packages
     
     # How many concurrent build threads (i.e. jobs) do you want to allow to run
     JOBS=1
     
     
     # Conditionally, you can create verbose build output
     XDCOPTIONS=v
     
     # Select the combo build type , either eval(evaluation) or prod( Production)
     XDCARGS="prod"
     
     
     
     export XDCOPTIONS
     export XDCPATH
     export XDCARGS
     
     ########################################################
     ## Shouldn't have to modify anything be low this line ##
     ########################################################
     
     all: .all-packages
     
     # This recursively locates all packages in the PACKAGE_DIR directory, builds
     # and releases them
     .all-packages:
         $(XDC) --jobs=$(JOBS) -PR $(PACKAGE_DIR)/ittiam/extensions
         $(XDC) --jobs=$(JOBS) -PR $(PACKAGE_DIR)/ittiam/codecs
         $(XDC) --jobs=$(JOBS) -PR $(PACKAGE_DIR)/ittiam/app
         cp -f $(PACKAGE_DIR)/ittiam/app/aaclc_enc_app/aaclc_enc_app.x470MV $(PACKAGE_DIR)/ittiam/app/aaclc_enc_app/test/
     
     # This recursively cleans all packages in the PACKAGE_DIR directory
     clean: clean-packages
     
     clean-packages:
         $(XDC) clean --jobs=$(JOBS) -PR $(PACKAGE_DIR)
         rm -rf $(PACKAGE_DIR)/ittiam/*/*/package/
         rm -rf $(PACKAGE_DIR)/ittiam/codecs/*/ce/package/
         rm -f $(PACKAGE_DIR)/ittiam/*/*/.xdcenv.mak
         rm -f $(PACKAGE_DIR)/ittiam/codecs/*/ce/.xdcenv.mak
     
     clean_obj:   
         rm -rf $(PACKAGE_DIR)/ittiam/app/*/package/
         rm -rf $(PACKAGE_DIR)/ittiam/codecs/*/package/*/
         rm -rf $(PACKAGE_DIR)/ittiam/codecs/*/ce/package/*/
         rm -rf $(PACKAGE_DIR)/ittiam/extensions/audio1/package/*/   
         rm -f $(PACKAGE_DIR)/ittiam/*/*/.???*
         rm -f $(PACKAGE_DIR)/ittiam/codecs/*/ce/.???*
         rm -f $(PACKAGE_DIR)/ittiam/*/*/*.mak
         rm -f $(PACKAGE_DIR)/ittiam/codecs/*/ce/*.mak
     
     install:
         sudo cp -av packages-production/ittiam/app/aaclc_enc_app/aaclc_enc_app.x470MV ~/davinci/filesys/root/
     
     -----------
     user.bld
     
     /*****************************************************************************/
     /*                                                                           */
     /*                   ITTIAM SYSTEMS PVT LTD, BANGALORE                       */
     /*                          COPYRIGHT(C) 2008                                */
     /*                                                                           */
     /*  This program is proprietary to Ittiam Systems Pvt. Ltd. and is protected */
     /*  under Indian Copyright Act as an unpublished work.Its use and disclosure */
     /*  is  limited by  the terms and conditions of a license  agreement. It may */
     /*  be copied or  otherwise reproduced or  disclosed  to persons outside the */
     /*  licensee 's  organization  except  in  accordance  with  the  terms  and */
     /*  conditions of  such an agreement. All  copies and reproductions shall be */
     /*  the  property  of Ittiam Systems Pvt.  Ltd. and  must  bear  this notice */
     /*  in its entirety.                                                         */
     /*                                                                           */
     /*****************************************************************************/
     
     /*
      *  ======== user.bld ========
      * User note: YOU MUST MODIFY THIS FILE TO SPECIFY THE COMPILER TOOL PATHS.
      *
      * Edit this file to specify compiler toolchain paths, and any custom
      * compiler/linker options.
      */
     
     /* ARM side Target */
     var MVArm9 = xdc.useModule("gnu.targets.MVArm9");
     
     /* ARMTarget Platform */
     MVArm9.platform = "ti.platforms.evmDM365";
     
     /* location of your  ARMTarget tools */
     MVArm9.rootDir = "/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le";
     
     
     /*
      *  ======== Build.targets ========
      * list of targets (ISAs + compilers) to build for
      */
     Build.targets = [
         MVArm9,
     ];

  • Hi!

    Thank you for your support.

    I compiled the codecs and run the demo in DM365 before.

    But I don't  know how to  integrate the engine into the DVDSK for my application(encode in DEMO in DVSDK).

    Another question,

    As far as known,the mp3 codecs is work in ARM CPU.

    If integrate into DVSDK in demo ,the encode appliction(H.264 encode and mp3 encode) maybe not realtime.

     

    Regards,

    Weidong.Shi