Nodes/ComfyUI_KubaNodes/kubakub retime
ComfyUI Node

kubakub retime

Changes the speed of frames with in-between frames from optical flow (or a blend): 0.5 = half speed, twice the frames; 2 = double speed. Or give the exact number of frames.

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
kubakub retime
  • images
  • images
  • frame_count
  • fps
  • seconds
◄speed0.50►
◄frames0►
◄modeflow►
◄fps0.000►
Categorykubakub/2d/post

Inputs (5)

NameTypeDefaultDescription
imagesIMAGEThe frames to retime (at least 2).
speedFLOAT0.500.05–16Below 1 = slow motion.
framesINT00–100000Exact output length instead of speed (0 = use speed).
modeCOMBOflowflow = moving in-betweens (optical flow); blend = cross-fade; nearest = repeat / drop frames.
fpsoptFLOAT0.0000–1000Frames per second of the frames you give (0 = unknown). Only for the fps and seconds outputs.

Outputs (4)

NameTypeDescription
imagesIMAGE—
frame_countINT—
fpsFLOATThe fps to play the result at (0 = no fps given). By speed: the same fps, the slow or fast motion is in the frames. By an exact frames count: fps x frames out / frames in, so the clip lasts as long as before.
secondsFLOATLength of the result in seconds at that fps (0 = no fps given).