---
title: AVMovie
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avmovie
---

# AVMovie

An object that represents an audiovisual container that conforms to the QuickTime movie file format or a related format like MPEG-4.

## Declaration

```swift
class AVMovie
```

## Overview

Overview AVMovie supports operations involving the format-specific portions of the QuickTime movie model that AVAsset doesn’t support. For instance, retrieving the movie header from an existing QuickTime movie file. You can also use AVMovie to write a movie header into a new file, thereby creating a reference movie.

## Topics

### Creating a movie

- [init(url:)](avfoundation/avmovie/init(url:).md)
- [init(url:options:)](avfoundation/avmovie/init(url:options:)-1wjrq.md)
- [init(data:options:)](avfoundation/avmovie/init(data:options:).md)
- [Initialization options](avfoundation/initialization-options.md)

### Determining supported file types

- [movieTypes()](avfoundation/avmovie/movietypes().md)

### Loading tracks

- [tracks](avfoundation/avpartialasyncproperty/tracks-80a83.md)
- [loadTrack(withTrackID:completionHandler:)](avfoundation/avmovie/loadtrack(withtrackid:completionhandler:).md)
- [loadTracks(withMediaType:completionHandler:)](avfoundation/avmovie/loadtracks(withmediatype:completionhandler:).md)
- [loadTracks(withMediaCharacteristic:completionHandler:)](avfoundation/avmovie/loadtracks(withmediacharacteristic:completionhandler:).md)

### Creating and writing headers

- [is(compatibleWithFileType:)](avfoundation/avmovie/is(compatiblewithfiletype:).md)
- [makeMovieHeader(fileType:)](avfoundation/avmovie/makemovieheader(filetype:).md)
- [writeHeader(to:fileType:options:)](avfoundation/avmovie/writeheader(to:filetype:options:).md)
- [AVMovieWritingOptions](avfoundation/avmoviewritingoptions.md)

### Determining fragment support

- [canContainMovieFragments](avfoundation/avmovie/cancontainmoviefragments.md)
- [containsMovieFragments](avfoundation/avmovie/containsmoviefragments.md)

### Accessing movie information

- [url](avfoundation/avmovie/url.md)
- [data](avfoundation/avmovie/data.md)

### Accessing tracks

- [tracks](avfoundation/avmovie/tracks.md)
- [track(withTrackID:)](avfoundation/avmovie/track(withtrackid:).md)
- [tracks(withMediaType:)](avfoundation/avmovie/tracks(withmediatype:).md)
- [tracks(withMediaCharacteristic:)](avfoundation/avmovie/tracks(withmediacharacteristic:).md)

### Accessing data storage

- [defaultMediaDataStorage](avfoundation/avmovie/defaultmediadatastorage.md)

### Initializers

- [init(URL:options:)](avfoundation/avmovie/init(url:options:)-3tgg4.md)
- [init(URL:options:)](avfoundation/avmovie/init(url:options:)-9sf6c.md)

## Relationships

### Inherits From

- [AVAsset](avfoundation/avasset.md)

### Inherited By

- [AVFragmentedMovie](avfoundation/avfragmentedmovie.md)
- [AVMutableMovie](avfoundation/avmutablemovie.md)

### Conforms To

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

## See Also

### Movies

- [AVMovieTrack](avfoundation/avmovietrack.md)
