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 6211933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:25:24+00:00 2026-05-24T06:25:24+00:00

I am using the media recorder class for recording video, I initialize the recorder

  • 0

I am using the media recorder class for recording video, I initialize the recorder with following properties,

    recorder = new MediaRecorder();
    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
    recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
    recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);

    recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
    recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);

But the quality of video is not as same as video I shoot over native android camera, my video recorded using media recorder is of poor quality as compared to the native one, how can I improve the video quality.

If any one knows me help me out.Thanks

  • 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-05-24T06:25:27+00:00Added an answer on May 24, 2026 at 6:25 am

    Finally I found the code to record high quality video in android 2.1 by setting videEncodingBitRate , AudioEncodingBitRate, AudioSamplingRate …etc. Using this method you can set the properties for video whatever you want to provide high quality video.

    For setting high quality and low quality parameter refer this page,

    http://www.andgps.com/20110410/camcorderprofile-predefined-camcorder-profile-settings-for-camcorder-applications

    The code i used with base version android 2.1 to produce high quality video is shown below,

        recorder = new MediaRecorder();
        Method[] methods = recorder.getClass().getMethods();
        recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
        recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
        recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
        recorder.setVideoFrameRate(24);
        recorder.setVideoSize(720, 480);
    
        for (Method method: methods){
        try{
            if (method.getName().equals("setAudioChannels")){
                    method.invoke(recorder, String.format("audio-param-number-of-channels=%d", 1));
            } 
            else if(method.getName().equals("setAudioEncodingBitRate")){
                    method.invoke(recorder,12200);
                }
            else if(method.getName().equals("setVideoEncodingBitRate")){
                method.invoke(recorder, 3000000);
            }
            else if(method.getName().equals("setAudioSamplingRate")){
                method.invoke(recorder,8000);
            }
            else if(method.getName().equals("setVideoFrameRate")){
                method.invoke(recorder,24);
            }
        }catch (IllegalArgumentException e) {
    
            e.printStackTrace();
        } catch (IllegalAccessException e) {
    
            e.printStackTrace();
        } catch (InvocationTargetException e) {
    
            e.printStackTrace();
        }
        }
    
        recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
    

    `

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

Sidebar

Related Questions

In my android application i am recording video using Media recorder.I would like to
I try to record video using MediaRecorder Class. However I find out that I
All , I am using Media Recorder for Recording Audio . Case 1: If
I am using media player to play audio and video. I am creating own
I am using standard 3G connection for video streaming. Streaming Media application works fine.
I'm new here. I have been trying to create a video capture app using
I am using Adobe Flash Media Live Encoder to stream live video to a
I am able to Record Android's Camera Using Mediarecorder Class. I heard that sipdroid
I am using the following code to leverage Windows Media Encoder to record screen.
I am using media element to render video in WPF. All videos are working

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.