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

# Video Slice - ComfyUI Built-in Node Documentation

> Complete documentation for the Video Slice 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/Video%20Slice/zh.md)

Video Slice 节点允许您从视频中提取特定片段。您可以定义起始时间和持续时间来裁剪视频，或直接跳过开头的帧。如果请求的持续时间超过剩余视频长度，该节点可以返回可用部分或引发错误。

## 输入参数

| 参数名               | 数据类型    | 必填 | 取值范围       | 描述                                                                                |
| ----------------- | ------- | -- | ---------- | --------------------------------------------------------------------------------- |
| `video`           | VIDEO   | 是  | -          | 待裁剪的输入视频。                                                                         |
| `start_time`      | FLOAT   | 否  | -1e5 到 1e5 | 开始裁剪的起始时间（单位：秒）。负值将从视频开头跳过相应帧数。（默认值：0.0）                                          |
| `duration`        | FLOAT   | 否  | 0.0 及以上    | 裁剪片段的长度（单位：秒）。值为 0.0 表示节点将返回从起始时间到视频结尾的所有内容。（默认值：0.0）                             |
| `strict_duration` | BOOLEAN | 否  | -          | 若设为 True，当无法满足请求的持续时间（例如，裁剪范围超出视频结尾）时，节点将引发错误。若为 False，则返回直到视频结尾的可用部分。（默认值：False） |

## 输出结果

| 输出名称    | 数据类型  | 描述        |
| ------- | ----- | --------- |
| `video` | VIDEO | 裁剪后的视频片段。 |
