Nodes/ComfyUI_VideoChunkTools/Extract Video Chunk
ComfyUI Node

Extract Video Chunk

Extract chunk N from a video for rolling-reference generation. Chunks overlap by overlap_frames so they can be blended later.

By gregtee2·Created 6 months ago·Updated 6 months ago· 2
Extract Video Chunk
  • images
  • chunk
  • total_chunks
  • chunk_index
  • is_last_chunk
chunk_index0
chunk_frames81
overlap_frames16
CategoryVideoChunkTools

Inputs (4)

NameTypeDefaultDescription
imagesIMAGEFull driving video / image sequence to chunk
chunk_indexINT00–1000Which chunk to extract (0-based)
chunk_framesINT812–2000Number of frames per chunk. For Wan models, use values like 81, 97, 113, 129 (must be 1 mod 4: ((n-1)//4)*4+1)
overlap_framesINT160–200Number of frames that overlap between adjacent chunks. These will be crossfaded by BlendVideoChunks.

Outputs (4)

NameTypeDescription
chunkIMAGE
total_chunksINT
chunk_indexINT
is_last_chunkBOOLEAN