---
title: recommendedThreadCount
framework: MediaExtension
role: symbol
role_heading: Instance Property
platforms: [macOS 14.0+]
path: mediaextension/mevideodecoder/recommendedthreadcount
---

# recommendedThreadCount

The recommended number of threads for the decoder to use.

## Declaration

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

## Discussion

Discussion The system sets this property on the extension when Video Toolbox sets kVTDecompressionPropertyKey_ThreadCount on the hosting VTDecompressionSession.

## See Also

### Inspecting a video decoder

- [contentHasInterframeDependencies](mediaextension/mevideodecoder/contenthasinterframedependencies.md)
- [actualThreadCount](mediaextension/mevideodecoder/actualthreadcount.md)
- [supportedPixelFormatsOrderedByQuality](mediaextension/mevideodecoder/supportedpixelformatsorderedbyquality.md)
- [reducedResolution](mediaextension/mevideodecoder/reducedresolution.md)
- [pixelFormatsWithReducedResolutionDecodeSupport](mediaextension/mevideodecoder/pixelformatswithreducedresolutiondecodesupport.md)
- [producesRAWOutput](mediaextension/mevideodecoder/producesrawoutput.md)
- [isReadyForMoreMediaData](mediaextension/mevideodecoder/isreadyformoremediadata.md)
