Android : Is it possible to capture a video at 1000 fps and with a very low resolution in Android?

on Sunday, March 22, 2015


I know that in the old camera API (before API level 21) in order to compute the fastest FPS supported by the device I need to do the following:



Camera.Parameters params = mCamera.getParameters();
int[] fpsRange = new int[2];
params.getPreviewFpsRange(fpsRange);


This method gives different results for different devices. The maximum value that I got for one of my devices was 90fps.


Then later when setting up the MediaRecorder I can set the desired capture rate:



mMediaRecorder.setCaptureRate(DESIRED_FPS);


Is it possible to set the resolution of a video to be captured to some very small value 150x150 pixels and at the same time to increase frame capture rate to higher values (1000fps)?



  1. Is it possible to do that on the regular application level (see the top line in the Android Structure Diagram)? (A). Can it be done using the old (pre 21) camera API? (B). Can it be done using a new (API 21) camera API? I know that the new camera API (android.hardware.camera2, added in API level 21) has lots of improvements, but the official camera guide in the documentation covers only the old camera API. There are some tutorials out there that talk about the new camera API but unfortunately I wasn’t able to find the answer to this specific question there.

  2. Is it possible to do that at all? For example by creating a custom Linux Kernel Camera Driver or by doing something else?


0 comments:

Post a Comment