Skip to content
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

Front Camera turning black / Low exposure #483

Closed
Metalingus opened this issue Jul 12, 2022 · 7 comments
Closed

Front Camera turning black / Low exposure #483

Metalingus opened this issue Jul 12, 2022 · 7 comments
Labels
Needs More Information Further information is requested question A question was asked

Comments

@Metalingus
Copy link

Describe the bug
Hi, I am having some front camera issues with the AT&T Fusion Z phone, it works fine if there's nothing in front of it but as soon as there's an object to focus, the camera flickers and then turns very dark as if the exposure was set super low, I can still see light sources. I tried the demo app on that phone and still the issue is happening. I tried other apps on the mentioned phone and the front camera is working fine.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Welcome page'
  2. Click on 'Join Meeting'
  3. See error in the camera preview

Video
https://drive.google.com/file/d/1t7Z5J7gfJAgEXhEemtT4OiqaKRLlEyzq/view?usp=sharing

Test environment Info (please complete the following information):

  • Device: AT&T Fusion Z (V340U)
  • OS: Android 10
  • Version amazon-chime-sdk: 0.17.2
  • Version amazon-chime-sdk-media: 0.17.2
  • Can you reproduce this in the demo app? Yes
@hokyungh
Copy link
Contributor

Hi @Metalingus, Could you try to change some of settings here to see if it improves? You can reference captureRequest for settings it support. We currently do not have device, so feel like it is some of settings it sets there.

@hokyungh hokyungh added Needs More Information Further information is requested question A question was asked labels Jul 12, 2022
@Metalingus
Copy link
Author

Hi @hokyungh, I did try many of the combinations and it seems that only the Exposure settings are affecting the output but eventually it goes dark. Is there a way to keep the camera capture settings to the default settings by the phone?

@ziyiz-amzn
Copy link
Contributor

Hi @Metalingus Will the issue occur when you start local video during a meeting as well?

@Metalingus
Copy link
Author

Hi @ziyiz-amzn yes it still happens when the meeting starts.

@ziyiz-amzn
Copy link
Contributor

We cannot reproduce this issue using demo app on various Android devices.

I would suggest you follow hokyungh's advise and try more combinations here.

CameraMetadata.CONTROL_AE_MODE_OFF will use phone/application settings. The SDK does not provide a way to customize exposure to default for now. Have you tried to set SENSOR_EXPOSURE_TIME and SENSOR_FRAME_DURATION when AE is off? or play with FLASH_MODE?

@Metalingus
Copy link
Author

Thank you @ziyiz-amzn and @hokyungh, I was able to solve the issue by using the following parameters:

captureRequestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF) captureRequestBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_AUTO) captureRequestBuilder.set(CaptureRequest.SENSOR_SENSITIVITY, 650) captureRequestBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, 71692200) captureRequestBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true)

@ziyiz-amzn
Copy link
Contributor

Cool! Glad to see it works. closing this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Information Further information is requested question A question was asked
Projects
None yet
Development

No branches or pull requests

3 participants