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.

DM6327 MPEG2 decoder?

Other Parts Discussed in Thread: CCSTUDIO

Just purchased a DM6437 Digital Development Platform board from the TI eStore.

It comes with H264, MPEG4 and G711 encoders and decoders?

We require MPEG2 decoding. Most of the media we use is MPEG2 video.

Where can I obtain the necessary decoder to operate on the DM6437?

Ideally, I just want something I can drop in and send 13818-2 video to it.

  • Hi,

    You can request the C64x+ video codecs from here. MPEG2 decoder should be included.

    http://focus.ti.com/docs/toolsw/folders/print/c64xpluscodecs.html

    Thanks

    Cesar

  • Thanks.

    Downloaded c64xplus_mpeg2dec_02_00_02_00_production and installed where it goes to program files area. Then had to copy the codecs directory to under that required within the dvsdk_1_01_00_15\codecs_1_10 area.

    When I alter the CFG file and add the following:

    var MPEG2DEC = xdc.useModule('ti.sdo.codecs.mpeg2dec.ce.MPEG2DEC');

    and ...

    {name: "mpeg2dec", mod: MPEG2DEC, groupId:0, local: true},

    so the file section is ...

    /* get various codec modules; i.e., implementation of codecs */
    var H264DEC  = xdc.useModule('ti.sdo.codecs.h264dec.ce.H264DEC');
    var MPEG4DEC = xdc.useModule('ti.sdo.codecs.mpeg4dec.ce.MPEG4DEC');
    var MPEG2DEC = xdc.useModule('ti.sdo.codecs.mpeg2dec.ce.MPEG2DEC');

    /*
     *  ======== Engine Configuration ========
     */

    var Engine = xdc.useModule('ti.sdo.ce.Engine');
    var vcr = Engine.create("encdec", [
      {name: "h264dec",  mod: H264DEC,  groupId:0, local: true},
      {name: "mpeg4dec", mod: MPEG4DEC, groupId:0, local: true},
      {name: "mpeg2dec", mod: MPEG2DEC, groupId:0, local: true},             
    ]);

    When I attempt to build everything I get the following early on:

    making package.mak (because of package.bld) ...
    generating interfaces for package xdcconfig (because package/package.xdc.xml is older than package.xdc) ...
    configuring DM6437_VideoDecoder.x64P from package/cfg/DM6437_VideoDecoder_x64P.cfg ...
    "ti/sdo/codecs/mpeg2dec/ce/MPEG2DEC.xdc", line 17:  can't resolve name (ti.sdo.ce.video2.IVIDDEC2)
    gmake.exe: *** [package/cfg/DM6437_VideoDecoder_x64P.c] Error 1

    Documentation for the MPEG2 codec says that it is XDM 1.0 with IVIDDEC2 interface.

    I'm guessing that the DVSDK that comes with the DM6437 has the earlier IVIDDEC interface and is, therefore, incompatible.

    What do you recommend? Can I get an MPEG2 codec to work with my DVSDK or do I need to update the DVSDK (and everything underneath)

    FYI, the DM6437 dvsdk_1_01_00_15 has subdirectories (with version numbers) biosutils_1_00_02, codec_engine_1_20_02, dm6437_demo_1_30_00, dvtb_1_14, framework_components_1_20_03, ndk_1_92_00_22_eval, psp_1_00_02_00, xdias_5_21, xdc_2_95_02.

     

    Where can I get an earlier MPEG2 decoder (if appropriate) or upgrade the DVSDK (if appropriate)?

     

  • I have got a bit further by looking at the MPEG2 codec description document and downloading the Codec Engine (CE) and Framework Components (FC) it requires.

    I have downloaded CE 2.00.01 and FC 2.20 for the MPEG2 codec labelled as 02.00.02.00.

    I also altered the paths file that xdcpaths.dat looks at and altered the project file paths to correct codec engine packages directory includes.

    When I rebuild all I get the following:


    [DM6437_VideoDecoder.cfg] "C:\dvsdk_1_01_00_15\xdc_2_95_02\xs.exe" xdc.tools.configuro.ccs  --xdcpathsfile="xdcpaths.dat" -pti.platforms.evmDM6437 --tcf -t ti.targets.C64P -c "C:/CCStudio_v3.3/C6000/cgtools" --bios "C:/CCStudio_v3.3/bios_5_33_06" -o "xdcconfig" DM6437_VideoDecoder.cfg

    Info: running XDC configuration using package path:
    C:\dvsdk_1_01_00_15\codec_engine_2_00_01\packages
    C:\dvsdk_1_01_00_15\codec_engine_2_00_01\examples
    C:\dvsdk_1_01_00_15\framework_components_2_20\packages
    C:\dvsdk_1_01_00_15\xdais_5_21\packages
    C:\dvsdk_1_01_00_15\codecs_1_10\packages
    C:\dvsdk_1_01_00_15\ndk_1_92_00_22_eval\packages
    C:\dvsdk_1_01_00_15\biosutils_1_00_02\packages
    C:\CCStudio_v3.3\bios_5_33_06\packages
    C:\dvsdk_1_01_00_15\xdc_2_95_02\packages


    The configuration step is now running:

    configuring DM6437_VideoDecoder.x64P from package/cfg/DM6437_VideoDecoder_x64P.cfg ...
    ti.sdo.ce.osal.close() ...
    ti.sdo.ce.osal.validate() ...
    warning: xdc.cfg.Program: "C:/dvsdk_1_01_00_15/xdc_2_95_02/packages/xdc/runtime/package.xs", line 57: xdc.cfg.Program : assignment to Program.system is deprecated
    js: "C:/dvsdk_1_01_00_15/framework_components_2_20/packages/ti/sdo/fc/dman3/package.xs", line 18: exception from uncaught JavaScript throw: TypeError: Cannot find function findSuffix. (C:/dvsdk_1_01_00_15/framework_components_2_20/packages/ti/sdo/fc/dman3/package.xs#18)
        "C:/dvsdk_1_01_00_15/xdc_2_95_02/packages/xdc/cfg/Main.xs", line 266
        "C:/dvsdk_1_01_00_15/xdc_2_95_02/packages/xdc/cfg/Main.xs", line 154
        "C:/dvsdk_1_01_00_15/xdc_2_95_02/packages/xdc/xs.js", line 137
    xdc_2_95_02\gmake.exe: *** [package/cfg/DM6437_VideoDecoder_x64P.c] Error 1
    xdc_2_95_02\gmake.exe: *** [package/cfg/DM6437_VideoDecoder_x64P.c] Deleting file `package/cfg/DM6437_VideoDecoder_x64Pcfg.cmd'
    xdc_2_95_02\gmake.exe: *** [package/cfg/DM6437_VideoDecoder_x64P.c] Deleting file `package/cfg/DM6437_VideoDecoder_x64Pcfg_c.c'
    xdc_2_95_02\gmake.exe: *** [package/cfg/DM6437_VideoDecoder_x64P.c] Deleting file `package/cfg/DM6437_VideoDecoder_x64Pcfg.s62'

    *************************
    Configuration step failed.
    *************************

    Looks like something is at the wrong version or missing? It looks like it is looking for a JS findSuffix function?

    Note that altthough I have a codecs_1_10 directory the MPEG2 decoder has been placed there and the older MPEG4 / H264 have been removed from the CFG file.

  • Next I download XDC 3.05 and try again and get the following:

    [DM6437_VideoDecoder.cfg] "C:\xdc_3_05\xs.exe" xdc.tools.configuro.ccs  --xdcpathsfile="xdcpaths.dat" -tti.targets.C64P -pti.platforms.evmDM6437 --tcf -Dconfig.importPath="." -c "C:/CCStudio_v3.3/C6000/cgtools" --xp "C:/CCStudio_v3.3/bios_5_33_06/packages" -o "xdcconfig" DM6437_VideoDecoder.cfg

    Info: running XDC configuration using package path:
    C:\dvsdk_1_01_00_15\codec_engine_2_00_01\packages
    C:\dvsdk_1_01_00_15\codec_engine_2_00_01\examples
    C:\dvsdk_1_01_00_15\framework_components_2_20\packages
    C:\dvsdk_1_01_00_15\codec_engine_2_00_01\cetools\packages
    C:\dvsdk_1_01_00_15\codecs_1_10\packages
    C:\dvsdk_1_01_00_15\ndk_1_92_00_22_eval\packages
    C:\dvsdk_1_01_00_15\biosutils_1_00_02\packages
    C:\CCStudio_v3.3\bios_5_33_06\packages
    C:\xdc_3_05\packages


    The configuration step is now running:

    making package.mak (because of package.bld) ...
    generating interfaces for package xdcconfig (because package/package.xdc.xml is older than package.xdc) ...
    gmake.exe: *** No rule to make target `package/.vers_g101', needed by `.interfaces'.  Stop.

    Found the .vers_g101 many places in the DVSDK that came with the DM6437. However, could not find it in the c:\xdc_3_05 where XDC 3.05 installs itself.

    Not sure where to go from here?

     

    This all seems far too complicated!