---
title: AVAssetWriterInputGroup
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avassetwriterinputgroup
---

# AVAssetWriterInputGroup

A group of inputs with tracks that are mutually exclusive to each other for playback or processing.

## Declaration

```swift
class AVAssetWriterInputGroup
```

## Overview

Overview Assets may contain multiple tracks of media that are mutually exclusive to each other when you play or process them. For example, an asset may contain multiple audio tracks for different spoken languages, but only one of them should play at a time. You use an input group to mark a collection of tracks as mutually exclusive to each other in the file the asset writer outputs. note: After associating several tracks by calling addTrackAssociation(withTrackOf:type:), you can examine the media selection options an asset writer outputs before it writes the file.

## Topics

### Creating an input group

- [init(inputs:defaultInput:)](avfoundation/avassetwriterinputgroup/init(inputs:defaultinput:).md)

### Accessing the inputs

- [inputs](avfoundation/avassetwriterinputgroup/inputs.md)
- [defaultInput](avfoundation/avassetwriterinputgroup/defaultinput.md)

## Relationships

### Inherits From

- [AVMediaSelectionGroup](avfoundation/avmediaselectiongroup.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Media writing

- [Converting projected video to Apple Projected Media Profile](avfoundation/converting-projected-video-to-apple-projected-media-profile.md)
- [Converting side-by-side 3D video to multiview HEVC and spatial video](avfoundation/converting-side-by-side-3d-video-to-multiview-hevc-and-spatial-video.md)
- [Adding a display mask rectangle metadata track to a movie file](avfoundation/adding-a-display-mask-rectangle-metadata-track-to-a-movie-file.md)
- [Writing fragmented MPEG-4 files for HTTP Live Streaming](avfoundation/writing-fragmented-mpeg-4-files-for-http-live-streaming.md)
- [Creating spatial photos and videos with spatial metadata](imageio/creating-spatial-photos-and-videos-with-spatial-metadata.md)
- [Tagging media with video color information](avfoundation/tagging-media-with-video-color-information.md)
- [Evaluating an app’s video color](avfoundation/evaluating-an-app-s-video-color.md)
- [AVOutputSettingsAssistant](avfoundation/avoutputsettingsassistant.md)
- [AVAssetWriter](avfoundation/avassetwriter.md)
- [AVAssetWriterInput](avfoundation/avassetwriterinput.md)
- [AVAssetWriterInputPixelBufferAdaptor](avfoundation/avassetwriterinputpixelbufferadaptor.md)
- [AVAssetWriterInputTaggedPixelBufferGroupAdaptor](avfoundation/avassetwriterinputtaggedpixelbuffergroupadaptor.md)
- [AVAssetWriterInputMetadataAdaptor](avfoundation/avassetwriterinputmetadataadaptor.md)
