<!--
{
  "availability" : [
    "ProVideo Encoder Extensions: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Professional Video Applications",
  "identifier" : "/documentation/professional_video_applications/CompressorMediaDecoder/copyCloseCaptionData(_:frameCount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)CompressorMediaDecoder(im)copyCloseCaptionData:frameCount:"
  },
  "title" : "copyCloseCaptionData(_:frameCount:)"
}
-->

# copyCloseCaptionData(_:frameCount:)

Returns a list of closed-caption tracks associated with the specified video frames.

```
func copyCloseCaptionData(_ startFrame: Int64, frameCount: Int64) -> [AnyHashable : Any]!
```

## Parameters

`startFrame`

The frame number at which to start collecting the closed-caption data.

`frameCount`

The number of frames to retrieve the closed-caption data from.

## Return Value

`nil` if closed-caption data is not available. Otherwise, it returns a dictionary with a frame number as the key, and a value that’s an array of 16-bit integers representing the closed-caption data.

## Discussion> Note:
> The decoder object supports only CEA-608 closed-caption format.

---

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)