Hello,
I am attempting to create a new v4l2 subdevice under the vpfe driver and I have been successful in passing the video through to a display device but I have not been able to encode any of the video. When I attempt to encode the video and then save it to a file using gstreamer (a pipeline that works on other camera devices), I get an error that it is unable to create the video encoder. I have been trying to trace down the function that has failed so I can figure out why it is failing, but there is so much indirection that I haven't been able to find it to put in some print statements. From the snippet below, the algInit function failed returning a value of 40961. Can someone please tell me where I can locate the algInit function for either the mpeg4enc or h264enc codecs?
Thanks!
- Memory_contigAlloc> CMEM_getPhys(0x41efa000) = 0x83f18000.
@4,462,563us: [+4 T:0x4119e490] OM - Memory_contigAlloc> CMEM_alloc(1600) = 0x41efb000.
@4,462,819us: [+4 T:0x4119e490] OM - Memory_contigAlloc> CMEM_getPhys(0x41efb000) = 0x83f19000.
@4,463,349us: [+4 T:0x4119e490] OM - Memory_contigAlloc> CMEM_alloc(36) = 0x41efc000.
@4,463,611us: [+4 T:0x4119e490] OM - Memory_contigAlloc> CMEM_getPhys(0x41efc000) = 0x83f1a000.
@4,464,294us: [+4 T:0x4119e490] OM - Memory_contigAlloc> CMEM_alloc(1620) = 0x41efd000.
@4,464,562us: [+4 T:0x4119e490] OM - Memory_contigAlloc> CMEM_getPhys(0x41efd000) = 0x83f1b000.
@4,464,892us: [+0 T:0x4119e490] ti.sdo.ce.alg - _ALG_allocMemory2> Returning (TRUE)
@4,467,032us: [+7 T:0x4119e490] ti.sdo.ce.alg - ALG_create> algInit call failed 40961
@4,467,310us: [+0 T:0x4119e490] ti.sdo.ce.alg - _ALG_freeMemory2> memTab=0x108808, n=14, useCachedMem=-1
@4,478,112us: [+0 T:0x4119e490] ti.sdo.ce.alg - ALG_create> Exit (algHandle=NULL)
@4,478,364us: [+7 T:0x4119e490] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algorithm creation FAILED; make sure that 1) alg params are correct/supported, 2) there is enough internal and external algorithm memory available
@4,478,630us: [+0 T:0x4119e490] ti.sdo.ce.alg.Algorithm - Algorithm_delete> Enter(alg=0x1f598)
@4,478,821us: [+0 T:0x4119e490] ti.sdo.ce.alg.Algorithm - Algorithm_delete> Exit
@4,478,984us: [+0 T:0x4119e490] ti.sdo.ce.alg.Algorithm - Algorithm_create> return (0x0)
@4,479,150us: [+6 T:0x4119e490] CV - VISA_create2> FAILED to create local codec.
@4,479,305us: [+0 T:0x4119e490] CV - VISA_delete(0xffd00)
@4,479,450us: [+5 T:0x4119e490] CV - VISA_delete> deleting codec (localQueue=0xffff, remoteQueue=0xffff)
@4,479,623us: [+0 T:0x4119e490] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> return (0x0)
@4,479,834us: [+7 T:0x4119e490] ti.sdo.dmai - [Venc1] Failed to open video encode algorithm: mpeg4enc (0x0)
ERROR: from element /GstPipeline:pipeline0/GstTIVidenc1:tividenc10: failed to create video encoder: mpeg4enc