Skip to main content
Erases whatever a per-frame mask covers from a video with Bria and fills the gap in. The mask must be white on what should go and black elsewhere. Bria accepts clips of at most 5.1 seconds at 20 to 30 frames per second with even pixel dimensions; audio is kept by default. The returned clip can be a few frames shorter than the input.

Inputs

Notes on constraints:
  • Exactly one of mask or mask_video must be connected. An error is raised if neither is provided, or if both are provided.
  • The video must be at most 5.1 seconds long and must run at 20 to 30 frames per second. Re-time the clip with Get Video Components and Create Video if needed.
  • The video must have even pixel dimensions (width and height divisible by 2). Crop or scale it first otherwise.
  • When using mask, it must contain one mask frame per video frame, and its aspect ratio must match the video. Masks are binarized at 50%: areas painted at less than half opacity are ignored, and an empty mask raises an error. If the mask resolution differs from the video, it is resized to the video dimensions.
  • When using mask_video, it must have the same dimensions and the same frame count as the video.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 525b90013b9d9ea4b224caf1f32479493c96f90e28acbf3cf7a4d16a6ca91a45