I am trying to encode h264 using MediaCodec in nexus 7 device and after re running ( after closing ) my encoder process several times I get a failure when trying to create MediaCodec ( MediaCodec::CreateByType(looper, "video/avc", true) ). the log shows:
E/OMX-VENC-720p( 181): Is component secure 0
E/OMX-VENC-720p( 181): ERROR: Omx_venc::Comp Init Returning failure
E/OMX-VENC-720p( 181):
E/OMX-VENC-720p( 181): ERROR: venc_open failed
E/OMX-VENC-720p( 181):
E/OMX-VENC-720p( 181): Destroy C2D instance
after rebooting the device I can once again create the encoder. Is this a bug in the nexus hardware encoder or could this be a result of not releasing the encoder properly ?