<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEVideoDecoder/recommendedThreadCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(pl)MEVideoDecoder(py)recommendedThreadCount"
  },
  "title" : "recommendedThreadCount"
}
-->

# recommendedThreadCount

The recommended number of threads for the decoder to use.

```
optional var recommendedThreadCount: Int { get set }
```

## Discussion

The system sets this property on the extension when <doc://com.apple.documentation/documentation/VideoToolbox> sets <doc://com.apple.documentation/documentation/VideoToolbox/kVTDecompressionPropertyKey_ThreadCount> on the hosting <doc://com.apple.documentation/documentation/VideoToolbox/VTDecompressionSession>.

---

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)