-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detects camera but doesn't display cameraview #37
Comments
@trbLeeciN which device you used? possibly your because your ROM, usb kernel module doesn't support ISOC requests |
i have tried with lenovo(lollipop) and moto g4(marshmallow) both but its getting crashed after selecting the device. |
I encounter the same problem.My Test Devices such as RedMi 1s. |
Hello, I think I have similar issue. First I had exceptions and crashes but I was able to resolve them by downgrading NDK to suggested 14b version. Camera is detected correctly (it shows entry on popup, and also prints info about available frames in logcat). But there is no preview, tried all test apps. Here is output from UsbCameraTest0:
As you can see, there is no exception or something which could shed some light on an issue. But it is not showing preview. I'm sure phone is working, is USB-OTG, camera is working, is OVC and is capable of video streaming because I'm investigating other options also, for example by using v4l2. |
Ok, I've got it working. Examples have hard-coded frame sizes and also frame rates. My camera is only supporting 60fps in MJPEG mode, so it was just silently ignored after detecting. Here is what fixed it:
|
Check this code change in the pull request #175 |
I am running usbCameraTest0 project sample and observed that for the first time it runs fine, and when it is running, if you detach the camera, and plug it again, scan for the attached camera and open it, the app does not display anything. Any idea how to resolve this? |
Hello, Thank you for great source. You are a life-saver (:
I tried to run examples in 2 different devices, both of them detects uvc-camera, however one of them does not return view. Do you have any idea, how to fix this?
Thank you
The text was updated successfully, but these errors were encountered: