<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMutableMovie/addMutableTrack(withMediaType:copySettingsFrom:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMutableMovie(im)addMutableTrackWithMediaType:copySettingsFromTrack:options:"
  },
  "title" : "addMutableTrack(withMediaType:copySettingsFrom:options:)"
}
-->

# addMutableTrack(withMediaType:copySettingsFrom:options:)

Adds an empty track to the target movie.

```
func addMutableTrack(withMediaType mediaType: AVMediaType, copySettingsFrom track: AVAssetTrack?, options: [String : Any]? = nil) -> AVMutableMovieTrack?
```

## Parameters

`mediaType`

The media type for the new track.

`track`

An [`AVAssetTrack`](/documentation/AVFoundation/AVAssetTrack) containing the desired track settings to be transferred. Set to `nil` to create a track with default settings.

`options`

A dictionary that contains key for specifying the movie object initialization. Currently, no keys are defined.

## Return Value

An [`AVMutableMovieTrack`](/documentation/AVFoundation/AVMutableMovieTrack) object.

## 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)