> ## 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.

# ConcatenateVideo - ComfyUI Built-in Node Documentation

> Concatenates multiple video segments into a single video, preserving the order in which they are connected.

Concatenates multiple video segments into a single video, preserving the order in which they are connected. Compatible encoded inputs are combined without being decoded, and an optional separate audio track can be supplied to replace the original audio.

## Inputs

| Parameter        | Description                                                                                                                                           | Data Type | Required | Range                                                                       |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | --------------------------------------------------------------------------- |
| `videos`         | Video segments to concatenate in input order. Connect 1 to 100 videos; each video appears as a separate input slot labeled `video_1`, `video_2`, etc. | VIDEO     | Yes      | 1 to 100 segments                                                           |
| `codec`          | Codec used to encode video tensors. Auto uses H.264; already encoded videos remain unchanged. Default: "auto"                                         | COMBO     | Yes      | `"auto"`<br />Other options are defined by the available video codec types. |
| `complete_audio` | Optional complete soundtrack for the concatenated video. Overrides audio carried by the input videos.                                                 | AUDIO     | No       | N/A                                                                         |

**Note:** The `videos` input accepts between 1 and 100 video segments. If `complete_audio` is provided, it replaces the audio of all input videos. When `codec` is set to "auto", compatible encoded inputs are concatenated without decoding.

## Outputs

| Output Name | Description             | Data Type |
| ----------- | ----------------------- | --------- |
| `VIDEO`     | The concatenated video. | VIDEO     |

> 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/ConcatenateVideo/en.md)

***

**Source fingerprint (SHA-256):** `f591aecb83754127e1c86ed0488548f9e7d99f3559c95a1c86c55fa5d430713d`
