E/OMXNodeInstance( 125): createInputSurface requires AndroidOpaque color format
E/ACodec (17570): [OMX.Nvidia.h264.encoder] onCreateInputSurface returning error -38
W/MediaCodec(17570): createInputSurface failed, err=-38というエラーが発生して動作しません。Webを探してみると、For Surface input, you must set the color format toCOLOR_FormatSurface(also known as AndroidOpaque.)
※ http://stackoverflow.com/questions/17845859/mediacodec-createinputsurface より
という回答もあるのですが、ソースコードにあるようにMediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight);
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface);
format.setInteger(MediaFormat.KEY_BIT_RATE, mBitRate);
format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE);
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL);
となっており正しいのでは無いかと思います。
どこらあたりが問題なのか、お分かりになりましたらお教えいただきたく
よろしくお願いします。