This ComfyUI workflow performs automatic video object masking from a simple text phrase using the SAM3 Video Masking node (ID: 9cea40bb-b0cf-4b40-a758-8935cfe8d52f). You load a clip with VHS_LoadVideo, describe what you want to isolate (for example, "red car" or "person") in the node’s mask_prompt, and the system finds every matching instance, tracks them across frames with stable IDs, and produces three streams: a mask overlay preview, a raw per-frame binary mask, and a subject cut-out. SaveVideo nodes handle exporting the results.

Technically, VHS_LoadVideo provides a consistent frame sequence (fps, resolution) for inference. During iteration you can cap frames using frame_load_cap to preview quickly, then switch to a full pass by setting it to 0. The SAM3 Video Masking node interprets your text prompt, segments the target across frames, and maintains identity continuity so objects don’t flicker or swap. The outputs are suitable for downstream compositing, selective blurring, color grading, or background replacement. A MarkdownNote node in the graph provides inline tips and reminders while you work.

FAQ

Frequently Asked Questions

View all workflows

Seedance 2.0: Reference to Video

ByteDance
ComfyUIComfyUI
Partner Nodes
Image to Video
Video
Nano Banana 2 Lite: Text to Image

Nano Banana 2 Lite: Text to Image

Nano Banana 2
ComfyUIComfyUI
Partner Nodes
Text to Image
Seedream 5.0 Pro: Image Edit - After
Seedream 5.0 Pro: Image Edit - Before

Seedream 5.0 Pro: Image Edit

ComfyUIComfyUI
Partner Nodes
Image Edit
Krea-2: Text to Image

Krea-2: Text to Image

ComfyUIComfyUI
Text to Image

4K Seedance 2.0 - Reference to Video

Seedance 2.0
PurzPurz
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Z-Image-Turbo Text to Image

Z-Image-Turbo Text to Image

ComfyUIComfyUI
Image
Text to Image
Grok: Image Edit - After
Grok: Image Edit - Before

Grok: Image Edit

ComfyUIComfyUI
Partner Nodes
Image Edit
Nano Banana 2 Lite: Image Edit - After
Nano Banana 2 Lite: Image Edit - Before

Nano Banana 2 Lite: Image Edit

ComfyUIComfyUI
Partner Nodes
Image Edit

Grok: Video generation

Grok
ComfyUIComfyUI
Video
Image to Video
Text to Video
Partner Nodes

Seedance2.0 4K: Reference to Video

ComfyUIComfyUI
Partner Nodes
Image to Video
Grok Imagine Image Quality: Generation

Grok Imagine Image Quality: Generation

ComfyUIComfyUI
Text to Image
Partner Nodes

LTX 2.3 - Lipdub LoRA + Voice Clone

RobRob
Audio Editing
Character
Video Edit
Video to Video
Voice Cloning
Text to Audio

1 image input Split Stack - Qwen Multiangle + Wan 2.2

Wan2.2
RobRob
Video

Seedance 2.0 Mini: Reference to Video

ComfyUIComfyUI
Partner Nodes
Image to Video

SCAIL-2: Character Replacement

ComfyUIComfyUI
Video Edit
Ideogram v4: Text to Image

Ideogram v4: Text to Image

ComfyUIComfyUI
Text to Image

Googly Eyes

LTX-2.3
PurzPurz
Video to Video
Video
Video Edit
LoRA

Seedance 2.0 - Viral Videos Character Swap

RobRob
Character Reference
Image to Video
Video to Video
Video Generation
Text Generation

Seedance 2.0 Reference to Video - Concept Art + Stop Motion Style

Seedance 2.0
MintaMinta
Video

Gemini Omni Flash: Image to Video

ComfyUIComfyUI
Image to Video
Nano Banana 2: Image Edit

Nano Banana 2: Image Edit

Google
ComfyUIComfyUI
Partner Nodes
Image Edit
cinematic_annotate_video

cinematic_annotate_video

SirolimSirolim
Video
Video Generation
Image to Video

HappyHorse 1.1: Text to Video

ComfyUIComfyUI
Partner Nodes
Text to Video
Video

HappyHorse 1.1: Image to Video

ComfyUIComfyUI
Image to Video
Video
Partner Nodes

Beeble SwitchX: Video Edit

ComfyUIComfyUI
Image Edit
3x3 Contact Sheet

3x3 Contact Sheet

enigmatic_eenigmatic_e
Image

Restore Archival Footage - LTX 2.3 Dearchive LoRA

RobRob
Video Edit
Video
Video Generation
Video to Video
Seedream 5.0 Pro: Text to Image

Seedream 5.0 Pro: Text to Image

ComfyUIComfyUI
Text to Image
Partner Nodes

Gemini Omni Flash: Text to Video

ComfyUIComfyUI
Partner Nodes
Text to Video

Remove Object from Video - LTX 2.3 Obscura Remova LoRA

RobRob
Video Edit
Video
Video to Video
Showing 30 of 563 templates