uvc camera takes photo timeout

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uvc camera takes photo timeout

864 Views
kris_fei
Contributor III

I'm using a 8M uvc camera on imx6q that preivew is ok ,

however when i try to take a photo using all of the resolutions supported,

logs prints timeout as following, i don't know why ....

pls help me, thanks.

I/FslCameraHAL( 2163): Face Back Camera is ov10635_camera, orient is 0
I/FslCameraHAL( 2163): Face Front Camera is uvc, orient is 0
I/FslCameraHAL( 2163): Checking the camera ov10635_camera
I/FslCameraHAL( 2163): Checking the camera uvc
I/FslCameraHAL( 2163): Get sensor uvc's dev path /dev/video1
I/FslCameraHAL( 2163): Camera ID 0: name uvc, Facing 1, orientation 0, dev path /dev/video1
I/FslCameraHAL( 2163): camera_device open: 0
I/FslCameraHAL( 2163): initialize name:uvc, path:/dev/video1
I/FslCameraHAL( 2163): initialize name:uvc, path:/dev/video1
I/FslCameraHAL( 2163): DeviceAdapter: Create uvc device
I/FslCameraHAL( 2163): index:0,ret:0, format:YUYV
I/FslCameraHAL( 2163): index:1,ret:0, format:MJPG
I/FslCameraHAL( 2163): index:2,ret:-1, format:MJPG
E/FslCameraHAL( 2163): Error: format 0x47504a4d not supported!
I/FslCameraHAL( 2163): SupportedPictureSizes: 3264 x 2448
I/FslCameraHAL( 2163): SupportedPictureSizes: 2592 x 1944
I/FslCameraHAL( 2163): SupportedPictureSizes: 2048 x 1536
I/FslCameraHAL( 2163): SupportedPictureSizes: 1920 x 1080
I/FslCameraHAL( 2163): SupportedPictureSizes: 1280 x 960
I/FslCameraHAL( 2163): SupportedPictureSizes: 1024 x 768
I/FslCameraHAL( 2163): SupportedPictureSizes: 800 x 600
I/FslCameraHAL( 2163): SupportedPictureSizes: 640 x 480
I/FslCameraHAL( 2163): SupportedPictureSizes: 320 x 240
I/FslCameraHAL( 2163): SupportedPictureSizes: 3264 x 2448
I/FslCameraHAL( 2163): SupportedPreviewSizes: 1280 x 960
I/FslCameraHAL( 2163): SupportedPreviewSizes: 1024 x 768
I/FslCameraHAL( 2163): SupportedPreviewSizes: 800 x 600
I/FslCameraHAL( 2163): SupportedPreviewSizes: 640 x 480
I/FslCameraHAL( 2163): SupportedPreviewSizes: 320 x 240
I/FslCameraHAL( 2163): FrameDuration is 33331760, 30000000000
I/FslCameraHAL( 2163): mMaxWidth:3264, mMaxHeight:2448
E/FslCameraHAL( 2163): cpu num 2
I/FslCameraHAL( 2163): DEBUG(CreateDefaultRequest): making template (1)
I/FslCameraHAL( 2163): DEBUG(CreateDefaultRequest): making template (3)
I/FslCameraHAL( 2163): RequestManager allocateStream...
I/FslCameraHAL( 2163): allocateStream preview stream, w:800, h:600, fmt:0x22
I/FslCameraHAL( 2163): actual format 0x103
I/FslCameraHAL( 2163): RequestManager allocateStream end...
I/FslCameraHAL( 2163): RequestManager registerStreamBuffers stream id:0
I/FslCameraHAL( 2163): registerBuffers total 5 buffer
I/FslCameraHAL( 2163): RequestManager registerStreamBuffers end...
I/FslCameraHAL( 2163): RequestManager allocateStream...
I/FslCameraHAL( 2163): allocateStream jpeg stream, w:320, h:240, fmt:0x21
I/FslCameraHAL( 2163): actual format 0x103
I/FslCameraHAL( 2163): RequestManager allocateStream end...
I/FslCameraHAL( 2163): RequestManager registerStreamBuffers stream id:3
I/FslCameraHAL( 2163): RequestManager registerStreamBuffers end...
I/FslCameraHAL( 2163): notify_request_queue_not_empty running
I/FslCameraHAL( 2163): dispatchRequest running
I/FslCameraHAL( 2163): handleRequest running
I/FslCameraHAL( 2163): handleRequest:Dequeue request
I/FslCameraHAL( 2163): getRequestType request type preview
I/FslCameraHAL( 2163): handleRequest:start request 1
I/FslCameraHAL( 2163): tryRestartStreams running
I/FslCameraHAL( 2163): PreviewStream configure running
I/FslCameraHAL( 2163): pixel format: 0x56595559
I/FslCameraHAL( 2163): Width * Height 800 x 600 format 0x56595559, fps: 30
E/FslCameraHAL( 2163): fps:20

