Dear all,
I am now working on one project, and in my case, I would like to use two codec engine in one program.
My program is based on the encode example provided by DVSDK.
The original example uses one codec engine named demoEngine, and I would like to use another codec engine because I have other things to do in DSP besides the original encode job.
I had no idea how to add another engine in my program, so I tried to modify the *.cfg file first, but it didn't work.
The following is the modified *.cfg file, is there anything wrong?
The red lines indicate the modified part.
/* Load support for the Codec Engine */
var osalGlobal = xdc.useModule( 'ti.sdo.ce.osal.Global' );
/* Configure CE to use it's DSP Link Linux version */
osalGlobal.runtimeEnv = osalGlobal.DSPLINK_LINUX;
/* Enable SoCrates tracing in the demo */
var TraceUtil = xdc.useModule('ti.sdo.ce.utils.trace.TraceUtil');
TraceUtil.attrs = TraceUtil.SOCRATES_TRACING;
/* Load support for the encoders */
var G711ENC = xdc.useModule('ti.sdo.codecs.g711enc.ce.G711ENC');
var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
var audioCopy = xdc.useModule('audcp_codec.AUDCP');
/*
* ======== Engine Configuration ========
*/
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var demoEngine = Engine.create("encode", [
{name: "h264enc", mod: H264ENC, local: false},
{name: "g711enc", mod: G711ENC, local: false},
{name: "mpeg4enc", mod: MPEG4ENC, local: false},
]);
var myEngine = Engine.create("audcp_engine", [
{name: "audcp", mod: audioCopy, local: false},
]);
/* Remote server image */
demoEngine.server = "./encodeCombo.x64P";
myEngine.server = "./audcpServer.x64P";
Program.main = Program.system =null;
It is obvious that I just add some same lines to open the second codec engine.
The compile work finished successful.
However, the following error message appear when I ran the program.
CEapp-> ERROR: can't open engine audcp_engine.
Which meant that the codec engine I added couldn't be opened.
Can anyone help?