Nodes/ComfyUI CoolB Nodes/CB Roll and Trim Video Frames ⚡️
ComfyUI Node

CB Roll and Trim Video Frames ⚡️

Rolls the clip by an integer offset first, then trims frames from the start/end. Returns trimmed video, removed start frames, and removed end frames. For example, inputing images={A B C D E F G} with offset=3, trim_start=1 and trim_end=2 will return trimmed_video={F G A B}, start_frames={E} and end_frames={C D}

By CoolBreeze164·Created about a month ago·Updated a day ago· 3
CB Roll and Trim Video Frames ⚡️
  • images
  • trimmed_video
  • start_frames
  • end_frames
◄offset0►
◄trim_start0►
◄trim_end0►
CategoryCoolB Nodes ⚡️

Inputs (4)

NameTypeDefaultDescription
imagesIMAGEInput video frames
offsetINT0-9999–9999Roll amount. Positive = frame indices shift forward with modulo wrapping; negative = backward.
trim_startINT00–1000Number of frames to remove from the start (after rolling).
trim_endINT00–1000Number of frames to remove from the end (after rolling).

Outputs (3)

NameTypeDescription
trimmed_videoIMAGE—
start_framesIMAGE—
end_framesIMAGE—