Nodes/Steerable Motion/Video Frame Extractor & Mask Generator πŸŽžοΈπŸ…’πŸ…œ
ComfyUI Node

Video Frame Extractor & Mask Generator πŸŽžοΈπŸ…’πŸ…œ

Extracts/places frames from input/depth video into a new guidance video and generates corresponding masks. frame_selection_string takes precedence over depth frames.

By banodocoΒ·Created 3 years agoΒ·Updated 10 months agoΒ· 974
Video Frame Extractor & Mask Generator πŸŽžοΈπŸ…’πŸ…œ
  • input_video_frames
  • depth_video_frames
  • master_inpaint_mask
  • guidance_video_frames
  • guidance_frame_masks
β—„total_output_frames81β–Ί
β—„frame_selection_string0, 10:20β–Ί
β—„empty_frame_fill_level0.50β–Ί
CategorySteerable-Motion

Inputs (6)

NameTypeDefaultDescription
input_video_framesIMAGEInput video frames (IMAGE batch) to extract from.
total_output_framesINT811–10000Total number of frames for the output guidance video and masks. Must satisfy: (frames - 1) divisible by 4.
frame_selection_stringSTRING0, 10:20Comma-separated integers or ranges (e.g., 0, 5, 10:15, 20) of frames to extract from input video. Takes precedence over depth_frames.
empty_frame_fill_levelFLOAT0.500–1Grayscale level (0.0 black, 1.0 white) for frames not explicitly selected or filled by depth.
depth_video_framesoptIMAGEOptional depth frames (IMAGE batch). Placed if the slot is not already filled by frame_selection_string.
master_inpaint_maskoptMASKOptional master inpaint mask. If provided, it defines the entire output mask, overriding masks for selected/depth frames.

Outputs (2)

NameTypeDescription
guidance_video_framesIMAGEβ€”
guidance_frame_masksMASKβ€”