<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMovie/makeMovieHeader(fileType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMovie(im)movieHeaderWithFileType:error:"
  },
  "title" : "makeMovieHeader(fileType:)"
}
-->

# makeMovieHeader(fileType:)

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

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

## Parameters

`fileType`

A UTI that indicates the specific file format for the movie header.

## Return Value

An <doc://com.apple.documentation/documentation/Foundation/NSData> object containing the movie header.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)