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

> 将多个视频片段拼接为单个视频，并保持它们连接时的顺序。

将多个视频片段拼接为单个视频，并保持它们连接时的顺序。兼容的已编码输入会在不解码的情况下合并，并且可以提供可选的独立音轨来替换原始音频。

## 输入

| 参数               | 描述                                                                    | 数据类型  | 必需 | 范围                                |
| ---------------- | --------------------------------------------------------------------- | ----- | -- | --------------------------------- |
| `videos`         | 按输入顺序拼接的视频片段。连接 1 到 100 个视频；每个视频会显示为单独的输入槽，标记为 `video_1`、`video_2` 等。 | VIDEO | 是  | 1 到 100 个片段                       |
| `codec`          | 用于编码视频张量的编解码器。自动模式使用 H.264；兼容的已编码输入保持不变。默认值："auto"                    | COMBO | 是  | `"auto"`<br />其他选项由可用的视频编解码器类型定义。 |
| `complete_audio` | 可选的完整音轨，用于拼接后的视频。会覆盖输入视频携带的音频。                                        | AUDIO | 否  | N/A                               |

**注意：** `videos` 输入接受 1 到 100 个视频片段。如果提供了 `complete_audio`，它将替换所有输入视频的音频。当 `codec` 设置为 "auto" 时，兼容的已编码输入会在不解码的情况下进行拼接。

## 输出

| 输出名称    | 描述      | 数据类型  |
| ------- | ------- | ----- |
| `VIDEO` | 拼接后的视频。 | VIDEO |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ConcatenateVideo/zh.md)

***

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