saki4510t / UVCCamera

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

Can't access two USB2.0 cameras of same model together #606

Open ssaranyaaa opened 3 years ago

ssaranyaaa commented 3 years ago

camera

Hi I am trying to access two cameras of same model (as shown in the picture). But I am getting following errors:

W/libUVCCamera: [14824UVCPreview.cpp:546:prepare_preview]:frameSize=(1920,1080)@MJPEG E/libuvc/stream: [14824stream.c:1473:uvc_stream_start_bandwidth]:VR bandwidth_factor= 0.500000 E/libusb/usbfs: [14824android_usbfs.c:1786:op_set_interface]:--- op_set_interface --- E/libusb/usbfs: [14824android_usbfs.c:1804:op_set_interface]:release interface failed, OTHER !! E/libuvc/stream: [14824stream.c:1632:uvc_stream_start_bandwidth]:fail W/libUVCCamera: [14824diag.c:88:uvc_perror]:failed start_streaming:Unknown error (-99)

I tried changing resolution and bandwidth. but no luck. Sometimes app crashes also with following error:

A/libc: invalid pthread_t 0x4010409 passed to pthread_join A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15175 (CameraThread), pid 15109 (iant.prizmusb4p)

Any help would be appreciated.

Thank you

Thanhluc98 commented 2 years ago

I have the same problem!