<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureVideoDataOutput/recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:outputFileURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureVideoDataOutput(im)recommendedVideoSettingsForVideoCodecType:assetWriterOutputFileType:outputFileURL:"
  },
  "title" : "recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:outputFileURL:)"
}
-->

# recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:outputFileURL:)

Returns a dictionary of recommended output settings for writing the specified code, file type, and output URL.

```
func recommendedVideoSettings(forVideoCodecType videoCodecType: AVVideoCodecType, assetWriterOutputFileType outputFileType: AVFileType, outputFileURL: URL?) -> [String : Any]?
```

## Parameters

`videoCodecType`

The type of video codec to use.

`outputFileType`

The type of output file to write.

`outputFileURL`

The URL of the output file to write.

## Return Value

A fully populated output settings dictionary suitable for configuring an asset writer input.

## Discussion

---

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)