I have changed hardware encoder to PV software encode, but, still failed...
On 10月4日, 下午4時21分, Deva R <r.deva...@gmail.com> wrote: > hope preview in genreal is working good. > > > I found that preview function on "Camera" or "Camcorder" inHALis the same. > >Cameracan work fine, but Camcorder can't... Do you occur this problem? > > Camera -> picture usecase. jpeg encoder,decoder will come into picture. > Camcorder -> video usecase. video (h263/h264/mpeg4) encoder/decoder > will come into picture. > > from logs, initializinng encoder handle with OMX.qcom.video.encoder > component fails. > check why or its worth tyring with PV H263 arm s/w encoder too, > > -- > Regards, > Devawww.bittoggler.com > > On Sat, Oct 2, 2010 at 7:37 AM, carter_wang <carter_w...@compal.com> wrote: > > Dear All, > > > I work on AndroidcameraHAL. > > My Android is 2.2. > > I meet a problem about camcorder failed issue. > > 1. Functions of preview an snap shot in "Camera" App can work fine. > > 2. If pressing "Camcorder" App, then it will show error. > > > I found that preview function on "Camera" or "Camcorder" inHALis the > > same. > >Cameracan work fine, but Camcorder can't... > > Do you occur this problem? > > > Below is my log: > > > ---------------------------------------------------------------------------------------------------------------------------------- > > I/ActivityManager( 1304): Starting activity: Intent > > { act=android.intent.action.MAIN > > cat=[android.intent.category.LAUNCHER] flg=0x10200000 > > cmp=com.android.camera/.VideoCamera } > > V/videocamera( 1575): startPreview > > V/PreviewFrameLayout( 1575): Cannot find resource > > [ 70.984722] msm_otg_resume: usb exited from low power mode > > [ 71.246517] usb 1-1.1: new high speed USB device using > > msm_hsusb_host and address 4 > > [ 71.385409] usb 1-1.1: device v04f2 pb223 is not supported > > [ 71.385518] usb 1-1.1: New USB device found, idVendor=04f2, > > idProduct=b223 > > [ 71.392295] usb 1-1.1: New USB device strings: Mfr=1, Product=2, > > SerialNumber=0 > > [ 71.399956] usb 1-1.1: Product: Lenovo EasyCamera > > [ 71.404090] usb 1-1.1: Manufacturer: Chicony Corp. > > [ 71.411032] usb 1-1.1: configuration #1 chosen from 1 choice > > [ 71.418089] uvcvideo: Found UVC 1.00 device Lenovo EasyCamera > > (04f2:b223) > > I/dun_service( 1218): The value returned from dun_getu[ 71.427963] > > input: Lenovo EasyCamera as /devices/platform/msm_hsusb_host.0/ > > usb1/1-1/1-1.1/1-1.1:1.0/input/input10 > > sbmodemstate_fromsys is 2 > > I/dun_service( 1218): The value returned from > > dun_getusbmodemstate_fromsys is 2 > > I/dun_service( 1218): The value returned from > > dun_getusbmodemstate_fromsys is 2 > > I/dun_service( 1218): The value returned from > > dun_getusbmodemstate_fromsys is 2 > > I/dun_service( 1218): The value returned from > > dun_getusbmodemstate_fromsys is 2 > > I/dun_service( 1218): The value returned from > > dun_getusbmodemstate_fromsys is 2 > > I/dun_service( 1218): The value returned from > > dun_getusbmodemstate_fromsys is 2 > > I/KeyInputQueue( 1304): Device added: id=0x1000a, name=Lenovo > > EasyCamera, classes=41 > > V/GLRootView( 1575): onSurfaceChanged: 983x800, gl10: > > com.google.android.gles_jni.gli...@44f9f068 > > V/GLRootView( 1575): layout content pane 983x800 > > I/ActivityManager( 1304): Displayed activity > > com.android.camera/.VideoCamera: 1774 ms (total 1774 ms) > > V/videocamera( 1575): initializeRecorder > > E/AuthorDriver( 1210): Legacy MIO > > E/audio_input( 1210): unsupported parameter: x-pvmf/media-input-node/ > > cap-config-interface;valtype=key_specific_value > > E/audio_input( 1210): VerifyAndSetParameter failed > > W/AuthorDriver( 1210): Use default video width range [144 1920] > > W/AuthorDriver( 1210): Use default video height range [144 1280] > > W/AuthorDriver( 1210): Use default video fps range [5 30] > > W/AuthorDriver( 1210): Use default video bps range [192000 6000000] > > V/videocamera( 1575): Currentcameravideo filename: /mnt/sdcard/DCIM/ > >Camera/VID_19800107_170226.3gp > > E/AuthorDriver( 1210): setParameter(max-filesize = 15665725440) failed > > with result -5 > > E/AuthorDriver( 1210): Ln 1085 handleSetParameters("max- > > filesize=15665725440") error > > E/AuthorDriver( 1210): Command (12) failed > > E/MediaRecorder( 1575): setParameters(max-filesize=15665725440) > > failed: -2147483648 > > [ 72.894853] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > E/CameraInput( 1210): No Record dimensions set > > [ 73.119175] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 73.206824] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 73.295045] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 73.340753] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 73.396267] [dal.c:dal_attach] status = 0, name = 'DAL_AQ_VID' > > E/PVOMXEncNode( 1210): PVMFOMXEncNode-Video_H263::DoPrepare(): Got > > Component OMX.qcom.video.encoder.h263 handle > > E/CameraInput( 1210): getParametersSync : Received NULL info > > W/CameraInput( 1210): refCount 0 > > E/VENC_ENC( 1210): VENC_ERROR update_param_port_def::1650 Frame rate > > is for input port (refer to OMX IL spec) > > E/VENC_ENC( 1210): VENC_ERROR get_parameter::940 unsupported index > > 0x700000b > > E/VENC_ENC( 1210): VENC_ERROR set_parameter::2732 unsupported index > > 0x700000b > > E/VENC_ENC( 1210): VENC_ERROR get_parameter::940 unsupported index > > 0x6000005 > > E/VENC_ENC( 1210): VENC_ERROR set_parameter::2732 unsupported index > > 0x6000005 > > E/CameraInput( 1210): getParametersSync : Received NULL info > > E/VENC_ENC( 1210): allocate_buffer::3615 Ports populated, go to idle > > state > > E/VENC_ENC( 1210): > > E/PVOMXEncNode( 1210): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got > > Component OMX.PV.amrencnb handle > > E/audio_input( 1210): Attempt to release NULL parameters > > E/AuthorDriver( 1210): Command 14 completed with [ 73.504092] > > mdp_ppp: could not retrieve image from memory > > error -1 > > E/MediaRecorder( 1575): prepare failed: -1 > > E/videocamera( 1575): prepare failed for /mnt/sdcard/DCIM/Camera/ > > VID_19800107_170226.3gp > > V/videocamera( 1575): Releasing media recorder. > > V/videocamera( 1575): Empty video file deleted: /mnt/sdcard/DCIM/ > >Camera/VID_19800107_170226.3gp > > E/VENC_ENC( 1210): free_buffer::3707 free buffer done, switch to > > loaded state > > E/audio_input( 1210): unsupported parameter: x-pvmf/media-input-node/ > > cap-config-interface;valtype=key_specific_value > > E/audio_input( 1210): VerifyAndSetParameter failed > > W/PvMp4Composer( 1210): Ring buffer has not been initialized > > W/dalvikvm( 1575): threadid=1: thread exiting with uncaught exception > > (group=0x4001d7d8) > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > E/AndroidRuntime( 1575): FATAL EXCEPTION: main > > E/AndroidRuntime( 1575): java.lang.RuntimeException: > > java.io.IOException: prepare failed[ 73.630693] mdp_ppp: could not > > retrieve image from memory > > . > > E/AndroidRuntime( 1575): at > > com.android.camera.VideoCamera.initializeRecorder(VideoCamera.java: > > 1347) > > E/AndroidRuntime( 1575): at com.android.camera.VideoCamera.access > > $400(VideoCamera.java:93) > > E/AndroidRuntime( 1575): at com.android.camera.VideoCamera > > $MainHandler.handleMessage(VideoCamera.java:304) > > E/AndroidRuntime( 1575): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > E/AndroidRuntime( 1575): at android.os.Looper.loop(Looper.java:123) > > E/AndroidRuntime( 1575): at > > android.app.ActivityThread.main(ActivityThread.java:4627) > > E/AndroidRuntime( 1575): at > > java.lang.reflect.Method.invokeNative(Native Method) > > E/AndroidRuntime( 1575): at > > java.lang.reflect.Method.invoke(Method.java:521) > > E/AndroidRuntime( 1575): at com.android.internal.os.ZygoteInit > > $MethodAndArgsCaller.run(ZygoteInit.java:876) > > E/AndroidRuntime( 15[ 73.734057] mdp_ppp: could not retrieve image > > from memory > > 75): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) > > E/AndroidRuntime( 1575): at dalvik.system.NativeStart.main(Native > > Method) > > E/AndroidRuntime( 1575): Caused by: java.io.IOException: prepare > > failed. > > E/AndroidRuntime( 1575): at > > android.media.MediaRecorder._prepare(Native Method) > > E/AndroidRuntime( 1575): at > > android.media.MediaRecorder.prepare(MediaRecorder.java:516) > > E/AndroidRuntime( 1575): at > > com.android.camera.VideoCamera.initializeRecorder(VideoCamera.java: > > 1343) > > E/AndroidRuntime( 1575): ... 10 more > > W/ActivityManager( 1304): Force finishing activity > > com.android.camera/.VideoCamera > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > E/copybit ( 1304): copyBits failed (Operatio[ 73.832201] mdp_ppp: > > could not retrieve image from memory > > n not permitted) > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 73.876023] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 74.060259] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 74.102987] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > W/ActivityManager( 1304): Activity pause timeout for > > HistoryRecord{4520f100 com.android.camera/.VideoCamera} > > [ 74.332431] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 74.452881] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 74.589397] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 74.627667] mdp_ppp: could not retrieve image from memory > > E/copybit ( 1304): copyBits failed (Operation not permitted) > > [ 74.722007] mdp_ppp: could not retrieve image from memory > > E/copybit > > ... > > 閱讀更多 >> -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting