Hello,
I have some problems getting my H.264 encoder application running on a DM365 EVM.
I am using the DVSDK 3.10.00.12.
I am able to create a codec successfully, but when I call VIDENC1_process the function returns with -1. Switching CE_DEBUG to 2 I can see the following output:
@3,284,386us: [+0 T:0x41e18460] CE - Engine_open> Enter('encode', 0x0, 0x41e17c34)
@3,284,678us: [+0 T:0x41e18460] CE - Engine_open> return(3097320)
@3,285,138us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> Enter (engine=0x2f42e8, name='h264enc', params=0x2f4a5c)
@3,285,409us: [+0 T:0x41e18460] CV - VISA_create(0x2f42e8, 'h264enc', 0x2f4a5c, 0x520, 'ti.sdo.ce.video1.IVIDENC1')
@3,285,617us: [+0 T:0x41e18460] CV - VISA_create2(0x2f42e8, 'h264enc', 0x2f4a5c, 0x30, 0x520, 'ti.sdo.ce.video1.IVIDENC1')
@3,285,958us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_create> Enter (fxns=0x2c56d0, idma3Fxns=0x0, iresFxns=0x2c575c, params=0x2f4a5c, attrs=0x41e17ad4)
@3,286,213us: [+0 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Enter (scratchId=1, fxns=0x2c56d0, parentAlg=0x0, params=0x2f4a5c)
@3,286,486us: [+2 T:0x41e18460] ti.sdo.ce.alg - ALG_create> algNumAlloc 12 memory recs
@3,286,890us: [+2 T:0x41e18460] ti.sdo.ce.alg - ALG_create> algAlloc returned numRecs=12
@3,287,101us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[0]: size=0x540, align=0x80, space=0x0, attrs=0x1
@3,287,302us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[1]: size=0x1248, align=0x80, space=0x0, attrs=0x0
@3,287,493us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[2]: size=0x1248, align=0x80, space=0x11, attrs=0x1
@3,287,677us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[3]: size=0x5000, align=0x80, space=0x11, attrs=0x0
@3,287,860us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[4]: size=0x800, align=0x80, space=0x11, attrs=0x1
@3,288,047us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[5]: size=0x112500, align=0x80, space=0x11, attrs=0x1
@3,288,237us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[6]: size=0x380, align=0x80, space=0x11, attrs=0x0
@3,288,420us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[7]: size=0xbda4, align=0x80, space=0x11, attrs=0x1
@3,288,603us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[8]: size=0xeb80, align=0x80, space=0x11, attrs=0x1
@3,288,785us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[9]: size=0xe80, align=0x80, space=0x11, attrs=0x1
@3,288,968us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[10]: size=0x3880, align=0x80, space=0x11, attrs=0x1
@3,289,145us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Memory requested memTab[11]: size=0x180, align=0x80, space=0x11, attrs=0x1
@3,289,523us: [+4 T:0x41e18460] OM - Memory_contigAlloc> CMEM_alloc(1344) = 0x4526f000.
@3,289,771us: [+4 T:0x41e18460] OM - Memory_contigAlloc> CMEM_getPhys(0x4526f000) = 0x86716000.
...
@3,659,606us: [+4 T:0x41e18460] ti.sdo.ce.alg - ALG_create> algInit returned IALG_EOK
@3,659,911us: [+0 T:0x41e18460] ti.sdo.ce.alg - ALG_create> Exit (algHandle=0x4526f000)
@3,660,458us: [+4 T:0x41e18460] OM - Memory_contigAlloc> CMEM_alloc(624) = 0x45889000.
@3,660,720us: [+4 T:0x41e18460] OM - Memory_contigAlloc> CMEM_getPhys(0x45889000) = 0x86711000.
...
@7,468,999us: [+5 T:0x41e18460] CV - VISA_create> local codec created (name='h264enc', handle=0x2f4a28)
@7,469,199us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> return (0x2f49f0)
@7,469,381us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_control> Enter (handle=0x2f49f0, id=1, dynParams=0x2f4ad4 (size=0x30), status=0x2f4b4c (size=0x9c)
@7,469,584us: [+5 T:0x41e18460] CV - VISA_enter(visa=0x2f49f0): algHandle = 0x2f4a28
@7,469,829us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x2f4a28)
@7,470,286us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit
@7,471,196us: [+5 T:0x41e18460] CV - VISA_exit(visa=0x2f49f0): algHandle = 0x2f4a28
@7,471,439us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x2f4a28)
@7,471,791us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit
@7,471,993us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_control> Exit (handle=0x2f49f0, retVal=0x0)
@7,472,185us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_control> Enter (handle=0x2f49f0, id=5, dynParams=0x2f4ad4 (size=0x30), status=0x2f4b4c (size=0x9c)
@7,472,392us: [+5 T:0x41e18460] CV - VISA_enter(visa=0x2f49f0): algHandle = 0x2f4a28
@7,472,565us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x2f4a28)
@7,804,883us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit
@7,805,122us: [+5 T:0x41e18460] CV - VISA_exit(visa=0x2f49f0): algHandle = 0x2f4a28
@7,805,305us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x2f4a28)
@7,805,592us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit
@7,805,768us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_control> Exit (handle=0x2f49f0, retVal=0x0)
@7,806,813us: [+4 T:0x41e18460] OM - Memory_contigAlloc> CMEM_alloc(460800) = 0x45b07000.
@7,807,109us: [+4 T:0x41e18460] OM - Memory_contigAlloc> CMEM_getPhys(0x45b07000) = 0x869b9000.
!!!
@7,808,876us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Enter (handle=0x2f49f0, inBufs=0x41e17a98, outBufs=0x41e17c38, inArgs=0x41e17c1c, outArgs=0x41e17b68)
@7,809,158us: [+5 T:0x41e18460] CV - VISA_enter(visa=0x2f49f0): algHandle = 0x2f4a28
@7,809,349us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x2f4a28)
@7,809,648us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit
@7,809,845us: [+5 T:0x41e18460] CV - VISA_exit(visa=0x2f49f0): algHandle = 0x2f4a28
@7,810,193us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x2f4a28)
@7,810,540us: [+0 T:0x41e18460] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit
@7,810,735us: [+0 T:0x41e18460] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Exit (handle=0x2f49f0, retVal=0xffffffff)
It looks like the call to :
retVal = fxns->process(alg, inBufs, outBufs, inArgs, outArgs);
returns with -1 -> failed.
I checked the input and output buffers but they look ok.
Any ideas about that error or any suggestions for more debug possibilities?
Thanks
Frank