ComfyUI Nodes
Playbook Video
A node that processes video frames from a URL or default input.
Overview
The Playbook Video node processes video frames from an input URL or a default video input. It allows frame selection based on specific parameters, such as skipping initial frames, selecting every nth frame, and limiting the number of loaded frames.
🛠️ Node Configuration
Inputs
Name | Type | Required | Default | Description |
---|---|---|---|---|
id | STRING | ✅ | “Node ID” | Unique identifier for the node. |
label | STRING | ✅ | “Node Label” | Label for the node. |
frame_load_cap | INT | ✅ | 0 | Maximum number of frames to load (0 means no limit). |
skip_first_frames | INT | ✅ | 0 | Number of initial frames to skip. |
select_every_nth | INT | ✅ | 1 | Select every nth frame to include in processing. |
default_value | IMAGE | ❌ | None | Default image frames if no valid video is available. |
default_url | STRING | ❌ | "" | URL of the video to process. |
Outputs
Name | Type | Description |
---|---|---|
images | IMAGE | Processed frames from the video input. |
⚙️ Functionality
- If
default_url
is provided, the node attempts to download and process the video. - Frames are converted from BGR to RGB and normalized to the
0-1
range. - If no valid URL is provided, the node returns
default_value
if available. - Uses OpenCV (
cv2
) for frame extraction and PyTorch (torch
) for tensor conversion.