Skip to main content

Overview

This node takes a sequence of images and an optional audio track, and splits them into a specified number of padded segments. It is designed to prepare keyframe sequences for video generation, where each segment is padded to a consistent length and a corresponding mask is created to indicate which frames are valid.

Inputs

ParameterDescriptionData TypeRequiredRange
imagesThe input image sequence to be split into segments.IMAGEYesN/A
segment_lengthLength of each segment in frames (default: 149).INTYes1 to 10000
num_segmentsHow many padded segments to emit as lists (default: 1).INTYes1 to 100
audioAudio to slice for each emitted segment.AUDIONoN/A

Outputs

Output NameDescriptionData Type
keyframes_sequenceA list of padded keyframe sequences, one for each segment.IMAGE
keyframes_maskA list of masks indicating valid frames for each segment.MASK
audio_segmentA list of audio segments, one for each 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): f9918166a75f688f1de6a09008780bc629bbdfb3b8d547de9ba8661ef07fc97e