MediaRecorder: unsupported paramter

by Arron » Thu, 28 Jan 2010 15:11:33 GMT


Sponsored Links
 I took the example from the API:

MediaRecorder recorder = new MediaRecorder();
 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
 recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 recorder.setOutputFile(PATH_NAME);
 recorder.prepare();
 recorder.start();   // Recording is now started

When I try to run this, I get the following:
ERROR/audio_input(30): unsupported parameter: x-pvmf/media-input-node/
cap-config-interface;valtype=key_specific_value

Anyone knows what's wrong?

Additionally the code example in the dev guide is completely wrong.
It uses code that don't even exist in the API.

Thanks.

--



MediaRecorder: unsupported paramter

by 3pei » Fri, 29 Jan 2010 07:42:59 GMT


 I have encountered this too.




--


Sponsored Links


MediaRecorder: unsupported paramter

by Rog茅rio de Souza Moraes » Sat, 10 Apr 2010 01:04:55 GMT


 I am trying to create an application that streams video from android camera
to a desktop. I am testing it in a Nexus One Device. I created a application
based on the example of the file VideoCamera.java of Sipdroid and the file
VideoCamera.java of Camera application. The difference between them, is that
on Siproid the output of mMediaRecorder.setOutputFile is one socket and on
the Camera is a file. Now I am trying to write the data from Camera to a
file and later to the socket, but I am getting this error:

ERROR/CameraInput(437): Unsupported
parameter(x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value)
ERROR/CameraInput(437): VerifiyAndSetParameter failed on parameter #0

I am looking for some fix to this, but until now no luck.

Any help is appreciated. The code is in the links bellow:

 http://pastebin.com/yVQA1rTE 
 http://pastebin.com/6gKdJv5h 

Regards,

Rogerio


2010/1/28 3pei <333...@gmail.com>


>



Other Threads

1. Create screen saver

I'll like to create a screen saver that shows some information:
Battery level, my next appointment aso.
Is it possible to that on an Android phone?
--~--~---------~--~----~------------~-------~--~----~

2. Before publish: "Deactivate any calls to Log methods in the source code" - How ?

There are all sorts of bad things an application can do to a device.
Filling the logs with debug info (which eats up disk space and CPU
power) is just one of them.  Eclipse or any other SDK or IDE can't
magically fix application code.

As hackbod mentioned, the best way to do this is to wrap all of your
logs in something like this:

  if (DEBUG_LOG) {
      Log.d(TAG, "my log");
  }

By defining DEBUG_LOG as a static final boolean, you give the compiler
the ability to remove it entirely, making your shipping .apk smaller
and faster.

--~--~---------~--~----~------------~-------~--~----~

3. OI Update - automatic application notification for all developers

4. Streaming Media

5. Add Dynamic Views on to Relative Layout

6. Best approach to fullscreen video?

7. Green notification light for calendar notifications