I am using AVFoundation to produce video frames. The problem is that the frames look darker than in the native camera app, especially in dark areas.
As I see, the native camera app (iOS 8) makes some adjustments (ISO, shutter speed) all the time and continuously adopts itself to the environment light conditions (it seems that in low-light conditions it slows the shutter speed, rather then increasing the ISO).
I cannot make my video preview looks the same. Tried settings the exposure mode to AVCaptureExposureModeContinuousAutoExposure, but it does not make the same effect.
Please advise
IOS 8 introduced a number of improvements to image capture and I don't doubt that the native app isn't leaning on a number of them.
If you have access this Apple sample exposes all of the new features (white balance, ISO, shutter speed etc).
You will need to combine a few of these settings to replicate the built in - auto exposure alone is unlikely to match the built in.
Well the above answer is 100% correct. In my case though, i was setting AVCaptureSession property sessionPreset to AVCaptureSessionPresetHigh and the preview was a lot darker than the one in camera app. When I changed this preset to AVCaptureSessionPresetPhoto the preview looked so much better and didn't seem to be as dark as before... Maybe it's just this setting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With