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

# VideoFrameSample - ComfyUI Built-in Node Documentation

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

`VideoFrameSample` 节点使用四种策略之一从视频中提取固定数量的帧。对于连续策略 "head" 和 "tail"，输出为惰性视频引用（帧不会被解码）；对于非连续策略 "uniform" 和 "random"，仅解码选定的帧。

## 输入

| 参数     | 描述                          | 数据类型  | 是否必需 | 范围                                                      |
| ------ | --------------------------- | ----- | ---- | ------------------------------------------------------- |
| `视频`   | 输入视频。                       | VIDEO | 是    | –                                                       |
| `帧数`   | 要采样的帧数（默认：16）。              | INT   | 是    | 1 – 9999                                                |
| `采样策略` | 采样策略（默认："uniform"）。         | COMBO | 是    | `"uniform"`<br />`"head"`<br />`"tail"`<br />`"random"` |
| `随机种子` | 随机种子，仅用于 "random" 策略（默认：0）。 | INT   | 是    | 0 – 18446744073709551615                                |

* `num_frames` 会自动被限制为输入视频的总帧数。
* 除非 `strategy` 设置为 `"random"`，否则 `seed` 参数无效。

## 输出

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

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

***

**Source fingerprint (SHA-256):** `727504a9cf7fe5505c33da071cb8f21a38e1b7c0f964c5da172d9cedfc2f2300`
