Why FPS is not same as original camera app

前端 未结 3 1815
刺人心
刺人心 2020-12-10 07:20

I tested with original camera application (video mode) comes with Samsung Galaxy Tab 8.9. The saved front camera video able to achieve 24 fps, 640x480. (By looking at the pr

3条回答
  •  被撕碎了的回忆
    2020-12-10 08:12

    Camera FPS depends of lighting conditions and AutoExposure parameter. For getting fixed frame rate in all lighting conditions (from API 14, Android 4.0):

    Camera.Parameters p = camera.getParameters();
    p.setPreviewFpsRange( 30000, 30000 ); // for 30 fps
    if ( p.isAutoExposureLockSupported() )
         p.setAutoExposureLock( true );
    camera.setParameters( p );
    

提交回复
热议问题