Help Center/ ModelArts/ Data Preparation/ Dataset Format Requirements/ Format Requirements for Video Datasets
Updated on 2026-07-03 GMT+08:00

Format Requirements for Video Datasets

ModelArts supports the creation of image datasets. During the creation, you can import data in various formats. Table 1 lists the format requirements.

Constraints

  • Import from OBS: The size of a single file or compressed package cannot exceed 20 GB. If multiple files are imported, the total file size cannot exceed 20 GB.
  • Local import: The size of a single file cannot exceed 1 GB, and the number of files cannot exceed 20.
  • JSONL files support only UTF-8 encoding.
Table 1 Format requirements for video datasets

File Content

File Format

Requirement

Video

mp4 and avi

Videos in MP4 and AVI formats can be uploaded. Videos can be stored in multiple folders, and each folder can contain videos in MP4 or AVI format.

Video + Annotation

Video + JSONL

  • The video format can be MP4 and AVI.

The following is an example.

For details about the annotation file in JSONL format, refer to the following:

{
    "video_fn": "13/ad098173-af09-48fe-95c3-e72fd629688e.mp4",
    "prompt": "A person pours a clear liquid from a bottle into a shot glass, then lifts the glass to their mouth and drinks the shot. The background includes a red coat and other indistinct background elements.",
    "long_prompt": "A person is seen pouring a clear liquid from a green glass bottle into a small glass. The individual is wearing a white shirt with a lace collar and a beige cardigan. The background appears to be a cozy indoor setting, possibly a cafe or a restaurant, with red and white elements visible, such as a red coat hanging on the wall and a white table. The person carefully pours the liquid, ensuring it is filled to the brim of the glass. The liquid is clear and has some green leaves floating in it. The person then holds the glass up, possibly to show the contents or to prepare for a drink."
}