ComfyUI > Nodes > TrentNodes > Chop Cuts

ComfyUI Node: Chop Cuts

Class Name

ChopCuts

Category
Trent/Video
Author
TrentHunter82 (Account age: 0days)
Extension
TrentNodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install TrentNodes

Install this extension via the ComfyUI Manager by searching for TrentNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter TrentNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Chop Cuts Description

ChopCuts detects scene changes in video frames using adaptive or fixed threshold methods.

Chop Cuts:

ChopCuts is a sophisticated node designed to identify scene changes within a sequence of frames by analyzing the differences between consecutive frames. This node is particularly useful for video editing and processing tasks where detecting scene boundaries is crucial. It offers two primary methods for detecting cuts: an adaptive threshold method and a fixed threshold method. The adaptive method dynamically adjusts the threshold based on a rolling window of frame differences, allowing for more nuanced detection in varying content. The fixed method uses a constant threshold, which can be adjusted to suit the specific needs of the task. By accurately identifying scene changes, ChopCuts enables more efficient video segmentation and editing, making it an invaluable tool for AI artists and video editors.

Chop Cuts Input Parameters:

method

The method parameter determines the approach used for detecting scene changes. It can be set to either "adaptive" or "fixed". The adaptive method calculates a local average threshold based on a rolling window of frame differences, which allows for more flexible detection in dynamic scenes. The fixed method uses a constant threshold, which is simpler and may be more suitable for content with consistent characteristics. Choosing the right method impacts the accuracy and sensitivity of scene detection.

threshold

The threshold parameter sets the baseline for detecting significant changes between frames. In the adaptive method, this threshold is used to calculate a minimum threshold floor, while in the fixed method, it directly determines the sensitivity of cut detection. A higher threshold may result in fewer detected cuts, while a lower threshold could increase sensitivity, potentially identifying more scene changes. Adjusting this parameter is crucial for balancing detection accuracy and sensitivity.

min_scene_frames

The min_scene_frames parameter specifies the minimum number of frames that must exist between detected scene boundaries. This helps prevent false positives by ensuring that only significant scene changes are recognized. Setting this parameter too low may result in excessive scene cuts, while setting it too high could miss important transitions. It is essential to adjust this parameter based on the expected scene duration in the video content.

Chop Cuts Output Parameters:

scene_boundaries

The scene_boundaries output parameter provides a list of frame indices where scene changes have been detected. Each index represents the start of a new scene, allowing you to segment the video accordingly. This output is crucial for tasks such as video editing, where precise scene boundaries are needed for cutting, rearranging, or applying effects to specific segments.

Chop Cuts Usage Tips:

  • Use the adaptive method for videos with varying content and lighting conditions to achieve more accurate scene detection.
  • Adjust the threshold parameter based on the content type; for fast-paced videos, a lower threshold might be necessary to capture quick scene changes.
  • Set the min_scene_frames parameter according to the average scene length in your video to avoid detecting too many or too few cuts.

Chop Cuts Common Errors and Solutions:

Error exporting <filename>

  • Explanation: This error occurs when there is an issue exporting the detected scene boundaries to a file, possibly due to file permission issues or incorrect file paths.
  • Solution: Ensure that the file path is correct and that you have the necessary permissions to write to the destination directory. Check for any typos in the filename or path.

Cut at frame <frame_idx> (diff: <diff>, thresh: <adaptive_thresh>)

  • Explanation: This message is not an error but an informational log indicating that a scene cut has been detected at a specific frame index with the given difference and threshold values.
  • Solution: No action is needed as this is part of the normal operation of the node. If you wish to reduce the number of detected cuts, consider adjusting the threshold or min_scene_frames parameters.

Chop Cuts Related Nodes

Go back to the extension to check out more related nodes.
TrentNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Chop Cuts