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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:44:20+00:00 2026-05-24T00:44:20+00:00

We are not getting any solution for the warning which is occurring when we

  • 0

We are not getting any solution for the warning which is occurring when we are trying to play the recorded audio and video. The warning is

sorry this video is not valid for streaming to this device’.

We are using the following code which was already worked well in previous device(Nexus One).

 recorder = new MediaRecorder();
 recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
 recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
 recorder.setVideoSize(176, 144);
 recorder.setVideoFrameRate(15);
 recorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 recorder.setMaxDuration(30000);
 recorder.setPreviewDisplay(holder.getSurface());
 recorder.setOutputFile(OUTPUT_FILE);
 recorder.prepare();
 recorder.start();

And our device Samsung Galaxy Pop S5570 will support only mp3 and mp4 so we tried by using the following code also. Please suggest me the below code is correct, for recording mp4 video format

 recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
 recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
 recorder.setVideoSize(176, 144);
 recorder.setVideoFrameRate(15);
 recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 recorder.setMaxDuration(30000);
 recorder.setPreviewDisplay(holder.getSurface());
 recorder.setOutputFile(OUTPUT_FILE);

Pleas provide any code available for recording the mp4 video and mp3 audio format.

  • 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-24T00:44:20+00:00Added an answer on May 24, 2026 at 12:44 am

    please try to use following Settings

                mediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
                mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
                mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
                mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
                mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
                mediaRecorder.setVideoSize(width, height);
                mediaRecorder.setVideoFrameRate(videoFramePerSecond);
    

    where

    private final int width = 1280;
        private final int height = 720;
        private final int videoFramePerSecond = 30;
    

    This has worked for me

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

Sidebar

Related Questions

I am trying to follow this solution, but not getting any luck. jQuery autocomplete
I'm not getting any errors as such just a minor performance issue. EXPLAIN SELECT
So my code is below. I'm not getting any errors and it places everything
For some reason I'm not getting this. (Example model below) If I write: var
hi im trying to using flashVars however for some reason there not getting sent
I feel like this might be really simple but I'm just not getting it
I am trying to work with an HTML.DropDownList in MVC and am not getting
I feel like I'm trying to do something simple but I am not getting
I'm getting the following errors from MSBuild while trying to build a solution: C:\dev\MySln.sln
I have this bug Warning: date() [function.date]: It is not safe to rely on

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.