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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:29:18+00:00 2026-05-27T18:29:18+00:00

Firstly, please forgive it is already asked one or can be find easily with

  • 0

Firstly, please forgive it is already asked one or can be find easily with Google. I am posting this since I do have only limited time. Here is code to record audio and video.

        stopPreview();

        Log.d("streamer", "Start camera.....");
        videoRecorder = new MediaRecorder();
        videoRecorder.setPreviewDisplay(surfaceView.getHolder()
                .getSurface());
        videoRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
        videoRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
        videoRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
        videoRecorder.setVideoSize(800, 600);
        videoRecorder.setVideoFrameRate(30);
        videoRecorder.setOutputFile(videoPipe.getOutput());
        videoRecorder.prepare();
        videoRecorder.start();
        Log.d("streamer", "Start camera.....action.......");

        Log.d("streamer", "Start mic.....");
        audioRecorder = new MediaRecorder();
        audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
        audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
        audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        audioRecorder.setOutputFile(audioPipe.getOutput());
        audioRecorder.prepare();
        audioRecorder.start();
        Log.d("streamer", "Start mic.....action");

But, when I run it, the above code produces the following on logcat.

12-22 09:05:43.456: E/CameraInput(2407): Unsupported parameter(x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value)
12-22 09:05:43.456: E/CameraInput(2407): VerifiyAndSetParameter failed on parameter #0

.....
12-22 09:05:43.456: E/CameraInput(2407): VerifiyAndSetParameter failed on parameter #0
12-22 09:05:43.464: E/MediaProfiles(2407): mCodec : 2
12-22 09:05:43.464: E/MediaProfiles(2407): mCodec : 1
12-22 09:05:43.464: E/MediaProfiles(2407): mCodec : 3

And, the surface view showing preview seems to be freezed. It shows last taken frame of image. Also, the video & audio doesn’t seems to be recording. What will be the problem? Any help is very much appreciated!

NOTE:

I am trying this on Samsung Galaxy Tab with Android 2.2.

Commenting the following two lines also doesn’t seems to solve the problem

        videoRecorder.setVideoSize(800, 600);
        videoRecorder.setVideoFrameRate(30);

The following permissions are set on the manifest file.

<uses-permission android:name="android.permission.CAMERA"></uses-permission>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
  • 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-27T18:29:18+00:00Added an answer on May 27, 2026 at 6:29 pm

    If you see the Supported Media Formats, for MPEG-4 SP, you need to use 3GP (THREE_GPP) output format.
    So you can try with

    videoRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly: I am totally a newbie for this kind of work. I have a
Firstly, I do not have any malicious intent out of this question. I would
Firstly, please go to this url: celebritywallpaperbase picture #1 is Drew Barrymore smile picture
Firstly this has turned out to be quite a long post so please bear
Can anybody please explain how this could possibly happen? I am completely aware of
Firstly, please don't dismiss this question - I'm aware it's an ugly situation but
Firstly, I'm totally javascript inept so please explain throughly. OK, I have two issues
Firstly please understand that SQL is not one of my strong areas at the
firstly please excuse my relative inexperience with Hibernate I’ve only really been using it
Firstly please check url* http://mobileecommerce.site247365.com/admin/catdata.xml in * google chrome . I am facing two

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.