Hi guys,
I am blocked on making h264 codec server(loopbackCombo) for DVSDK1.3 for couple of weeks. We are using H264 codec(loopbackCombo) for our demo product which comes from the dm6446 EVM board CDs. As we wanted production version of H264 codec and we got DM644XBB01P_v1.3.exe file by requesting TI.This file contains h264venc_ti.l64P, h264vdec_ti.l64P and other codecs.I have set up dvsdk1.3 build environment and compiled the example codec engine and server on the following directory.
$cd dvsdk_1_30_01_41/codec_engine_2_00_01/examples/ti/sdo/ce/examples/codecs
$make clean; make;
$cd dvsdk_1_30_01_41/codec_engine_2_00_01/examples/ti/sdo/ce/examples/servers/video_copy
$make clean; make;
So, I don't have any problem on make video_copy example codec server (*.x64P) in DVSDK1.3. But the problem I faced to build h264 codec server.I took the loopback server codec which comes with dvsdk1.3. (dvsdk_1_30_01_41/dm6446_dvsdk_combos_1_35/packages/ti/sdo/servers/loopback). I found that it does not have any Makefile to build the server. Then I used the make file from video_copy example and did some minor change. Here is my output error:
console output
============
manjur@manjur-desktop:~/dvsdk_1_30_01_41/codec_engine_2_00_01/examples/ti/sdo/ce/examples/servers/loopback$ make clean; make
rm -rf loopback.x64P ti_sdo_ce_examples_servers_loopback.tar *.obj package package.* loopback
XDCPATH="/home/manjur/dvsdk_1_30_01_41/codec_engine_2_00_01/examples/ti/sdo/ce/examples/servers/loopback/../../../../../..;/home/manjur/dvsdk_1_30_01_41/codec_engine_2_00_01/packages;/home/manjur/dvsdk_1_30_01_41/xdais_6_00_01/packages;/home/manjur/dvsdk_1_30_01_41/dsplink_140-05p1/packages;/home/manjur/dvsdk_1_30_01_41/cmem_2_00_01/packages;/home/manjur/dvsdk_1_30_01_41/codec_engine_2_00_01/examples/audcp;/home/manjur/dvsdk_1_30_01_41/framework_components_2_00_01/packages;/home/manjur/dvsdk_1_30_01_41/biosutils_1_00_02/packages;/home/manjur/dvsdk_1_30_01_41/bios_5_31_08/packages" /home/manjur/dvsdk_1_30_01_41/xdc_3_00_04/xs xdc.tools.configuro -c ~/dvsdk_1_30_01_41/TI_CGT_C6000_6.0.16 -o loopback \
-t ti.targets.C64P -p ti.platforms.evmDM6446 \
--tcf loopback.cfg
making package.mak (because of package.bld) ...
generating interfaces for package loopback (because package/package.xdc.xml is older than package.xdc) ...
configuring loopback.x64P from package/cfg/loopback_x64P.cfg ...
ti.sdo.ce.bioslog.init() ...
js: "..cfg", line 21: exception from uncaught JavaScript throw: TypeError: Cannot read property "profile" from undefined (..cfg#21)
"/home/manjur/dvsdk_1_30_01_41/xdc_3_00_04/include/utils.tci", line 588
"/home/manjur/dvsdk_1_30_01_41/xdc_3_00_04/include/utils.tci", line 506
"./package/cfg/loopback_x64P.cfg", line 642
"./package/cfg/loopback_x64P.cfg", line 603
"/home/manjur/dvsdk_1_30_01_41/xdc_3_00_04/packages/xdc/cfg/Main.xs", line 188
"/home/manjur/dvsdk_1_30_01_41/xdc_3_00_04/packages/xdc/cfg/Main.xs", line 154
"/home/manjur/dvsdk_1_30_01_41/xdc_3_00_04/packages/xdc/xs.js", line 144
gmake: *** [package/cfg/loopback_x64P.c] Error 1
gmake: *** [package/cfg/loopback_x64P.c] Deleting file `package/cfg/loopback_x64Pcfg.cmd'
gmake: *** [package/cfg/loopback_x64P.c] Deleting file `package/cfg/loopback_x64Pcfg_c.c'
gmake: *** [package/cfg/loopback_x64P.c] Deleting file `package/cfg/loopback_x64Pcfg.s62'
make: *** [loopback] Error 2
From the output it looks like the build process was failed because it did not to find profile from loopback.cfg file. Here is the fragment of cfg file:
var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
var H264DEC = xdc.useModule('ti.sdo.codecs.h264dec.ce.H264DEC');
if (prog.build.cfgArgs.profile == "eval") { <================================= This is line #21 where it failed.
/* This server is for evaluation, so use the watermarked versions */
print("Configuring server to use watermarked codecs...");
H264ENC.alg.watermark = true;
H264DEC.alg.watermark = true;
}
else
{
/* This server is for production, so use the actual versions */
print("Configuring server to use original codecs...");
H264ENC.alg.watermark = false;
H264DEC.alg.watermark = false;
}
I also managed to build the loopbackCombo for DVSDK2.0. But it does not help us because we are using dvsdk1.3 for our project release.
I will appreciate any sort of help regarding this problem for DVSDK1.3.