When we create 6 video decoder (h264dec). we get information as bellow.
How can we fix the problem? How to change memory configuration in Linux and DSP?
Thanks & B/R,
Saige
our source code:
VIDDEC2_Params defaultParams = Vdec2_Params_DEFAULT;
VIDDEC2_DynamicParams defaultDynParams = Vdec2_DynamicParams_DEFAULT;
Vdec2_Handle hVd2 = NULL;
VIDDEC2_Params *params;
VIDDEC2_DynamicParams *dynParams;
/* Open the codec engine */
hEngine = Engine_open(envp->engineName, NULL, NULL);
if (hEngine == NULL) {
ERR("Failed to open codec engine %s\n", envp->engineName);
cleanup(THREAD_FAILURE);
}
gblSignalHandlerInstall();
/* Use supplied params if any, otherwise use defaults */
params = envp->params ? envp->params : &defaultParams;
dynParams = envp->dynParams ? envp->dynParams : &defaultDynParams;
/* Set the maximum dimensions to 1080 */
params->maxWidth = VideoStd_1080I_WIDTH;
params->maxHeight = VideoStd_1080I_HEIGHT + 8;
params->forceChromaFormat = XDM_YUV_420SP;
params->maxFrameRate = 60000;
params->maxBitRate = 30000000;
/* Create the video decoder */
hVd2 = Vdec2_create(hEngine, envp->videoDecoder, params, dynParams);
if (hVd2 == NULL) {
ERR("Failed to create video decoder: %s\n", envp->videoDecoder);
cleanup(THREAD_FAILURE);
}
message dump:
DEBUG_LEVEL=1
Decode demo started.
@0,189,561us: [+6 T:0x4001fcf0] CE - Engine_init> CE debugging on (CE_DEBUG=1; allowed CE_DEBUG levels: 1=min, 2=good, 3=max)
CreateLayout bufSize=518400
SetLayout 1
[DSP] @0x0000019e:[T:0x00000000] codec_unitserver - main> Welcome to CS2DM6467 1.00.00.10 DSP server's main().
@2,658,921us: [+6 T:0x442bf490] CE - Engine_createNode> Remote node creation FAILED (0x80008008).
@2,665,123us: [+6 T:0x44abf490] CE - Engine_createNode> Remote node creation FAILED (0x80008008).
[DSP] @0,867,971tk: [+7 T:0x8ba0006c] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algorithm creation FAILED; make sure that 1) alg params are correct/appropriate, 2) there is enough internal and external algorithm memory available -- check DSKT2 settings for heap assignments and scratch allocation
[DSP] @0,868,144tk: [+6 T:0x8ba0006c] CV - VISA_create2> FAILED to create local codec.
[DSP] @0,885,331tk: [+7 T:0x8ba0006c] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algorithm creation FAILED; make sure that 1) alg params are correct/appropriate, 2) there is enough internal and external algorithm memory available -- check DSKT2 settings for heap assignments and scratch allocation
[DSP] @0,885,487tk: [+6 T:0x8ba0006c] CV - VISA_create2> FAILED to create local codec.
@2,667,253us: [+6 T:0x442bf490] CV - VISA_create2> FAILED to create remote codec (0x8).
@2,667,437us: [+7 T:0x442bf490] ti.sdo.dmai - [Vdec2] Failed to open video decode algorithm
Error: Failed to create video decoder: h264dec
@2,669,003us: [+6 T:0x44abf490] CV - VISA_create2> FAILED to create remote codec (0x8).
@2,669,270us: [+7 T:0x44abf490] ti.sdo.dmai - [Vdec2] Failed to open video decode algorithm
Error: Failed to create video decoder: h264dec
Error: Failed to init source