title: FFMPEG with hardware codec support
body: <p>I have built a simple media player using <code>ffmpeg</code> on Android 2.2. Hardware is an arm cortex-a8 based 1GHz processor, 512 MB RAM. I am getting low performance, around 15 FPS for 800x600 mp4 video. I have a couple of questions on how I can improve the performance</p>
  
  <ul>
  <li><p>How can I use the hardware codecs available on my target device. How can I configure ffmpeg to use the available hardware decoders? Does the GPU or graphics driver have to expose some standard API like OpenMax IL in order to this?</p></li>
  <li><p>What are the options that should be enabled when building ffmpeg so that it can be optimized for my target hardware? Something like:
  <code>--cpu=cortex=a8 --extra-cflags="-mfpu=neon" ...</code></p></li>
  </ul>
  
  <p>I have already looked around the net but I couldn't find the answers that I am looking for. I hope someone can advice me on this.</p>
  
  <p>Thanks in advance!</p>