ComfyTV/Videogenerated

Video Clip(VideoClipStage)

The Video Clip node trims a COMFYTV_VIDEO to a time range specified in seconds. It is part of the ComfyTV package and appears under ComfyTV/Video.

Video Clip Stage

video
video
start_s
0.00
end_s
0.00
ComfyTV

Description

The Video Clip node trims a COMFYTV_VIDEO to a time range specified in seconds. It is part of the ComfyTV package and appears under ComfyTV/Video. Use it when you need to extract a section of a video before passing it to further video processing, preview, or saving nodes.

The node is implemented by the VideoClipStage class. Its two timing widgets define the start and end of the clip, and the optional video input supplies the source video to trim.

Inputs

start_s

FLOAT, required. Default: 0. Minimum: 0. Maximum: 3600. Step: 0.01.

The time in seconds where the clip should begin. The value is measured from the start of the source video. Because the step is 0.01, start times can be set with hundredth-of-a-second precision, up to one hour.

end_s

FLOAT, required. Default: 0. Minimum: 0. Maximum: 3600. Step: 0.01.

The time in seconds where the clip should end. Set this higher than start_s to define a non-empty segment. Like start_s, it uses seconds rather than frame counts and supports values up to 3600 seconds with 0.01 precision.

Both timing widgets default to 0. With the defaults, the node does not define a non-zero-length segment until end_s is raised above start_s.

video

COMFYTV_VIDEO, optional.

The source video to clip. Connect any node that outputs the ComfyTV video type. If no video is connected, the node has no source material to trim, so connect a COMFYTV_VIDEO source for meaningful output.

Outputs

video output

COMFYTV_VIDEO.

The trimmed video segment. The output can be connected to other ComfyTV video nodes, such as preview, save, or further processing stages. Because the output uses the ComfyTV video type, it is intended to stay within the ComfyTV video workflow rather than being a raw file path.

Usage Notes

  • Times are expressed in seconds, not frames. This makes the clip range independent of the source video's frame rate.
  • Set start_s to the beginning of the desired section and end_s to the end of that section. For a valid non-empty clip, end_s should be greater than start_s.
  • The controls allow clips from 0 to 3600 seconds, so the maximum range is one hour per node. For longer sources, use additional clipping stages or adjust the workflow accordingly.
  • The video input is optional, but a source video is required to produce a useful trimmed result. Connect a COMFYTV_VIDEO output from a loader or another video stage before this node.
  • The node outputs a new COMFYTV_VIDEO; it does not modify the original input video in place.
  • Use this node early in a video pipeline when downstream steps should operate only on the selected segment.

Comments

Sign in with GitHub to join the discussion.

Loading comments…