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 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

ParameterData TypeRequiredRangeDescription
imagesIMAGEYesN/AThe input image sequence to be split into segments.
segment_lengthINTYes1 to 10000Length of each segment in frames (default: 149).
num_segmentsINTYes1 to 100How many padded segments to emit as lists (default: 1).
audioAUDIONoN/AAudio to slice for each emitted segment.

Outputs

Output NameData TypeDescription
keyframes_sequenceIMAGEA list of padded keyframe sequences, one for each segment.
keyframes_maskMASKA list of masks indicating valid frames for each segment.
audio_segmentAUDIOA list of audio segments, one for each video segment.

Source fingerprint (SHA-256): f9918166a75f688f1de6a09008780bc629bbdfb3b8d547de9ba8661ef07fc97e