<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureScreenInput",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureScreenInput"
  },
  "title" : "AVCaptureScreenInput"
}
-->

# AVCaptureScreenInput

A capture input for recording from a screen in macOS.

```
class AVCaptureScreenInput
```

## Overview> Important:
> Starting in macOS 12.3, use the <doc://com.apple.documentation/documentation/ScreenCaptureKit> framework for screen recording instead.

This class is a concrete capture input subclass that provides an interface to capture media from a screen or a portion of a screen.

Use instances of this class as input sources for [`AVCaptureSession`](/documentation/AVFoundation/AVCaptureSession) objects that provide media data from one of the screens connected to the system, represented by <doc://com.apple.documentation/documentation/CoreGraphics/CGDirectDisplayID>.

## Topics

### Initializing a capture screen input

[`init(displayID:)`](/documentation/AVFoundation/AVCaptureScreenInput/init(displayID:))

Initializes a capture screen input that provides media data from the specified display.

[`init()`](/documentation/AVFoundation/AVCaptureScreenInput/init())

Initializes a capture screen input that provides media data from the main screen.

[`new`](/documentation/AVFoundation/AVCaptureScreenInput/new)

Creates a capture screen input that provides media data from the main screen.

### Setting video capture options

[`minFrameDuration`](/documentation/AVFoundation/AVCaptureScreenInput/minFrameDuration)

The screen input’s minimum frame duration.

[`cropRect`](/documentation/AVFoundation/AVCaptureScreenInput/cropRect)

Indicates the bounding rectangle of the screen area to be captured, in pixels.

[`scaleFactor`](/documentation/AVFoundation/AVCaptureScreenInput/scaleFactor)

Indicates the factor by which video buffers captured from the screen are to be scaled.

### Capturing mouse activity

[`capturesCursor`](/documentation/AVFoundation/AVCaptureScreenInput/capturesCursor)

A Boolean value that specifies whether the mouse cursor appears in the captured output.

[`capturesMouseClicks`](/documentation/AVFoundation/AVCaptureScreenInput/capturesMouseClicks)

A Boolean value that specifies whether mouse clicks appear highlighted in the captured output.

### Deprecated

[`removesDuplicateFrames`](/documentation/AVFoundation/AVCaptureScreenInput/removesDuplicateFrames)

A Boolean value that specifies whether the capture input skips duplicate frames.



---

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)