---
title: "init(url:options:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avmovie/init(url:options:)-1wjrq"
---

# init(url:options:)

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

## Declaration

```swift
init(url URL: URL, options: [String : Any]? = nil)
```

## Parameters

- `URL`: A URL that points to a file containing a movie header.
- `options`: A dictionary of options to use to initialize the movie.

## Discussion

Discussion Upon creation, the values of the defaultMediaDataStorage property and any associated mediaDataStorage properties are nil.

## See Also

### Creating a movie

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