---
title: "MLActionClassifier.DataSource.directoryWithVideosAndAnnotation(at:annotationFile:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/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.

## Declaration

```swift
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.

## See Also

### Creating a data source

- [MLActionClassifier.DataSource.labeledDirectories(at:)](createml/mlactionclassifier/datasource/labeleddirectories(at:).md)
- [MLActionClassifier.DataSource.labeledFiles(at:)](createml/mlactionclassifier/datasource/labeledfiles(at:).md)
- [MLActionClassifier.DataSource.labeledVideoData(table:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)](createml/mlactionclassifier/datasource/labeledvideodata(table:videocolumn:labelcolumn:starttimecolumn:endtimecolumn:).md)
