<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/kVTCompressionPropertyKey_PreserveAlphaChannel",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@kVTCompressionPropertyKey_PreserveAlphaChannel"
  },
  "title" : "kVTCompressionPropertyKey_PreserveAlphaChannel"
}
-->

# kVTCompressionPropertyKey_PreserveAlphaChannel

A key that specifies whether to encode the alpha channel of input video frames.

```
let kVTCompressionPropertyKey_PreserveAlphaChannel: CFString
```

## Discussion

Set this property to false in cases where you’re not interested in preserving alpha, or if you know the alpha channel to be fully opaque.

This property isn’t supported by all encoders.

---

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)