hi, Experts
I had ask this question on Omap5 forum, but no reply. It seems TI does not support Omap5 now. So I post this question here.
Because TI does not provide H.264 encoder test program on Omap5. So I tried to write it by myself. I reference Netra test code to and add those code to domx folders under Omap5 SDK. I already finish all the code writing, compiling and linking. And I can get the handle of encoder, configure the encoder port parameter. But when I enable encoder input port, it failed.
Follows is my code:
eError = OMX_SendCommand ( pHandle, OMX_CommandPortEnable, 0, NULL );
The return value eError is 0x90000004.
But I did not found 0x90000004 in the define of OMX_ERRORTYPE.
How can I debug this issue?
And I just did some simple configure for input and output port parameter:
pInPortDef.nBufferCountActual = 4;
pInPortDef.format.video.nFrameWidth = 1280;
pInPortDef.format.video.nStride = 1280;
pInPortDef.format.video.nFrameHeight = 720;
pOutPortDef.nBufferCountActual = 4;
pOutPortDef.nBufferSize = 1280* 720;
pOutPortDef.format.video.nBitrate = 1920000;
pOutPortDef.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC;
All the configure return ok, and those code runs well on Netra.