<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDeviceInput",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDeviceInput"
  },
  "title" : "AVCaptureDeviceInput"
}
-->

# AVCaptureDeviceInput

An object that provides media input from a capture device to a capture session.

```
class AVCaptureDeviceInput
```

## Overview

This class is a concrete subclass of [`AVCaptureInput`](/documentation/AVFoundation/AVCaptureInput) that you use to connect a capture device to a capture session.

## Topics

### Creating an input

[`deviceInputWithDevice:error:`](/documentation/AVFoundation/AVCaptureDeviceInput/deviceInputWithDevice:error:)

Returns a new input for the specified capture device.

[`init(device:)`](/documentation/AVFoundation/AVCaptureDeviceInput/init(device:))

Creates an input for the specified capture device.

### Configuring video properties

[`unifiedAutoExposureDefaultsEnabled`](/documentation/AVFoundation/AVCaptureDeviceInput/unifiedAutoExposureDefaultsEnabled)

A Boolean value that indicates whether the input enables unified auto-exposure defaults.

[`videoMinFrameDurationOverride`](/documentation/AVFoundation/AVCaptureDeviceInput/videoMinFrameDurationOverride)

A time value that acts as a modifier to a capture device’s active video minimum frame duration.

### Configuring audio properties

[`isMultichannelAudioModeSupported(_:)`](/documentation/AVFoundation/AVCaptureDeviceInput/isMultichannelAudioModeSupported(_:))

A Boolean value that indicates whether the input supports the specified multichannel audio mode.

[`multichannelAudioMode`](/documentation/AVFoundation/AVCaptureDeviceInput/multichannelAudioMode)

The multichannel audio mode to apply when recording audio.

[`AVCaptureMultichannelAudioMode`](/documentation/AVFoundation/AVCaptureMultichannelAudioMode)

Constants that indicate the modes of multichannel audio.

[`isWindNoiseRemovalSupported`](/documentation/AVFoundation/AVCaptureDeviceInput/isWindNoiseRemovalSupported)

[`isWindNoiseRemovalEnabled`](/documentation/AVFoundation/AVCaptureDeviceInput/isWindNoiseRemovalEnabled)

### Configuring Cinematic video capture

[`isCinematicVideoCaptureSupported`](/documentation/AVFoundation/AVCaptureDeviceInput/isCinematicVideoCaptureSupported)

A BOOL value specifying whether Cinematic Video capture is supported.

[`isCinematicVideoCaptureEnabled`](/documentation/AVFoundation/AVCaptureDeviceInput/isCinematicVideoCaptureEnabled)

A BOOL value specifying whether the Cinematic Video effect is being applied to any movie file output, video data output, metadata output, or video preview layer added to the capture session.

[`simulatedAperture`](/documentation/AVFoundation/AVCaptureDeviceInput/simulatedAperture)

Shallow depth of field simulated aperture.

### Locking frame duration

[`activeLockedVideoFrameDuration`](/documentation/AVFoundation/AVCaptureDeviceInput/activeLockedVideoFrameDuration)

The receiver’s locked frame duration (the reciprocal of its frame rate). Setting this property guarantees the intra-frame duration delivered by the device input is precisely the frame duration you request.

[`isLockedVideoFrameDurationSupported`](/documentation/AVFoundation/AVCaptureDeviceInput/isLockedVideoFrameDurationSupported)

Indicates whether the device input supports locked frame durations.

### Synchronizing with external devices

[`isExternalSyncSupported`](/documentation/AVFoundation/AVCaptureDeviceInput/isExternalSyncSupported)

Indicates whether the device input supports being configured to follow an external sync device.

[`follow(_:videoFrameDuration:delegate:)`](/documentation/AVFoundation/AVCaptureDeviceInput/follow(_:videoFrameDuration:delegate:))

Configures the the device input to follow an external sync device at the given frame duration.

[`unfollowExternalSyncDevice()`](/documentation/AVFoundation/AVCaptureDeviceInput/unfollowExternalSyncDevice())

Discontinues external sync.

[`activeExternalSyncVideoFrameDuration`](/documentation/AVFoundation/AVCaptureDeviceInput/activeExternalSyncVideoFrameDuration)

The receiver’s external sync frame duration (the reciprocal of its frame rate) when being driven by an external sync device.

[`externalSyncDevice`](/documentation/AVFoundation/AVCaptureDeviceInput/externalSyncDevice)

The external sync device currently being followed by this input.

### Accessing the device

[`device`](/documentation/AVFoundation/AVCaptureDeviceInput/device)

A capture device associated with this input.

[`ports(for:sourceDeviceType:sourceDevicePosition:)`](/documentation/AVFoundation/AVCaptureDeviceInput/ports(for:sourceDeviceType:sourceDevicePosition:))

Retrieves a virtual device’s constituent device ports for use in a multi-camera session.



---

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)