title: How to get higher camera preview fps like snapchat?
body: <p>On Android,</p>
  
  <p>Anyone have any idea what trick snapchat pulls to get such high fps on their camera preview? I have tried various methods:</p>
  
  <ul>
  <li>using a textureview instead of surface view</li>
  <li>forcing hardware acceleration</li>
  <li>using lower resolutions</li>
  <li>using different preview formats (YV12 , NV21 drops frames)</li>
  <li>changing focusing mode</li>
  </ul>
  
  <p>None have left me anywhere close to the constant 30fps or maybe even above that snapchat seems to get. I can just about get to the same fps as the stock google camera app, but this isn't great, and mine displays at much lower resolution. </p>
  
  <p>EDIT: </p>
  
  <p>The method used is the same as that used by the official android video recording app. The preview there is of the same image quality and is locked to 30fps. </p>