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

# AVCaptureFileOutput

The abstract superclass for capture outputs that can record captured data to a file.

```
class AVCaptureFileOutput
```

## Topics

### Setting file output properties

[`delegate`](/documentation/AVFoundation/AVCaptureFileOutput/delegate)

The delegate object for the capture file output.

[`maxRecordedDuration`](/documentation/AVFoundation/AVCaptureFileOutput/maxRecordedDuration)

The longest duration allowed for the recording.

[`maxRecordedFileSize`](/documentation/AVFoundation/AVCaptureFileOutput/maxRecordedFileSize)

The maximum size, in bytes, of the data that should be recorded by the receiver.

[`minFreeDiskSpaceLimit`](/documentation/AVFoundation/AVCaptureFileOutput/minFreeDiskSpaceLimit)

The minimum amount of free space, in bytes, required for recording to continue on a given volume.

[`outputFileURL`](/documentation/AVFoundation/AVCaptureFileOutput/outputFileURL)

The URL to which output is directed.

[`recordedDuration`](/documentation/AVFoundation/AVCaptureFileOutput/recordedDuration)

Indicates the duration of the media recorded to the current output file.

[`recordedFileSize`](/documentation/AVFoundation/AVCaptureFileOutput/recordedFileSize)

Indicates the size, in bytes, of the data recorded to the current output file.

[`isRecording`](/documentation/AVFoundation/AVCaptureFileOutput/isRecording)

Indicates whether recording is in progress.

[`isRecordingPaused`](/documentation/AVFoundation/AVCaptureFileOutput/isRecordingPaused)

Indicates whether recording to the current output file is paused.

### Managing recording

[`startRecording(to:recordingDelegate:)`](/documentation/AVFoundation/AVCaptureFileOutput/startRecording(to:recordingDelegate:))

Starts recording media to the specified output URL.

[`stopRecording()`](/documentation/AVFoundation/AVCaptureFileOutput/stopRecording())

Tells the receiver to stop recording to the current file.

[`pauseRecording()`](/documentation/AVFoundation/AVCaptureFileOutput/pauseRecording())

Pauses recording to the current output file.

[`resumeRecording()`](/documentation/AVFoundation/AVCaptureFileOutput/resumeRecording())

Resumes recording to the current output file after it was previously paused using [`pauseRecording()`](/documentation/AVFoundation/AVCaptureFileOutput/pauseRecording()).



---

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)