---
title: "makeMovieHeader(fileType:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmovie/makemovieheader(filetype:)"
---

# makeMovieHeader(fileType:)

Creates a header for a movie for the specified file type.

## Declaration

```swift
func makeMovieHeader(fileType: AVFileType) throws -> Data
```

## Parameters

- `fileType`: A UTI that indicates the specific file format for the movie header.

## Return Value

Return Value An NSData object containing the movie header.

## Discussion

Discussion The created movie header is a pure reference movie, with no base URL, suitable for use on the pasteboard.

## See Also

### Creating and writing headers

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