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

# kVTCompressionPropertyKey_H264EntropyMode

The entropy encoding mode for H.264 compression.

```
let kVTCompressionPropertyKey_H264EntropyMode: CFString
```

## Discussion

If supported by an H.264 encoder, this property controls whether the encoder should use Context-based Adaptive Variable Length Coding (CAVLC) or Context-based Adaptive Binary Arithmetic Coding (CABAC). CABAC generally gives better compression at the expense of higher computational overhead. The default value is encoder-specific and may change depending on other encoder settings.

> Note:
> Changing the default entropy mode may result in a configuration that is not compatible with a requested Profile and Level.  Results in this case are undefined, and could include encode errors or a noncompliant output stream.

## Topics

### Entropy Modes

[`kVTH264EntropyMode_CAVLC`](/documentation/VideoToolbox/kVTH264EntropyMode_CAVLC)

[`kVTH264EntropyMode_CABAC`](/documentation/VideoToolbox/kVTH264EntropyMode_CABAC)



---

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)