10

I made a video capture app with Camera2 API by following this guide,

Is there a provision to change brightness/contrast/exposure settings of the video programatically? I'm trying to capture some low-lit video footage, and I wish to increase the exposure.

The documentation here seems to apply only for still pictures.

Any such way for video capture, using Camera2 API?

Caife
  • 415
  • 1
  • 5
  • 16

1 Answers1

0

All the configuration that you need should be in CaptureRequest, for example for brightness here.

So, to implement it with the guide you follow, it's in the part 5. of the main steps listed in the readme, you need to use the CaptureRequest.Builder created here to set all the configuration that you want, with CaptureRequest.Builder#set(Key<T> key, T value) and the fields from CaptureRequest !

meynety
  • 561
  • 3
  • 6
  • Wich part ? Everything is linked in the answer – meynety Nov 09 '17 at 15:56
  • What is the key, value here to pass? I tried `captureRequestBuilder.set(CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION, 6);` but no effect in brightness.. :( See my new question [here](https://stackoverflow.com/q/47196243/2462531) – Shailendra Madda Nov 24 '17 at 05:42