<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureMovieFileOutput/outputSettings(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureMovieFileOutput(im)outputSettingsForConnection:"
  },
  "title" : "outputSettings(for:)"
}
-->

# outputSettings(for:)

Returns the settings the output uses to encode media from the specified connection.

```
func outputSettings(for connection: AVCaptureConnection) -> [String : Any]
```

## Parameters

`connection`

The connection delivering the media to encode.

## Return Value

A dictionary of output settings.

## Discussion

If the returned value is an empty dictionary, the format of the media from the connection isn’t changed before writing to the file.

If you call [`setOutputSettings(_:for:)`](/documentation/AVFoundation/AVCaptureMovieFileOutput/setOutputSettings(_:for:)) with a `nil` dictionary, this method returns a non-`nil` dictionary that reflects the settings used by the capture session’s [`sessionPreset`](/documentation/AVFoundation/AVCaptureSession/sessionPreset) value.

---

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)