jiangdongguo / AndroidUSBCamera

🔥🔥🔥Flexible and useful UVC camera engine on Android platform, supporting multi-road cameras!

Home Page:https://juejin.cn/post/7115229806844706847

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

camera on, but it doesn't show anything

dtorologic opened this issue · comments

Hello, I have two web cams, one of them works fine, and the other tells me that it is open, but it doesn't show anything.

I leave you the debug, in case it helps:

I/UVCCamera( 6796): open camera status: -5476376628106891136, size: {"formats":[{"index":1,"type":6,"default":1,"size":["1280x720"]}]} I/CameraUVC( 6796): aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1280, height=720)], I/CameraUVC( 6796): getSuitableSize: PreviewSize(width=1280, height=720) I/CameraUVC( 6796): aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1280, height=720)], I/MultiCameraClient( 6796): Audio record by using system mic 2 I/CameraUVC( 6796): aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1280, height=720)], E/CameraUVC( 6796): setPreviewSize failed, try to use yuv format... E/libUVCCamera( 6796): [10190*UVCPreview.cpp:524:prepare_preview]:could not negotiate with camera:err=-51 I/CameraUVC( 6796): start preview, name = /dev/bus/usb/001/003, preview=PreviewSize(width=1280, height=720) I/RenderManager( 6796): create camera SurfaceTexture: android.graphics.SurfaceTexture@4cdbf8 I/CameraView( 6796): ------>CameraState: OPENED I/flutter ( 6796): Camera: OPENED

And a short video:

video5942532878347800676.mp4

Thanks!