Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8104255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:47:11+00:00 2026-06-05T23:47:11+00:00

in my Android app, I observed that the video recorded from the front camera

  • 0

in my Android app, I observed that the video recorded from the front camera is being recorded with 7-10 fps while the back camera does the job fine, the native camera app does record video from front cam at 29fps.

I use the following function to set the frame rate

 myRecorder.setVideoFrameRate(30);

but somehow it records it at 8fps. what is the problem? Also the lighting conditions seem to improve it to 15fps, but I want it to be atleast >25fps how can I achieve this? Can we use NDK for this purpose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:47:13+00:00Added an answer on June 5, 2026 at 11:47 pm

    I’m exploring the same problem. Because the MediaRecorder already has a native implementation, using the NDK doesn’t seem to be a promising approach to increasing the frames per second. Improving the buffering with setPreviewCallbackWithBuffer as shown in the code at http://www.androidadb.com/source/cellbots-read-only/experimental/android/ioio/samples/ShootOnSight/src/com/cellbots/ioioshoot/CameraView.java.html seems promising but I first would like to get a better understanding of the many camera parameters and how they affect frame rate.

    As you surely know, there is a wide range of Android devices with a wide range of camera capabilities. To see the capabilities of your particular front and back cameras, you can use the following code (e.g., setting mCameraId to 0 for rear facing and to 1 for front facing).

        Camera mCamera = Camera.open(mCameraId);
        Camera.Parameters cp = mCamera.getParameters();
        Log.d(TAG, "camera parameters: " + cp.flatten());
    

    For example, here are the camera parameters dumped by my Nexus S (running OS 4.0.4).

    NEXUS-S FRONT FACING CAMERA PARAMETERS:
    06-16 15:14:16.909: D/SENSORS_PLUS(24583): camera parameters:
    picture-size-values=640×480;
    preview-fps-range=7500,30000;
    min-exposure-compensation=-4;
    vertical-view-angle=39.4;
    horizontal-view-angle=51.2;
    whitebalance=auto;
    jpeg-thumbnail-height=120;
    jpeg-quality=100;
    preview-format-values=yuv420sp,yuv420p;
    rotation=0;
    jpeg-thumbnail-quality=100;
    focus-mode=fixed;
    preview-format=yuv420sp;
    preview-size=640×480;
    focal-length=0.9;
    video-frame-format=yuv420p;
    picture-format-values=jpeg;
    max-exposure-compensation=4;
    exposure-compensation=0;
    preview-frame-rate-values=15;
    exposure-compensation-step=0.5;
    preview-frame-rate=15;
    effect-values=none,mono,negative,sepia;
    focus-mode-values=fixed;
    picture-size=640×480;
    effect=none;
    jpeg-thumbnail-width=160;
    whitebalance-values=auto,incandescent,fluorescent,daylight,cloudy-daylight;
    picture-format=jpeg;
    focus-distances=0.20,0.25,Infinity;
    preview-fps-range-values=(7500,30000);
    jpeg-thumbnail-size-values=160×120,0x0;
    preview-size-values=640×480,320×240,176×144

    NEXUS-S REAR FACING CAMERA PARAMETERS:
    06-16 15:46:55.315: D/SENSORS_PLUS(24732): camera parameters:
    picture-size-values=2560×1920,2048×1536,1600×1200,1280×960,640×480;
    preview-fps-range=15000,30000;
    min-exposure-compensation=-4;
    vertical-view-angle=39.4;
    horizontal-view-angle=51.2;
    whitebalance=auto;
    jpeg-thumbnail-height=240;
    scene-mode=auto;
    jpeg-quality=100;
    preview-format-values=yuv420sp,yuv420p;
    rotation=0;
    jpeg-thumbnail-quality=100;
    focus-mode=auto;
    preview-format=yuv420sp;
    preview-size=720×480;
    focal-length=3.43;
    video-frame-format=yuv420p;
    picture-format-values=jpeg;
    max-exposure-compensation=4;
    flash-mode-values=on,off,auto,torch;
    exposure-compensation=0;
    preview-frame-rate-values=30;
    exposure-compensation-step=0.5;
    preview-frame-rate=30;
    flash-mode=off;
    effect-values=none,mono,negative,sepia;
    focus-mode-values=auto,infinity,macro;
    picture-size=2560×1920;
    effect=none;
    jpeg-thumbnail-width=320;
    whitebalance-values=auto,incandescent,fluorescent,daylight,cloudy-daylight;
    scene-mode-values=auto,portrait,landscape,night,beach,snow,sunset,fireworks,sports,party,candlelight;
    picture-format=jpeg;
    focus-distances=0.10,1.20,Infinity;
    preview-fps-range-values=(15000,30000);
    jpeg-thumbnail-size-values=320×240,0x0;
    preview-size-values=720×480,640×480,352×288,176×144

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Android app is a client that fetchs datas from a Web Service and
I'm writing an Android app where users can upload video to Youtube. I'd like
I created a native Android app that basically hosts a webView control. That webView
I have been facing a scenario where I have observed that Android's TelephonyManager is
My android-app gets List in the one activity, but activity,that contains the LisView for
My Android app has a main WebView (HTML loaded from a local resource) which
My Android app has a button that executes this code in order to open
My Android app has a tab bar that uses an Intent to launch the
My Android app is reading and writing to a local SQLite DB from a
We have an Android app that consists of about 20 activities. Whenever there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.