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.

VIDENC1_process failing on Beagleboard running Arago



Hi All, I managed to solve many issues while trying to create an h264 encoder on beagleboard running Arago and finally reached at this stage. Now the VIDENC1_process is failing with return status -1 and extended error 0x14. I referred to h264enc userguide in my dvsdk 4.0 and I couldn't figure out the reason. For a single frame I have allocated 256*1024 buffer. Can anyone tell me the possible causes of this error? Below is the debug output relevant part. Message - encodeVideoBuffer: Parameter check complete. Input buffer size is 38400 Message - encodeVideoBuffer: Out buffer size is set as 262144 @1,146,124us: [+0 T:0x40020130 S:0xbefd58f4] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Enter (handle=0x2f990, inBufs=0xbefd5a34, outBufs=0xbefd5a28, inArgs=0xbefd5a18, outArgs=0xbefd59a0) @1,146,185us: [+4 T:0x40020130 S:0xbefd5874] CV - VISA_getMaxMsgSize(0x2f990): returning 0x1000 @1,146,216us: [+5 T:0x40020130 S:0xbefd587c] CV - VISA_allocMsg> Allocating message for messageId=0x00020806 @1,146,277us: [+0 T:0x40020130 S:0xbefd584c] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x414d2000, size=38400) @1,146,338us: [+1 T:0x40020130 S:0xbefd584c] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x414d2000, size=38400) @1,146,368us: [+1 T:0x40020130 S:0xbefd584c] OM - Memory__getPhysicalAddress> found in cb(Sc=0x414d2000, Ec=0x41512000, Ss=0x414d2000, Es=0x414db600, PSc=0x83741000) @1,146,399us: [+1 T:0x40020130 S:0xbefd584c] OM - Memory__getPhysicalAddress> returning physAddr=0x83741000 @1,146,429us: [+0 T:0x40020130 S:0xbefd584c] OM - Memory_getBufferPhysicalAddress> return (0x83741000) @1,146,460us: [+0 T:0x40020130 S:0xbefd584c] OM - Memory_getBufferPhysicalAddress> Enter(virtAddr=0x41491000, size=262144) @1,146,490us: [+1 T:0x40020130 S:0xbefd584c] OM - Memory__getPhysicalAddress> Enter(virtAddr=0x41491000, size=262144) @1,146,521us: [+1 T:0x40020130 S:0xbefd584c] OM - Memory__getPhysicalAddress> found in cb(Sc=0x41491000, Ec=0x414d1000, Ss=0x41491000, Es=0x414d1000, PSc=0x83700000) @1,146,551us: [+1 T:0x40020130 S:0xbefd584c] OM - Memory__getPhysicalAddress> returning physAddr=0x83700000 @1,146,582us: [+0 T:0x40020130 S:0xbefd584c] OM - Memory_getBufferPhysicalAddress> return (0x83700000) @1,146,612us: [+0 T:0x40020130 S:0xbefd5894] CV - VISA_call(visa=0x2f990, msg=0x41421880): messageId=0x00020806, command=0x0 @1,146,643us: [+0 T:0x40020130 S:0xbefd585c] OC - Comm_put> Enter(queue=0x2, msg=0x41421880) @1,146,704us: [+0 T:0x40020130 S:0xbefd585c] OC - Comm_put> return (0) @1,146,734us: [+0 T:0x40020130 S:0xbefd5854] OC - Comm_get> Enter(queue=0x10001, msg=0xbefd590c, timeout=-1) @1,163,489us: [+0 T:0x40020130 S:0xbefd5854] OC - Comm_get> MSGQ_get() status=0x8000, return (0) @1,163,580us: [+0 T:0x40020130 S:0xbefd57e4] OC - Comm_put> Enter(queue=0x0, msg=0x41420880) @1,163,641us: [+0 T:0x40020130 S:0xbefd57e4] OC - Comm_put> return (0) @1,163,672us: [+0 T:0x40020130 S:0xbefd57dc] OC - Comm_get> Enter(queue=0x10000, msg=0xbefd587c, timeout=-1) @1,163,794us: [+0 T:0x40020130 S:0xbefd57dc] OC - Comm_get> MSGQ_get() status=0x8000, return (0) [DSP] @2,361,616tk: [+5 T:0x87c323ec S:0x87c373b4] CN - NODE> 0x87c31df0(h264enc#0) call(algHandle=0x87c31eb8, msg=0x85905880); messageId=0x00020806 [DSP] @2,361,718tk: [+0 T:0x87c323ec S:0x87c3727c] OM - Memory_cacheInv> Enter(addr=0x83741000, sizeInBytes=38400) [DSP] @2,361,827tk: [+0 T:0x87c323ec S:0x87c3727c] OM - Memory_cacheInv> return [DSP] @2,361,875tk: [+0 T:0x87c323ec S:0x87c3727c] OM - Memory_cacheInv> Enter(addr=0x83700000, sizeInBytes=262144) [DSP] @2,362,222tk: [+0 T:0x87c323ec S:0x87c3727c] OM - Memory_cacheInv> return [DSP] @2,362,274tk: [+0 T:0x87c323ec S:0x87c37244] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Enter (handle=0x87c31eb8, inBufs=0x87c372e4, outBufs=0x87c373b4, inArgs=0x85905a04, outArgs=0x85905a10) [DSP] @2,362,396tk: [+5 T:0x87c323ec S:0x87c37224] CV - VISA_enter(visa=0x87c31eb8): algHandle = 0x87c31ef0 [DSP] @2,362,462tk: [+0 T:0x87c323ec S:0x87c37204] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x87c31ef0) [DSP] @2,362,533tk: [+0 T:0x87c323ec S:0x87c37204] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit [DSP] @2,412,509tk: [+5 T:0x87c323ec S:0x87c37224] CV - VISA_exit(visa=0x87c31eb8): algHandle = 0x87c31ef0 [DSP] @2,412,646tk: [+0 T:0x87c323ec S:0x87c37204] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x87c31ef0) [DSP] @2,412,723tk: [+0 T:0x87c323ec S:0x87c37204] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit [DSP] @2,412,782tk: [+0 T:0x87c323ec S:0x87c37244] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Exit (handle=0x87c31eb8, retVal=0xffffffff) [DSP] @2,412,871tk: [+0 T:0x87c323ec S:0x87c3727c] OM - Memory_cacheWb> Enter(addr=0x83700000, sizeInBytes=262144) [DSP] @2,413,227tk: [+0 T:0x87c323ec S:0x87c3727c] OM - Memory_cacheWb> return [DSP] @2,413,277tk: [+5 T:0x87c323ec S:0x87c373b4] CN - NODE> returned from call(algHandle=0x87c31eb8, msg=0x85905880); messageId=0x00020806 [DSP] @2,414,552tk: [+0 T:0x87c2d334 S:0x87c312f4] CR - processRmsCmd(0x859048a8, 4056): cmd = 5 [DSP] @2,414,629tk: [+0 T:0x87c2d334 S:0x87c312f4] CR - remote time = 0x0, trace buffer size = 4032 @1,166,479us: [+0 T:0x40020130 S:0xbefd5814] CE - Engine_fwriteTrace> returning count [2071] @1,166,540us: [+0 T:0x40020130 S:0xbefd5894] CV - VISA_call Completed: messageId=0x00020806, command=0x0, return(status=-1) @1,166,571us: [+5 T:0x40020130 S:0xbefd5884] CV - VISA_freeMsg(0x2f990, 0x41421880): Freeing message with messageId=0x00020806 @1,166,601us: [+0 T:0x40020130 S:0xbefd58f4] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Exit (handle=0x2f990, retVal=0xffffffff) Message - encodeVideoBuffer: VIDENC1_process() failed with error -1 Extended Error: 0x14 Message - encodeVideoBuffer: Generated Bytes: 0 Encoding failed @1,182,898us: [+0 T:0x40020130 S:0xbefd5abc] OM - Memory_free> Enter(0x41491000, 0x40000) @1,182,989us: [+0 T:0x40020130 S:0xbefd5a84] OM - Memory_contigFree> Enter(addr=1095307264, size=262144) @1,183,020us: [+1 T:0x40020130 S:0xbefd5a5c] OM - Memory__removeContigBuf> Enter(virtAddr=0x41491000, size=262144) @1,183,050us: [+1 T:0x40020130 S:0xbefd5a5c] OM - Memory__removeContigBuf> removing cb->phys=0x83700000, cb->size=0x40000, cb->virt=0x41491000 @1,183,081us: [+0 T:0x40020130 S:0xbefd5a3c] OM - Memory_free> Enter(0x2f9e8, 0x10) @1,183,111us: [+0 T:0x40020130 S:0xbefd5a3c] OM - Memory_free> return (0x1) @1,183,356us: [+0 T:0x40020130 S:0xbefd5a84] OM - Memory_contigFree> return (0x1) @1,183,417us: [+0 T:0x40020130 S:0xbefd5abc] OM - Memory_free> return (0x1) @1,183,447us: [+0 T:0x40020130 S:0xbefd5abc] OM - Memory_free> Enter(0x414d2000, 0x40000) @1,183,478us: [+0 T:0x40020130 S:0xbefd5a84] OM - Memory_contigFree> Enter(addr=1095573504, size=262144) @1,183,508us: [+1 T:0x40020130 S:0xbefd5a5c] OM - Memory__removeContigBuf> Enter(virtAddr=0x414d2000, size=262144) @1,183,539us: [+1 T:0x40020130 S:0xbefd5a5c] OM - Memory__removeContigBuf> removing cb->phys=0x83741000, cb->size=0x40000, cb->virt=0x414d2000 @1,183,569us: [+0 T:0x40020130 S:0xbefd5a3c] OM - Memory_free> Enter(0x2fa00, 0x10) @1,183,600us: [+0 T:0x40020130 S:0xbefd5a3c] OM - Memory_free> return (0x1) @1,183,783us: [+0 T:0x40020130 S:0xbefd5a84] OM - Memory_contigFree> return (0x1) @1,183,813us: [+0 T:0x40020130 S:0xbefd5abc] OM - Memory_free> return (0x1) @1,183,874us: [+0 T:0x40020130 S:0xbefd5abc] ti.sdo.ce.video1.VIDENC1 - VIDENC1_delete> Enter (handle=0x2f990) @1,183,905us: [+0 T:0x40020130 S:0xbefd5a94] CV - VISA_delete(0x2f990) @1,183,935us: [+5 T:0x40020130 S:0xbefd5a94] CV - VISA_delete> deleting codec (localQueue=0x10001, remoteQueue=0x2) @1,183,966us: [+0 T:0x40020130 S:0xbefd5a6c] CE - Engine_ctrlNode(0x2f908, 0x2f9c8, 0x0) @1,183,996us: [+0 T:0x40020130 S:0xbefd5a4c] OC - Comm_put> Enter(queue=0x2, msg=0x41421880) @1,184,057us: [+0 T:0x40020130 S:0xbefd5a4c] OC - Comm_put> return (0) @1,184,180us: [+0 T:0x40020130 S:0xbefd5a44] OC - Comm_get> Enter(queue=0x10001, msg=0x2f9c8, timeout=-1) @1,184,241us: [+0 T:0x40020130 S:0xbefd5a44] OC - Comm_get> MSGQ_get() status=0x8000, return (0) @1,184,271us: [+0 T:0x40020130 S:0xbefd5a6c] CE - Engine_ctrlNode> Returning 0x0 @1,184,302us: [+0 T:0x40020130 S:0xbefd5a4c] CE - Engine_deleteNode(0x2f908) @1,184,332us: [+0 T:0x40020130 S:0xbefd5a2c] OC - Comm_put> Enter(queue=0x0, msg=0x41420880) @1,184,363us: [+0 T:0x40020130 S:0xbefd5a2c] OC - Comm_put> return (0) @1,184,393us: [+0 T:0x40020130 S:0xbefd5a24] OC - Comm_get> Enter(queue=0x10000, msg=0xbefd5aa4, timeout=-1) @1,185,126us: [+0 T:0x40020130 S:0xbefd5a24] OC - Comm_get> MSGQ_get() status=0x8000, return (0) @1,185,156us: [+5 T:0x40020130 S:0xbefd5a4c] CE - Engine_deleteNode(0x2f908): algName = h264enc, algHandle = 0x87c31eb8, stack size = 20480, stack used = 2115(11%) I have tried allocating in both cached and non cached mode with mParams_in.type = Memory_CONTIGPOOL; mParams_in.flags = Memory_NONCACHED; mParams_in.align = Memory_DEFAULTALIGNMENT; I am trying to encode frame with 640x480 size. Please tell me what I am missing.