saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
3k stars 1.21k forks source link

UVCPreview.cpp:511:prepare_preview]:could not negotiate with camera:err=-51 #651

Open werohit opened 2 years ago

werohit commented 2 years ago

I am facing this issue while connecting USB Camera to this application

mCameraHelper = UVCCameraHelper.getInstance(640, 480); mCameraHelper.setDefaultFrameFormat(UVCCameraHelper.FRAME_FORMAT_YUYV);

E/libUVCCamera: [12909*UVCPreview.cpp:511:prepare_preview]:could not negotiate with camera:err=-51

com.jiangdg.usbcamera D/UsbDeviceConnectionJNI: close com.jiangdg.usbcamera I/USBMonitor: name=/dev/bus/usb/006/004,desc=41,busnum=6,devnum=4,rawDesc=[B@ffbe650 com.jiangdg.usbcamera V/CameraThread: handleOpen: com.jiangdg.usbcamera V/CameraThread: handleClose: com.jiangdg.usbcamera V/UVCCameraTextureView: setVideoEncoder: com.jiangdg.usbcamera V/UVCCameraTextureView: RenderThread#setEncoder:encoder=null com.jiangdg.usbcamera D/UsbDeviceConnectionJNI: close com.jiangdg.usbcamera I/libusb/core: [12902core.c:2085:libusb_init2]:libusb v1.0.19.10903 com.jiangdg.usbcamera I/libusb/usbfs: [12902android_usbfs.c:504:op_init2]:start up hotplug event handler com.jiangdg.usbcamera I/libusb/usbfs: [12902android_usbfs.c:512:op_init2]:call android_scan_devices com.jiangdg.usbcamera I/AbsUVCCameraHandler: supportedSize:{"formats":[{"index":1,"type":4,"default":2,"size":["1280x720","1920x1080","3840x2160","4208x3120","4096x2160","640x480"]},{"index":2,"type":6,"default":1,"size":["1280x720","1920x1080","3840x2160","4208x3120","4096x2160","640x480"]}]} com.jiangdg.usbcamera D/mali_winsys: EGLint new_window_surface(egl_winsys_display , void *, EGLSurface, EGLConfig, egl_winsys_surface *, egl_color_buffer_format , EGLBoolean) returns 0x3000