<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLActionClassifier/DataSource/directoryWithVideosAndAnnotation(at:annotationFile:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLActionClassifierV10DataSourceO32directoryWithVideosAndAnnotationyAE10Foundation3URLV_AIS3SSgAJtcAEmF"
  },
  "title" : "MLActionClassifier.DataSource.directoryWithVideosAndAnnotation(at:annotationFile:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)"
}
-->

# MLActionClassifier.DataSource.directoryWithVideosAndAnnotation(at:annotationFile:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)

The location of a directory of video files, and the location of an action annotation file.

```
case directoryWithVideosAndAnnotation(at: URL, annotationFile: URL, videoColumn: String, labelColumn: String, startTimeColumn: String? = nil, endTimeColumn: String? = nil)
```

## Parameters

`at`

The location of a directory that contains video files.

`annotationFile`

The location of a JSON or CSV file with object annotations for the images.

`videoColumn`

The name of the column that contains the URLs to the video files.

`labelColumn`

The name of the column that contains the labels of the action the person demonstrates in the video file.

`startTimeColumn`

The name of the column that contains the action’s starting-time in the video file.

`endTimeColumn `

The name of the column that contains the action’s ending-time in the video file.

---

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)