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.

MPEG4_Decoder-Intigration --- help full inforamation



Hi Guys ,

This my last post because i am move to other task.

It may help when you are going to intgrate your decoders into Davince board(DM6446)

Packages used:

bios_setuplinux_5_33_03.bin
dm6446_codecs_setuplinux_2_00_00_22.bin
dvsdk_setuplinux_2_00_00_22.bin
LPTB-02.03.00.02-beta.bin
mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin
mvl_5_0_0801921_demo_sys_setuplinux.bin
TI-C6x-CGT-v6.0.21.1.bin
xdctools_setuplinux_3_10_03.bin

Note: Reference is video copy example for both dsp server and codec  to build.

Step 1 Dsp Server Side:

#cd 

/media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers

#mkdir  mpeg4

#vim makefile

Add your newly created directory into the make file.

all:

%::

        #$(MAKE) -C video_copy $@

        #$(MAKE) -C all_codecs $@

        #$(MAKE) -C all_codecs_new_config $@

        #$(MAKE) -C audio1_ires $@

        #$(MAKE) -C server_api_example $@

        $(MAKE) -C Mpeg4_Lnt_decoder $@

        $(MAKE) -c mpeg4 $@

#cd mpeg4

Copy  makefile  file from video_copy/makefile to mpeg4/makefile
And change the name of video_copy to mpeg4.

Copy  package.xdc  file from  video_copy/ package.xdc   to mpeg4/ package.xdc 
And change the name of video_copy to mpeg4.

#mkdir evmDM6446

#cd evmDM6446

Copy link.cmd, main.c, makefile, video_copy.cfg, video_copy.tcf, package.xdc  form servers/video_copy/evmDM6446 / to servers/mpeg4/evmDM6446/

And make changes the video_copy to mpeg4 in all file and directory name also.

 

Step 2 Dsp codec Side:

#cd  /media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs

#mkdir mpeg4

#vim makefile

Add your directory name into the make file.

#cd mpeg4

Copy all the file form dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/video_copy/

To dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/mpeg4/

Change the name of video_copy to mpeg4  file names and inside the file also.

Main file in this directory

 Makefile
MPEG4.xdc
MPEG4.xs
package.bld
package.xdc
package.xs
 

 

 

Ø  if you want rebuild the codec engine interface please write the make file within all inter-face  like node ,vdec,ved2 ….etc.

refer the make file form /media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/node.

Ø  If you want debug the ARM-DSP side please follow these steps

Ø  home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/trace

Ø  const Attrs FULL_TRACING = {
        localTraceMask:    "*=01234567",
        localTraceFile:    "/tmp/cearmlog.txt",
        dsp0TraceMask:     "*=01234567,ti.bios=01324567",
        dsp0TraceFile:     "/tmp/cedsp0log.txt",
        dsp0BiosFile:      "/tmp/bioslog.dat",
        traceFileFlags:    "w",
        refreshPeriod:     100,
        cmdPipeFile:       "/tmp/cecmdpipe",
        cmdAliases: [ ],
    };

Ø  Now go to /home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps/video_copy/dualcpu/evmDM6446

Ø  open ceapp.cfg

Ø  edit

Ø  TraceUtil.attrs = TraceUtil.SOCRATES_TRACING; this to

Ø  TraceUtil.attrs = TraceUtil.FULL_TRACING;

Ø  Rebuild your ARM application .

Ø  Run on the board

Ø  you will get the log message of DSP , ARM ,Bios in

Ø   tmp/cearmlog.txt

Ø  "/tmp/cedsp0log.txt

Ø  tmp/bioslog.dat

http://e2e.ti.com/forums/p/9907/38806.aspx#38806 

Ø  for memory configuration edit the  all_evmDM6446.tci from

/media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers/all_codecs/ all_evmDM6446.tci

 

 

 

Step 3 ARM Side:

#cd /media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps

#mkdir mpeg4

#cd mpeg4

#mkdir dualcpu

#cd dualcpu

#cd dualcpu

Copy all the files and directories form

/media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps/video_copy/dualcpu

/media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps/mpeg4/dualcpu

#cd evmDM6446

#vim ceapp.cfg

Edit  this file like:

var myEngine = Engine.createFromServer(

    "mpeg4",        // Engine name (as referred to in the C app)

    "./mpeg4.x64P", // path to server exe, relative to its package dir

    "ti.sdo.ce.examples.servers.mpeg4.evmDM6446" // server package

);

And edit the necessary file form video_copy to mpeg4.

 

Step 4 : Integration mpeg4 codec into demo

Codec side:

Procedure to make our mpeg4 library integration into decodeCombo.x64P.

decodeCombo.x64P contains all the decode/encode library.

copy your mpeg4 codec directory form

/media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/ mpeg4

To

/media/hda2/home/mahesh/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/

 

#vim  makefile

Edit the

EXAMPLES_ROOTDIR := /media/hda2/home/mahesh/dvsdk_2_00_00_22/codec_engine_2_23_01/examples

#vim  package,xdc

Edit:

package ti.sdo.codecs.mpeg4 [1, 0, 0] {

    module MPEG4;

}

#gmake clean

#gmake

Now your mpeg4 codec library is part of  decodeCombo.x64P.

ARM side:

#cd  dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai/

#make clean

#make dm6446_al

 

#cd /media/hda2/home/mahesh/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/dm6446/decode

#vim Makefile

Edit:

XDC_PATH =

$(USER_XDC_PATH);../../packages;$(DMAI_INSTALL_DIR)/packages;$(CE_INSTALL_DIR)/packages;$(FC_INSTALL_DIR)/packages;$(LINK_INSTALL_DIR)/packages;$(XDAIS_INSTALL_DIR)/packages;$(CMEM_INSTALL_DIR)/packages;$(CODEC_INSTALL_DIR)/packagesi

 

 

 

I request you guys if you are  taking help from forum pls share your exp back to forum. 

Thank you.

Mahesh V Kalmeshwar