Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-MAINodes > MAI Select Every Nth

ComfyUI Node: MAI Select Every Nth

Class Name

MAISelectEveryNth

Category
image/minimax/video
Author
matlowai (Account age: 1004days)
Extension
ComfyUI-MAINodes
Latest Updated
2026-08-26
Github Stars
0.11K

How to Install ComfyUI-MAINodes

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

MAI Select Every Nth Description

Efficiently extract every n-th frame from image sequences with specified offset for video processing tasks.

MAI Select Every Nth:

The MAISelectEveryNth node is designed to efficiently extract every n-th frame from a sequence of images, starting from a specified offset. This functionality is particularly useful in video processing tasks where you need to sample frames at regular intervals, such as creating time-lapse videos or analyzing periodic events in a video stream. By allowing you to specify both the interval and the starting point, this node provides flexibility in selecting frames that best suit your project's needs. It is a straightforward yet powerful tool for managing large sets of images, ensuring that you can focus on the most relevant frames without manually sifting through the entire sequence.

MAI Select Every Nth Input Parameters:

images

This parameter represents the sequence of images from which frames will be selected. It is the primary input and should be a collection of images, such as a video or a series of frames extracted from a video. The node processes this input to extract frames based on the specified interval and offset.

every

The every parameter determines the interval at which frames are selected from the input sequence. It is an integer value with a default of 4, meaning every fourth frame will be selected by default. The minimum value is 1, allowing for every frame to be selected, while the maximum is 256, providing flexibility for sparse sampling. Adjusting this parameter allows you to control the density of the frame selection, which can be crucial for tasks requiring different levels of detail or analysis.

offset

The offset parameter specifies the starting point in the sequence from which the frame selection begins. It is an integer with a default value of 0, meaning the selection starts from the first frame. The minimum value is 0, and the maximum is 100,000, accommodating very large sequences. This parameter is useful for skipping initial frames that may not be relevant to your analysis or for aligning the frame selection with specific events in the video.

MAI Select Every Nth Output Parameters:

IMAGE

The output is a sequence of images that have been selected based on the specified interval and offset. This output allows you to work with a reduced set of frames, making it easier to perform further processing or analysis. The selected frames are returned in the same format as the input, ensuring compatibility with subsequent nodes or processes in your workflow.

MAI Select Every Nth Usage Tips:

  • To create a time-lapse effect, set the every parameter to a higher value to select frames at wider intervals.
  • Use the offset parameter to skip over introductory or irrelevant sections of a video, starting the frame selection at a more meaningful point.

MAI Select Every Nth Common Errors and Solutions:

IndexError: list index out of range

  • Explanation: This error may occur if the offset is set too high, exceeding the number of available frames in the input sequence.
  • Solution: Ensure that the offset value is within the range of the total number of frames in the input sequence.

ValueError: invalid literal for int() with base 10

  • Explanation: This error can happen if non-integer values are provided for the every or offset parameters.
  • Solution: Double-check that both every and offset are set to valid integer values within their specified ranges.

MAI Select Every Nth Related Nodes

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

MAI Select Every Nth