Nodes/SceneCut/SceneCut Refine
ComfyUI Node

SceneCut Refine

Turn raw detections into clean shots: handle transitions, merge shots that are too short, snap cuts to the exact frame.

By PedroMarinhoDev·Created 16 days ago·Updated 8 days ago· 7
SceneCut Refine
  • scenes
  • scenes
  • shot_count
  • summary
  • images
◄transitionsmerge_previous►
◄min_shot_seconds0.40►
◄snap_radius2►
◄ultra_short_seconds0.05►
◄output_imagesoff►
CategorySceneCut/advanced

Inputs (6)

NameTypeDefaultDescription
scenesSCENECUT_SCENES—
transitionsCOMBOmerge_previousWhat to do with transitions (dissolves, wipes, fades...). merge_previous: the transition becomes the end of the shot before it. merge_next: the start of the shot after it. split: the cut goes in the middle. keep: transitions stay as their own segments. Merged transitions are still recorded on the shot that absorbed them.
min_shot_secondsFLOAT0.400–10Shots shorter than this merge into their longer neighbour. 0 disables.
snap_radiusINT20–12Move each cut up to this many frames to the frame with the largest pixel change. 0 disables.
ultra_short_secondsFLOAT0.050–1Final clean-up: fragments this short merge into a neighbour whatever their kind. 0 disables.
output_imagesCOMBOoffAlso send frames to the images output, from the selected scenes (all scenes when none are selected). all frames: every frame, in order. first / middle frame per scene: one image per scene. off: the images output carries a single black frame. Frames are full resolution float32 (about 25 MB per 1080p frame), so prefer one per scene or select scenes first.

Outputs (4)

NameTypeDescription
scenesSCENECUT_SCENES—
shot_countINT—
summarySTRING—
imagesIMAGEFrames chosen by output_images (a single black frame when off).