> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# LoadVideoTextDataSetFromFolder - ComfyUI Built-in Node Documentation

> Complete documentation for the LoadVideoTextDataSetFromFolder node in ComfyUI. Learn its inputs, outputs, parameters and usage.

This node loads a dataset of video files and their corresponding text captions from a specified subfolder inside the ComfyUI input directory. It returns two lists: lazy video references (frames are decoded only when needed downstream) and their associated captions. The node supports common video formats such as MP4, AVI, MOV, WEBM, MKV, and FLV, and can also handle nested folder structures with repeat‑count prefixes (e.g. `5_classname/`) used by tools like kohya‑ss/sd‑scripts.

## Inputs

| Parameter | Description                                                                                                                         | Data Type | Required | Range                                                                     |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------------------------------------------------- |
| `folder`  | The subfolder containing video files and `.txt` caption files. Select from the available subfolders in the ComfyUI input directory. | STRING    | Yes      | Combo: dynamic list of all subdirectories inside the ComfyUI input folder |

## Outputs

| Output Name | Description                                                                                                                                                                            | Data Type     |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| `videos`    | Lazy references to the loaded video files. Frames are decoded only when connected to a downstream node that processes them. Each element corresponds to a video from the input folder. | VIDEO (list)  |
| `texts`     | List of text captions, one per video. If a video does not have a matching `.txt` file, its caption is an empty string.                                                                 | STRING (list) |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/LoadVideoTextDataSetFromFolder/en.md)

***

**Source fingerprint (SHA-256):** `91236fcb1e42b8de1a1100b0aecaad49bd49c159d7d8f502032cd7f5b2b54845`
