title: Android: how to encode a stream of images to h264 with hardware acceleration?
body: <p>I am currently working on an app, to read the camera images and process them using OpenCV.
  I would like to store the <em>original</em> images as a "normal" video and to drop the processed images after processing (after the information is extracted).
  For this I basically need to encode the image stream to h264.
  It will not be possible to use ffmpeg or other solutions wich do it on the general cpu. It has to be done using the internal hardware acceleration.
  Because of this I have actually three questions:</p>
  
  <ul>
  <li><p>Does somebdy know how to achieve h264 encoding using the internal hw-modules to encode videos?</p></li>
  <li><p>Or does ffmpeg really support this on Android?</p></li>
  <li><p>Or is there a way access the image stream during the "usual" encoding process?</p></li>
  </ul>
  
  <p>Thanks alot!</p>