natario1 / CameraView

📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processing, RAW, output of any size.
https://natario1.github.io/CameraView
Other
4.89k stars 922 forks source link

Camera2 not working on Pixel5 #1009

Open cpt23 opened 3 years ago

cpt23 commented 3 years ago

Camera2 API and GlCameraPreview do not work properly on Google Pixel 5 devices with latest OS (Android 11) and patch level. The display is split into multiple bands/blocks, regardless of settings (resolution, frame rate, shutter speed etc). pixel5

natario1 commented 3 years ago

Sorry to hear that but I don't have this device so there's nothing I can do.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

natario1 commented 3 years ago

@cpt23 could you try with this PR https://github.com/natario1/CameraView/pull/1020 ? Just merged into master. It fixes a similar issue on Pixel 4.

To test, you have to modify the FpsRangeValidator class and add the Pixel 5 to the blacklist.

cpt23 commented 3 years ago

PR #1020 fixed the preview display issues on Google Pixel 5, thanks!

natario1 commented 3 years ago

@cpt23 so I should add "Google Pixel 5" to FpsRangeValidator right? Or did it fix the issue even without that change?

darrinps commented 3 years ago

Think this can be closed? Just tested over lunch with the latest using a Pixel 5 and don't see this issue.