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.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Overview
This node prepares a sequence of keyframes for a specific segment of a longer video generation process. It takes a batch of input images and an audio track, calculates how many total frames the full video should have based on the audio duration, and then distributes the input images as keyframes across the chosen segment, padding the rest with blank frames. It also extracts the corresponding portion of the audio for that segment.Inputs
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
images | IMAGE | Yes | Batch of images | The input images to be distributed as keyframes. |
segment_length | INT | Yes | 1 to 10000 | Length of this segment in frames (default: 149). |
segment_index | INT | Yes | 0 to 100 | Which segment this is (0 for first, 1 for second, etc., default: 0). |
audio | AUDIO | Yes | Audio data | Audio to calculate total output frames from and extract segment audio. |
Outputs
| Output Name | Data Type | Description |
|---|---|---|
keyframes_sequence | IMAGE | Padded keyframe sequence for the specified segment. |
keyframes_mask | MASK | Mask indicating valid frames (1 for keyframe positions, 0 for padded positions). |
audio_segment | AUDIO | Audio segment for this video segment. |
Source fingerprint (SHA-256):
93393e39cb1968b6e8720dfad213c16c534857bcfafcc577be64e0733ab3a760