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.

How can i built codec_engine? I have "algInit()" problem; (algInit call failed 573440)

Hi,

I wrote below topic to Leopard forum. But it is about codec_engine. So i wrote here too.

Hi all,

Three weeks have passed, but there is no video on my display. I need someone who can play video on Leopard dm355 board. I can start from beginning, tell me which version leopard_sdk, dvsdk and xdc_tools i have to use(I use LeopardSDK_840402, dvsdk_2_00_00_22, xdctools_3_10_05_61).

Anyway, on current system there is a problem (in fact there are a lot of problems :) ).

When i run below pipelines, got algInit() call problem

CE_DEBUG=2 DMAI_DEBUG=3 gst-launch -v filesrc location=/media/lost.mp4 ! dmaidec_mpeg4 ! TIDmaiVideoSink displayDevice=/dev/video3 displayStd=v4l2 videoStd=480P videoOutput=LCD sync=false

@1,147,369us: [+6 T:0x40f8e490] OM - Memory_contigAlloc> Warning: non-default alignment not supported for pool-based allocations, using default 0xffffffff.
@1,147,786us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_alloc(4948) = 0x40f8f000.
@1,148,080us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_getPhys(0x40f8f000) = 0x874d4000.
@1,148,431us: [+6 T:0x40f8e490] OM - Memory_contigAlloc> Warning: non-default alignment not supported for pool-based allocations, using default 0xffffffff.
@1,148,999us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_alloc(12288) = 0x40f91000.
@1,149,358us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_getPhys(0x40f91000) = 0x874d8000.
@1,149,807us: [+6 T:0x40f8e490] OM - Memory_contigAlloc> Warning: non-default alignment not supported for pool-based allocations, using default 0xffffffff.
@1,150,474us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_alloc(5760) = 0x40fa5000.
@1,150,793us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_getPhys(0x40fa5000) = 0x874d6000.
@1,151,161us: [+6 T:0x40f8e490] OM - Memory_contigAlloc> Warning: non-default alignment not supported for pool-based allocations, using default 0xffffffff.
@1,151,615us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_alloc(8192) = 0x40fa7000.
@1,151,970us: [+4 T:0x40f8e490] OM - Memory_contigAlloc> CMEM_getPhys(0x40fa7000) = 0x874ec000.
@1,154,232us: [+7 T:0x40f8e490] ti.sdo.ce.alg - ALG_create> algInit call failed 573440
@1,156,322us: [+0 T:0x40f8e490] ti.sdo.ce.alg - ALG_create> Exit (algHandle=NULL)
@1,156,616us: [+7 T:0x40f8e490] 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

What does return code(573440) mean? I couln't find it.

In proprietary/dvsdk_2_00_00/dvsdk_2_00_00_22/codec_engine2_23_01/packages/ti/sdo/ce/alg/alg_create.c file there is ALG_creat function. And error message is from here.

I checked debug messages, source code and google. I think,  problem is not about memory tables, it is about alg params. I tried to assign NULL to params variable in this function(I saw this suggestion in leopard forum) and rebuild system. But i couldn't compile alg_create.c file also  codec_engine2_23_01. How can i change and rebuild codec_engine?

In fact what can do to play video on my LCD?

 

So thanks.

Mehmet