Class

AVMovie

An object that represents the audiovisual containers that conform to a QuickTime or ISO-based media file format.

Declaration

@interface AVMovie : AVAsset

Overview

AVMovie supports operations involving the format-specific portions of the QuickTime movie model that aren't supported by AVAsset. 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

Initializing a Movie

- initWithURL:options:

Creates a movie object from a movie header stored in a QuickTime movie file of ISO base media file.

+ movieWithURL:options:

Returns a movie object from a movie header stored in a QuickTime movie file of ISO base media file.

- initWithData:options:

Creates a movie object from a movie stored in an NSData object.

+ movieWithData:options:

Returns a movie object from a movie stored in an NSData object.

Accessing Movie Information

URL

The URL used to initialize the movie instance.

canContainMovieFragments

A Boolean value that indicates whether the movie file can be extended by fragments.

containsMovieFragments

A Boolean value that indicates whether the movie file is extended by at least one movie fragment.

data

The data block used to initialize the movie.

defaultMediaDataStorage

The default storage container for media data added to a movie.

tracks

An array of tracks in a movie.

+ movieTypes

Returns the file types the AVMovie class can process.

Creating Movie Tracks

- trackWithTrackID:

Provides a movie track associated with the specified track ID.

- tracksWithMediaCharacteristic:

Provides the movie tracks of the specified media characteristic associated with an asset.

- tracksWithMediaType:

Provides the movie tracks of the specified media type associated with an asset.

Creating and Writing Headers

- movieHeaderWithFileType:error:

Creates a data object containing the movie header for a movie object.

- writeMovieHeaderToURL:fileType:options:error:

Writes the movie header to the specified URL.

AVMovieWritingOptions

A set of options to control the writing of a movie header to a destination URL.

- isCompatibleWithFileType:

Returns a Boolean value that indicates whether a movie header of the specified type can be created.

Relationships

Inherits From

See Also

QuickTime and ISO-Related Media

AVMovieTrack

A track that conforms to a QuickTime or ISO-based media file format.

AVFragmentedMovie

An object used to handle fragmented movie files.

AVFragmentedMovieTrack

An object used to handle the tracks of fragmented movie files.

AVFragmentedMovieMinder

An object used to check whether additional movie fragments have been appended to a fragmented movie file.

AVMediaDataStorage

An object used to create a sample data file.