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-CustomNodePacks > Video Mask Editor (C2C)

ComfyUI Node: Video Mask Editor (C2C)

Class Name

VideoMaskEditorMEC

Category
C2C/VideoMask
Author
Code2Collapse (Account age: 1184days)
Extension
ComfyUI-CustomNodePacks
Latest Updated
2026-07-29
Github Stars
0.05K

How to Install ComfyUI-CustomNodePacks

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

Facilitates precise per-frame video mask editing with keyframe interpolation for consistent masking in video sequences.

Video Mask Editor (C2C):

The VideoMaskEditorMEC node is designed to facilitate precise per-frame mask editing across an entire video batch. It provides an intuitive in-browser video mask editor equipped with tools such as brush, erase, fill, lasso, and onion-skin, allowing you to define keyframes for specific frames. The node then interpolates the non-keyframed frames using distance-transform interpolation, ensuring smooth transitions and consistent mask application throughout the video. This node is particularly beneficial for artists and creators who need to apply detailed and consistent masking across video sequences, enhancing the quality and precision of video editing tasks.

Video Mask Editor (C2C) Input Parameters:

image

The image parameter expects a 4-dimensional tensor representing the video frames to be processed. This input is crucial as it forms the basis upon which the mask editing operations are performed. The tensor should have dimensions corresponding to batch size, height, width, and color channels. Ensuring the correct format and dimensions is essential for the node to function properly.

session_id

The session_id is a string identifier used to manage and track the editing session. It is important for maintaining continuity and consistency across editing operations. An empty or incorrect session ID will result in errors, as it is necessary for the node to associate the editing actions with the correct session.

tween_mode

The tween_mode parameter determines the method used to interpolate non-keyframed frames. The default option is "distance_transform," which provides smooth transitions between keyframes. This parameter allows you to control how the node fills in the gaps between manually edited frames, impacting the overall fluidity and coherence of the mask application.

feather

The feather parameter is a float value that specifies the Gaussian feather radius in pixels. It ranges from 0.0 to 32.0, with a default of 0.0, indicating no feathering. Feathering softens the edges of the mask, creating a more natural blend with the surrounding pixels. Adjusting this parameter can help achieve smoother transitions and reduce harsh edges in the mask.

threshold

The threshold parameter is a float value ranging from 0.0 to 1.0, with a default of 0.0. It is used to binarize the mask after tweening, where 0.0 retains a soft mask and higher values create a more defined binary mask. This parameter is useful for controlling the sharpness and clarity of the mask edges, depending on the desired effect.

input_mask

The input_mask is an optional tensor that serves as a fallback mask if no keyframes are set. This parameter provides a default mask to be used across the video, ensuring that there is always a baseline mask applied even if specific keyframes are not defined.

Video Mask Editor (C2C) Output Parameters:

mask

The mask output is a tensor representing the edited mask for each frame in the video batch. This output is the result of the mask editing and interpolation process, providing a detailed and consistent mask that can be used for further video processing or effects.

info

The info output is a string containing metadata and diagnostic information about the mask editing session. This information can include details about the interpolation method used, session ID, and any other relevant data that can assist in understanding the editing process and results.

Video Mask Editor (C2C) Usage Tips:

  • Ensure that the image input is correctly formatted as a 4-dimensional tensor to avoid errors and ensure smooth processing.
  • Use the feather parameter to soften mask edges for a more natural look, especially when blending masks with complex backgrounds.
  • Experiment with different tween_mode settings to find the best interpolation method for your specific video content and desired effect.

Video Mask Editor (C2C) Common Errors and Solutions:

"image must be IMAGE tensor (B,H,W,C)"

  • Explanation: This error occurs when the input image tensor does not have the correct dimensions or format.
  • Solution: Verify that the input image is a 4-dimensional tensor with the correct batch size, height, width, and color channels.

" Video Mask Editor (C2C): session_id is empty. Open the node's"

  • Explanation: This error indicates that the session_id parameter is missing or empty, which is necessary for tracking the editing session.
  • Solution: Ensure that a valid session_id is provided to maintain session continuity and avoid processing errors.

Video Mask Editor (C2C) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CustomNodePacks
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 Mask Editor (C2C)