<!--
{
  "documentType" : "article",
  "framework" : "Xcode",
  "identifier" : "/documentation/Xcode/reducing-power-usage-when-capturing-media",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Reducing power usage when capturing media"
}
-->

# Reducing power usage when capturing media

Optimize device camera power usage by stopping sessions when not needed and choosing appropriate video formats.

## Overview

Device cameras draw a lot of power when they’re in use.
To minimize the amount of time your app uses the device camera, run an <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureSession> only while your app is using the captured data, and call <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureSession/stopRunning()> at the earliest opportunity.
For example, stop the capture session if your app’s camera view is covered by other content, so that the device stops capturing the camera stream when someone can’t see it.

Because capturing higher-quality images consumes more power, set the capture device’s <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureDevice/activeFormat> to the format with the lowest image quality that supports your app’s features.
Confirm that the <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureDevice/Format/isVideoBinned> property is `true` for the format you use, as pixel binning also increases the power efficiency.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)