AnsweredAssumed Answered

Android ADV7180 Video recorder problem

Question asked by Leonardo Prates on Aug 2, 2016
Latest reply on Jun 1, 2017 by jie jia

I'm using an analog camera connected to ADV7180 on Android 6.0.1. I can see preview using camera.apk and take photos, but when I try record video I get this message: "Can't connect to the camera."

 

Someones experienced this kind of error only in video capture?

 

I have tried change media_profiles.xml to support only 480p but error is the same.

Logcat shows as bellow:

 

08-02 18:33:42.412  2158  2158 V CAM_CameraAppUI: onPreviewStarted

08-02 18:33:42.413   247   473 I FslCameraHAL: virtual int32_t TVINDevice::TVinStream::onDeviceConfigureLocked() Get current mode: PAL

08-02 18:33:42.413   247   473 I FslCameraHAL: virtual int32_t USPStream::onDeviceConfigureLocked()

08-02 18:33:42.413   247   473 I FslCameraHAL: virtual int32_t MMAPStream::onDeviceConfigureLocked()

08-02 18:33:42.413   247   473 I FslCameraHAL: Width * Height 720 x 576 format NV12, fps: 30

08-02 18:33:42.413   247   473 I FslCameraHAL: allocateBufferFromIon buffer num:3

08-02 18:33:42.419   247   473 I FslCameraHAL: phyalloc ptr:0xa9e2b000, phy:0x22200000, ionSize:622592

08-02 18:33:42.424   247   473 I FslCameraHAL: phyalloc ptr:0xa9c2d000, phy:0x22300000, ionSize:622592

08-02 18:33:42.428   247   473 I FslCameraHAL: phyalloc ptr:0xa9b95000, phy:0x2af00000, ionSize:622592

08-02 18:33:42.428   247   473 I FslCameraHAL: virtual int32_t USPStream::onDeviceStartLocked() VIDIOC_QBUF phy:0x22200000

08-02 18:33:42.428   247   473 I FslCameraHAL: virtual int32_t USPStream::onDeviceStartLocked() VIDIOC_QBUF phy:0x22300000

08-02 18:33:42.428   247   473 I FslCameraHAL: virtual int32_t USPStream::onDeviceStartLocked() VIDIOC_QBUF phy:0x2af00000

08-02 18:33:42.510  2158  2158 V CAM_CameraAppUI: hiding cover via onSurfaceTextureUpdated

08-02 18:33:42.510  2158  2158 D CameraPerformanceTracker: First preview frame received

08-02 18:33:50.850  2158  2158 V CAM_VideoModule: New video filename: /storage/emulated/0/DCIM/Camera/VID_20160802_183350.3gp.tmp

08-02 18:33:50.977  2158  2158 E CAM_VideoModule: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1399)

08-02 18:33:50.977  2158  2158 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2351)

08-02 18:33:50.977  2158  2158 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2346)

08-02 18:33:50.978  2158  2158 E CAM_FatalErrorHandler: Handling Camera Access Failure:

08-02 18:33:50.978  2158  2158 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)

08-02 18:33:50.978  2158  2158 E CAM_FatalErrorHandler: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1402)

08-02 18:33:50.978  2158  2158 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2351)

08-02 18:33:50.978  2158  2158 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2346)

08-02 18:33:50.979  2158  2158 E CAM_CameraUtil: Show fatal error dialog

08-02 18:33:51.057  2158  2158 V CAM_VideoModule: Empty video file deleted: /storage/emulated/0/DCIM/Camera/VID_20160802_183350.3gp.tmp

08-02 18:33:51.149  2158  2167 E StrictMode: at com.android.camera.CaptureModule$17.onCameraOpened(CaptureModule.java:1442)

08-02 18:33:51.149  2158  2167 E StrictMode: at com.android.camera.one.v2.Camera2OneCameraOpenerImpl$1.onOpened(Camera2OneCameraOpenerImpl.java:180)

08-02 18:33:51.149  2158  2167 E StrictMode: at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:134)

08-02 18:33:51.163  2158  2167 W MessageQueue: at android.hardware.camera2.dispatch.HandlerDispatcher.dispatch(HandlerDispatcher.java:61)

08-02 18:33:51.163  2158  2167 W MessageQueue: at android.hardware.camera2.dispatch.MethodNameInvoker.invoke(MethodNameInvoker.java:88)

08-02 18:33:51.163  2158  2167 W MessageQueue: at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.onClosed(CallbackProxies.java:177)

08-02 18:33:51.163  2158  2167 W MessageQueue: at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:387)

08-02 18:33:51.163  2158  2167 W MessageQueue: at android.hardware.camera2.impl.CameraCaptureSessionImpl.finalize(CameraCaptureSessionImpl.java:598)

08-02 18:33:51.209   221   288 E BufferQueueProducer: [com.android.camera2/com.android.camera.CameraLauncher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

08-02 18:33:56.302  2158  2158 V CAM_QuickActivity: START onPause: Activity = com.android.camera.CameraActivity@7147fd1

08-02 18:33:56.304  2158  2158 V CAM_Profiler: [  0.000ms][ui] GUARD: CameraActivity.onPause - START

08-02 18:33:56.389  2158  2158 I CAM_VideoModule: closeCamera

08-02 18:33:56.401  2158  2158 V CAM_CameraActivity: onPause closing camera

08-02 18:33:56.401  2158  2158 V CAM_CameraController: Closing camera

08-02 18:33:56.455   247   247 I FslCameraHAL: int32_t Camera::closeDev():0: Closing camera device

08-02 18:33:56.455   247   247 I FslCameraHAL: int32_t VideoStream::closeDev()

08-02 18:33:56.459   247   473 I FslCameraHAL: freeBufferToIon buffer num:3

08-02 18:33:56.461   247   247 I CameraService: disconnect: Disconnected client for camera 0 for PID 2158

08-02 18:33:56.462   247  1486 I Camera2Client: Camera 0: Closed

 

Outcomes