我用Vuforia和Unity开发了一个简单的视频应用程序,我遇到了一个奇怪的麻烦。
应用程序正常启动,然后相机开始发出噪音;我已经在3台设备(2台三星和1台摩托罗拉)中测试了我的应用程序,三星设备(S6和S6 Edge)仍然存在问题,但我的摩托罗拉设备却没有。
这是我的logcat:
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_OUTPUT]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:85) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1678]):node(3AA_OUTPUT)->getBuffer() fail, index(5), frameCount(2333), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_PREVIEW]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:91) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_PREVIEW)->getBuffer() fail, index(4), frameCount(2333), ret(-1)
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_CAPTURE]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:89) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_CAPTURE)->getBuffer() fail, index(1), frameCount(2333), ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]- ERR(m_getBuffer[1908]):frameCount(2333) : captureNodeCount == 0 || checkRet(-1) != NO_ERROR. so, setFrameState(FRAME_STATE_SKIPPED)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]- WARN(m_getBufferThreadFunc[1326]):m_getBuffer fail, ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-ERR(m_putBuffer[1370]):New frame is INVALID, frameCount(2333)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_putBuffer[1562]):clean frame, frameCount(2333)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_completeFrame[2286]):NOT DONE frameCount(2333)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-WARN(m_putBufferThreadFunc[1310]):m_putbuffer fail, ret(-38)
W/ExynosCamera( 2974): [CAM_ID(0)][]-WARN(m_removeFrameFromList):frame count mismatch: expected(2333), current(2332)
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_OUTPUT]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:85) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1678]):node(3AA_OUTPUT)->getBuffer() fail, index(6), frameCount(2334), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_PREVIEW]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:91) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_PREVIEW)->getBuffer() fail, index(7), frameCount(2334), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_CAPTURE]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:89) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_CAPTURE)->getBuffer() fail, index(0), frameCount(2334), ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1908]):frameCount(2334) : captureNodeCount == 0 || checkRet(-1) != NO_ERROR. so, setFrameState(FRAME_STATE_SKIPPED)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-WARN(m_getBufferThreadFunc[1326]):m_getBuffer fail, ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-ERR(m_putBuffer[1370]):New frame is INVALID, frameCount(2334)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_putBuffer[1562]):clean frame, frameCount(2334)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_completeFrame[2286]):NOT DONE frameCount(2334)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-WARN(m_putBufferThreadFunc[1310]):m_putbuffer fail, ret(-38)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_OUTPUT]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:85) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1678]):node(3AA_OUTPUT)->getBuffer() fail, index(7), frameCount(2335), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_PREVIEW]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:91) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_PREVIEW)->getBuffer() fail, index(6), frameCount(2335), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_CAPTURE]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:89) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_CAPTURE)->getBuffer() fail, index(2), frameCount(2335), ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1908]):frameCount(2335) : captureNodeCount == 0 || checkRet(-1) != NO_ERROR. so, setFrameState(FRAME_STATE_SKIPPED)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-WARN(m_getBufferThreadFunc[1326]):m_getBuffer fail, ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-ERR(m_putBuffer[1370]):New frame is INVALID, frameCount(2335)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_putBuffer[1562]):clean frame, frameCount(2335)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_completeFrame[2286]):NOT DONE frameCount(2335)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-WARN(m_putBufferThreadFunc[1310]):m_putbuffer fail, ret(-38)
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
指向Video
的链接再一次,是一个简单的视频应用程序,带有一个按钮,可以截取屏幕截图。
希望有人知道如何解决这个问题。
提前致谢。
答案 0 :(得分:0)
我解决了这个问题,请按照以下步骤操作: