> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ReplaceVideoLatentFrames - ComfyUI Built-in Node Documentation

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

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

ReplaceVideoLatentFrames 节点将源潜在视频中的帧插入到目标潜在视频中，从指定的帧索引开始。如果未提供源潜在视频，则目标潜在视频将原样返回。该节点支持负索引，并且如果源帧无法完全放入目标视频中，会发出警告。

## 输入参数

| 参数名           | 数据类型   | 必填 | 取值范围                               | 描述                                            |
| ------------- | ------ | -- | ---------------------------------- | --------------------------------------------- |
| `destination` | LATENT | 是  | -                                  | 目标潜在视频，其帧将被替换。                                |
| `source`      | LATENT | 否  | -                                  | 提供要插入到目标潜在视频中的帧的源潜在视频。如果未提供，则目标潜在视频将原样返回。     |
| `index`       | INT    | 否  | -MAX\_RESOLUTION 到 MAX\_RESOLUTION | 目标潜在视频中开始放置源潜在视频帧的起始潜在帧索引。负值表示从末尾开始计数（默认值：0）。 |

**约束条件：**

* `index` 必须在目标潜在视频的帧数范围内。如果超出范围，将记录警告并原样返回目标视频。
* 从指定的 `index` 开始，源潜在视频的帧必须能完全放入目标潜在视频的帧中。如果不能，将记录警告并原样返回目标视频。

## 输出结果

| 输出名称     | 数据类型   | 描述               |
| -------- | ------ | ---------------- |
| `output` | LATENT | 执行帧替换操作后得到的潜在视频。 |
