I'm currently trying to capture the HDMI input on the DM816x EVM (connector on extension board). I figured out that the easiest way to do that would be to modify the "capture_encode" demo app provided with EZSDK 5.02. I get no error using the modified program but the program hangs as if no video was coming through.
1- Is HDMI capture supported part of ezsdk 5.02 ?
2- Is the HDMI input connected to the dm8168 video port1 on video port 2 ? Actually I tried both without success...
3- Here are the modification I did, are they complete ?!?:
In ilclient_utils.c line#946 :
/* capture on EIO card is component input at VIP1 port */
sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP2_PORTA; // HDMI: Changed from VIP1 to VIP2
eError = OMX_SetParameter (pAppData->pCapHandle,
(OMX_INDEXTYPE) OMX_TI_IndexParamVFCCHwPortID,
(OMX_PTR) & sHwPortId);
In ilclient_utils.c line#980 :
/* capture on EIO card is component input at VIP1 port */
sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP2_PORTA; // HDMI: Changed from VIP1 to VIP2
eError = OMX_SetParameter (pAppData->pTvpHandle,
(OMX_INDEXTYPE) OMX_TI_IndexParamVFCCHwPortID,
(OMX_PTR) & sHwPortId);
In ilclient_utils.c line#1009 :
/* setting TVP7002 component input */
sVidDecParam.videoDecoderId = OMX_VID_DEC_SII9135_DRV; // HDMI: Changed video decoder from TVP7002 to SII9135
sVidDecParam.videoSystemId = OMX_VIDEO_DECODER_VIDEO_SYSTEM_AUTO_DETECT;
eError = OMX_SetParameter (pAppData->pTvpHandle,
(OMX_INDEXTYPE) OMX_TI_IndexParamCTRLVidDecInfo,
(OMX_PTR) & sVidDecParam);