Skip to main content

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

ParameterDescriptionData TypeRequiredRange
imagesThe input images to be distributed as keyframes.IMAGEYesBatch of images
segment_lengthLength of this segment in frames (default: 149).INTYes1 to 10000
segment_indexWhich segment this is (0 for first, 1 for second, etc., default: 0).INTYes0 to 100
audioAudio to calculate total output frames from and extract segment audio.AUDIOYesAudio data

Outputs

Output NameDescriptionData Type
keyframes_sequencePadded keyframe sequence for the specified segment.IMAGE
keyframes_maskMask indicating valid frames (1 for keyframe positions, 0 for padded positions).MASK
audio_segmentAudio segment for this video segment.AUDIO
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 93393e39cb1968b6e8720dfad213c16c534857bcfafcc577be64e0733ab3a760