Nodes/Difforum/Difforum · Keyframes
ComfyUI Node

Difforum · Keyframes

Pick keyframes out of any frame batch (a Storyboard, a Feedback render, guide frames) for a video model, on that model's frame grid. Outputs the keyframes, their indices, a full-length *sparse* batch (black except at keyframes - what `LTXVAddGuidesFromBatch` expects), the first and last frame (for first-last-frame models) and the snapped clip length.

By chillithebillis·Created 3 months ago·Updated about 7 hours ago· 8
Difforum · Keyframes
  • frames
  • masks
  • keyframes
  • indices
  • sparse_batch
  • first_frame
  • last_frame
  • length
  • key_masks
  • info
◄gridLTX-2 / 2.5 (8k+1)►
◄every_seconds1.00►
◄fps24.00►
◄indices►
CategoryDifforum/5 · Video model bridges

Inputs (6)

NameTypeDefaultDescription
framesIMAGEThe clip to pick keyframes from (Guide Frames, Storyboard, a Feedback render...). Keyframes carry its look into H3 / LTX: better frames here = better video.
gridCOMBOLTX-2 / 2.5 (8k+1)Snap keyframes to the video model's latent grid (H3 17k+5, LTX 8k+1, Wan 4k+1) so each one lands on a real latent frame.
every_secondsFLOAT1.000–60How many keyframes: one every N seconds. 1 = many, strong guidance; 2 = fewer, more freedom; 0 = first and last only. H3 Guides then keeps up to max_guides.
fpsFLOAT24.001–120Frames per second of the clip (from Setup).
indicesoptSTRINGExact frames instead of spacing, e.g. '0, 48, 96, -1' (-1 = last).
masksoptMASKGuide Frames masks, so Fill Reveal can repaint what the camera uncovered.

Outputs (8)

NameTypeDescription
keyframesIMAGE—
indicesSTRING—
sparse_batchIMAGE—
first_frameIMAGE—
last_frameIMAGE—
lengthINT—
key_masksMASK—
infoSTRING—