ComfyUI > Nodes > ComfyUI > Video Slice

ComfyUI Node: Video Slice

Class Name

Video Slice

Category
video
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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

Video Slice Description

Extract specific video segments for focused processing, editing, and analysis with precise time control and accurate trimming.

Video Slice:

The Video Slice node is designed to extract a specific segment from a video file, allowing you to focus on a particular portion of the video for further processing or analysis. This node is particularly useful when you need to work with a specific timeframe within a video, such as for editing, analysis, or creating highlights. By specifying the start time and duration, you can precisely control which part of the video is retained, making it an essential tool for tasks that require video manipulation. The node ensures that the slicing operation is performed accurately, providing a trimmed video segment that meets your specified criteria.

Video Slice Input Parameters:

video

This parameter represents the video file from which you want to extract a segment. It serves as the source material for the slicing operation. The video should be in a compatible format that the node can process.

start_time

This parameter specifies the starting point of the video segment you wish to extract, measured in seconds from the beginning of the video. It determines where the slicing operation will begin, allowing you to target the exact moment you want to capture.

duration

This parameter defines the length of the video segment to be extracted, measured in seconds. It determines how long the resulting video slice will be, starting from the specified start time. This allows you to control the extent of the video segment you want to work with.

strict_duration

This boolean parameter indicates whether the node should enforce the exact duration specified, even if it means cutting off the video at the end. If set to true, the node will ensure the output video matches the specified duration exactly, which is useful for precise editing tasks.

Video Slice Output Parameters:

trimmed

The output is a trimmed video segment that matches the specified start time and duration. This video slice is a standalone segment that can be used for further processing, analysis, or playback. It retains the original quality and format of the input video, ensuring that the extracted segment is ready for use in your projects.

Video Slice Usage Tips:

  • Ensure that the start_time and duration parameters are set correctly to capture the desired segment of the video. Double-check these values to avoid extracting unintended portions.
  • Use the strict_duration parameter to control whether the output video should strictly adhere to the specified duration. This is particularly useful when you need precise control over the length of the video segment.

Video Slice Common Errors and Solutions:

Failed to slice video

  • Explanation: This error occurs when the specified start time and duration exceed the actual length of the video, making it impossible to extract the desired segment.
  • Solution: Verify that the start_time and duration parameters are within the bounds of the video's total duration. Adjust these values to ensure they fit within the video's length.

Video Slice Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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.

Video Slice