> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# BriaVideoEraser - ComfyUI Built-in Node Documentation

> Erases whatever a per-frame mask covers from a video with Bria and fills the gap in.

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

| Parameter        | Description                                                                                                                           | Data Type | Required | Range               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------- |
| `video`          | Clip to erase from.                                                                                                                   | VIDEO     | Yes      | -                   |
| `mask`           | One mask per frame of the video, white where the object to erase is. Provide either a mask or a mask video, not both.                 | MASK      | No       | -                   |
| `mask_video`     | An already encoded mask video with the same dimensions and frame count as the video. Provide either a mask or a mask video, not both. | VIDEO     | No       | -                   |
| `preserve_audio` | Keep the input's audio track. Default: true.                                                                                          | BOOLEAN   | No       | `true`<br />`false` |

**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

| Output Name | Description                                                                                                                      | Data Type |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `video`     | The edited clip with the masked areas erased and the gaps filled in. The output may be a few frames shorter than the input clip. | VIDEO     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/BriaVideoEraser/en.md)

***

**Source fingerprint (SHA-256):** `525b90013b9d9ea4b224caf1f32479493c96f90e28acbf3cf7a4d16a6ca91a45`