I/FslCameraHAL( 2165): tryRestartStreams running
I/FslCameraHAL( 2165): tryRestartStreams stop unused stream 0
I/FslCameraHAL( 2165): stopStream steam id:0
I/FslCameraHAL( 2165): PreviewStream stop running
I/FslCameraHAL( 2165): device thread exit...
I/FslCameraHAL( 2165): StreamAdapter stop running
I/FslCameraHAL( 2165): stream thread received STREAM_STOP command
I/FslCameraHAL( 2165): StreamAdapter stop end
I/FslCameraHAL( 2165): PreviewStream release running
I/FslCameraHAL( 2165): StreamAdapter release running
I/FslCameraHAL( 2165): stream thread exiting...
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): CaptureStream::configure
E/FslCameraHAL( 2165): getGpsCoordinates: error reading jpeg Coordinates tag
E/FslCameraHAL( 2165): getGpsTimeStamp: error reading jpeg TimeStamp tag
E/FslCameraHAL( 2165): getGpsProcessingMethod: error reading jpeg ProcessingMethod tag
I/FslCameraHAL( 2165): pixel format: 0x56595559
I/FslCameraHAL( 2165): Width * Height 320 x 240 format 0x56595559, fps: 15
E/FslCameraHAL( 2165): fps:20
I/FslCameraHAL( 2165): allocateBufferFromIon buffer num:2
I/FslCameraHAL( 2165): phyalloc ptr:0x4158b000, phy:0x44000000, size:126976
I/FslCameraHAL( 2165): phyalloc ptr:0x416d0000, phy:0x4401f000, size:126976
I/FslCameraHAL( 2165): CaptureStream::start
I/FslCameraHAL( 2165): StreamAdapter start running
I/FslCameraHAL( 2165): stream thread received STREAM_START command
I/FslCameraHAL( 2165): Created device thread
I/FslCameraHAL( 2165): Warning!Time out wait for V4L2 capture reading operation!
E/FslCameraHAL( 2165): device thread exit with frame = null, 2 buffers still in v4l
E/FslCameraHAL( 2165): handleError handle error:2
I/FslCameraHAL( 2165): handleStream: get invalid message
I/FslCameraHAL( 2165): handleRequest:Completed request 4
I/FslCameraHAL( 2165): handleRequest exiting
I/FslCameraHAL( 2165): stopAllStreams running
I/FslCameraHAL( 2165): stopStream steam id:0
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): stopStream steam id:1
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): stopStream steam id:2
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): stopStream steam id:3
I/FslCameraHAL( 2165): CaptureStream::stop
I/FslCameraHAL( 2165): StreamAdapter stop running
I/FslCameraHAL( 2165): stream thread received STREAM_STOP command
I/FslCameraHAL( 2165): StreamAdapter stop end
I/FslCameraHAL( 2165): CaptureStream::release
I/FslCameraHAL( 2165): StreamAdapter release running
I/FslCameraHAL( 2165): stream thread exiting...
I/FslCameraHAL( 2165): freeBufferToIon buffer num:2
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): stopStream steam id:4
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): stopStream steam id:5
I/FslCameraHAL( 2165): stopStream end
I/FslCameraHAL( 2165): stopAllStreams end
I/FslCameraHAL( 2165): handleRequest end...

Labels (2)
0 Kudos
2 Replies

521 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ,

from logs:

Width * Height 2592 x 1944 or more with error format 0x56595559, fps: 15..

Time out wait for V4L2 capture reading operation!

 

this looks as performance issue as 2592 x 1944@15fps require

triple typical (~25MB) perfomance which could be achieved as described in

USB Host Performance on i.MX6

 

For android camera HAL modification this should help:

https://community.nxp.com/message/626221 

Regards

0 Kudos

521 Views
kris_fei
Contributor III

No,  i just tried to get

Width * Height 320 x 240 format 0x56595559, fps: 15

not 2592 x 1944, it also caused timeout,

0 Kudos