---
title: "outputSettings(for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturemoviefileoutput/outputsettings(for:)"
---

# outputSettings(for:)

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

## Declaration

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

## Parameters

- `connection`: The connection delivering the media to encode.

## Return Value

Return Value A dictionary of output settings.

## Discussion

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:) with a nil dictionary, this method returns a non-nil dictionary that reflects the settings used by the capture session’s sessionPreset value.

## See Also

### Managing output settings

- [supportedOutputSettingsKeys(for:)](avfoundation/avcapturemoviefileoutput/supportedoutputsettingskeys(for:).md)
- [setOutputSettings(_:for:)](avfoundation/avcapturemoviefileoutput/setoutputsettings(_:for:).md)
- [availableVideoCodecTypes](avfoundation/avcapturemoviefileoutput/availablevideocodectypes.md)
