Hi, I need to capture video without preview. But if I set preview display to null by calling setPreviewDisplay(null) on MediaRecorder instance, it always gives me back an exception "prepare failed".
The details of logging information is like theses 02-11 23:06:40.921: ERROR/CameraInput(23323): Unsupported parameter(x- pvmf/media-input-node/cap-config-interface;valtype=key_specific_value) 02-11 23:06:40.928: ERROR/CameraInput(23323): VerifiyAndSetParameter failed on parameter #0 02-11 23:06:40.967: ERROR/PVOMXEncNode(23323): PVMFOMXEncNode- Audio_AMRNB::DoPrepare(): Got Component OMX.TI.AMR.encode handle 02-11 23:06:40.975: ERROR/PVOMXEncNode(23323): PVMFOMXEncNode- Video_AVC::DoPrepare(): Got Component OMX.TI.Video.encoder handle 02-11 23:06:44.600: ERROR/CameraHal(23323): Param type 30 not supported 02-11 23:06:44.600: ERROR/CameraHal(23323): Param type 33 not supported 02-11 23:06:44.624: ERROR/CameraInput(23323): No surface is available for display 02-11 23:06:44.624: ERROR/AuthorDriver(23323): Command 13 completed with error -1 02-11 23:06:44.624: ERROR/MediaRecorder(31079): prepare failed: -1 02-11 23:06:44.967: ERROR/Video(31079): Failed to prepare and start video recording 02-11 23:06:44.967: ERROR/Video(31079): java.io.IOException: prepare failed. 02-11 23:06:44.967: ERROR/Video(31079): at android.media.MediaRecorder._prepare(Native Method) 02-11 23:06:44.967: ERROR/Video(31079): at android.media.MediaRecorder.prepare(MediaRecorder.java:471) 02-11 23:06:44.967: ERROR/Video(31079): at com.androidbook.multimedia.Video$1.onClick(Video.java:83) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.View.performClick(View.java:2370) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.View.onTouchEvent(View.java:4185) 02-11 23:06:44.967: ERROR/Video(31079): at android.widget.TextView.onTouchEvent(TextView.java:6568) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.View.dispatchTouchEvent(View.java:3715) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1700) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1111) 02-11 23:06:44.967: ERROR/Video(31079): at android.app.Activity.dispatchTouchEvent(Activity.java:2061) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1684) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewRoot.handleMessage(ViewRoot.java:1701) 02-11 23:06:44.967: ERROR/Video(31079): at android.os.Handler.dispatchMessage(Handler.java:99) 02-11 23:06:44.967: ERROR/Video(31079): at android.os.Looper.loop(Looper.java:123) 02-11 23:06:44.967: ERROR/Video(31079): at android.app.ActivityThread.main(ActivityThread.java:4353) 02-11 23:06:44.967: ERROR/Video(31079): at java.lang.reflect.Method.invokeNative(Native Method) 02-11 23:06:44.967: ERROR/Video(31079): at java.lang.reflect.Method.invoke(Method.java:521) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 02-11 23:06:44.967: ERROR/Video(31079): at dalvik.system.NativeStart.main(Native Method) Doesn't the MediaRecorder class allow recording without preview? or should I miss something? TIA, - yesarang -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

