Skip to main content

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

ParameterData TypeRequiredRangeDescription
imagesIMAGEYesBatch of imagesThe input images to be distributed as keyframes.
segment_lengthINTYes1 to 10000Length of this segment in frames (default: 149).
segment_indexINTYes0 to 100Which segment this is (0 for first, 1 for second, etc., default: 0).
audioAUDIOYesAudio dataAudio to calculate total output frames from and extract segment audio.

Outputs

Output NameData TypeDescription
keyframes_sequenceIMAGEPadded keyframe sequence for the specified segment.
keyframes_maskMASKMask indicating valid frames (1 for keyframe positions, 0 for padded positions).
audio_segmentAUDIOAudio segment for this video segment.

Source fingerprint (SHA-256): 93393e39cb1968b6e8720dfad213c16c534857bcfafcc577be64e0733ab3a760