saki4510t / UVCCamera

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

Preview isn't displayed #460

Open andrey-blak opened 5 years ago

andrey-blak commented 5 years ago

I've used ndk r14b to build the project. The camera preview isn't displayed. I couldn't find anything suspicious in the logs.

Project: usbCameraTest0 Device manufacturer: mid Device model: T7N Android: 6.0 Camera: SVEN IC-950 HD

Please find the logs attached: logs.txt

parrotbill commented 5 years ago

I'm not sure but I think it's problem with frame rate. When I search your Camera manual, it's frame rate is up to 33 at 1280 × 720 and library's default is 30.

Did you try change setPreviewSize?

andrey-blak commented 5 years ago

I've tried changing camera.setPreviewSize in MainActivity call to camera.setPreviewSize(640, 480, 1, 33, UVCCamera.FRAME_FORMAT_MJPEG, 1); and camera.setPreviewSize(1280, 720, 1, 33, UVCCamera.FRAME_FORMAT_MJPEG, 1); It didn't help.

andrey-blak commented 3 years ago

@rgm-22 No, unfortunately I didn't find any solution.