---
title: "init(videoTracks:videoSettings:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avassetreadervideocompositionoutput/init(videotracks:videosettings:)"
---

# init(videoTracks:videoSettings:)

Creates an object that reads composited video frames from the specified video tracks.

## Declaration

```swift
init(videoTracks: [AVAssetTrack], videoSettings: [String : Any]?)
```

## Parameters

- `videoTracks`: An array of asset tracks from which to read video frames for compositing. The media type of each track must be doc://com.apple.avfoundation/documentation/AVFoundation/AVMediaType/video.
- `videoSettings`: Specifying a nil value configures the output to return samples in an uncompressed format.
