TL;DR
- Verdict: Use Bria's video API if you want no GPU operations: it costs $0.0033 per second and takes clips up to 60 seconds. Self-host Robust Video Matting (RVM) if you own a GPU and want a fixed pipeline.
Verdict: Use Bria's video API if you want no GPU operations: it costs $0.0033 per second and takes clips up to 60 seconds. Self-host Robust Video Matting (RVM) if you own a GPU and want a fixed pipeline.
- RVM: GPL-3.0, no prompts needed, outputs alpha and foreground. Its README reports 4K at 76 FPS and HD at 104 FPS on a GTX 1080 Ti (tensor throughput only).
RVM: GPL-3.0, no prompts needed, outputs alpha and foreground. Its README reports 4K at 76 FPS and HD at 104 FPS on a GTX 1080 Ti (tensor throughput only).
- [SAM 2](https://github.com/facebookresearch/sam2): Apache-2.0 per its README. It needs click or box prompts and returns masks, not matting.
[SAM 2](https://github.com/facebookresearch/sam2): Apache-2.0 per its README. It needs click or box prompts and returns masks, not matting.
- Bria video API: pay-as-you-go from the first call, with a free sandbox. A 60 second clip costs $0.198.
Bria video API: pay-as-you-go from the first call, with a free sandbox. A 60 second clip costs $0.198.
- Quality: Bria has no video quality benchmark yet, so this post makes no quality claim for any of them.
Quality: Bria has no video quality benchmark yet, so this post makes no quality claim for any of them.
How do you remove a video background without a green screen? You pick between running a model yourself and calling a hosted API. Bria wrote this post, and Bria's facts come from its own product page and docs, checked 2026-12-01. RVM and SAM 2 facts come from their own GitHub repositories, checked the same day.
Can you remove a video background without a green screen?
Yes: a matting or segmentation model separates the subject from the background in each frame, so no green screen is needed.
Three routes exist in this comparison. The table puts them side by side.
- RVM is a purpose-built matting network.
RVM is a purpose-built matting network.
- SAM 2 is a promptable segmentation model.
SAM 2 is a promptable segmentation model.
- Bria's video API is a hosted service.
Bria's video API is a hosted service.
- License; RVM: GPL-3.0; SAM 2: Apache-2.0 (README); Bria video API: Hosted service
License; RVM: GPL-3.0; SAM 2: Apache-2.0 (README); Bria video API: Hosted service
- Speed figure; RVM: 4K 76 FPS, HD 104 FPS (GTX 1080 Ti, tensor throughput only, README); SAM 2: None stated in this post; Bria video API: Streaming endpoint over WebSocket (Bria docs), no speed figure stated here
Speed figure; RVM: 4K 76 FPS, HD 104 FPS (GTX 1080 Ti, tensor throughput only, README); SAM 2: None stated in this post; Bria video API: Streaming endpoint over WebSocket (Bria docs), no speed figure stated here
- Price; RVM: No fee, your hardware; SAM 2: No fee, your hardware; Bria video API: $0.0033 per second
Price; RVM: No fee, your hardware; SAM 2: No fee, your hardware; Bria video API: $0.0033 per second
- Input limit; RVM: Your hardware; SAM 2: Your hardware; Bria video API: 60 seconds per REST input
Input limit; RVM: Your hardware; SAM 2: Your hardware; Bria video API: 60 seconds per REST input
- Output; RVM: Alpha, foreground, composite; SAM 2: Masks; Bria video API: Alpha on webm_vp9, mov_proresks, mkv_vp9
Output; RVM: Alpha, foreground, composite; SAM 2: Masks; Bria video API: Alpha on webm_vp9, mov_proresks, mkv_vp9
- Prompts needed; RVM: No; SAM 2: Yes, click or box; Bria video API: No
Prompts needed; RVM: No; SAM 2: Yes, click or box; Bria video API: No
What does Robust Video Matting output?
RVM outputs an alpha matte and a foreground layer, and its README says it needs no additional inputs.
The README describes RVM as "specifically designed for robust human video matting". It is a recurrent network with temporal memory. It says RVM can "perform matting in real-time on any videos without additional inputs".
- convert_video writes a video or a PNG sequence.
convert_video writes a video or a PNG sequence.
- You can also save the raw alpha with output_alpha.
You can also save the raw alpha with output_alpha.
- You can save the raw foreground with output_foreground.
You can save the raw foreground with output_foreground.
- Pretrained weights come as MobileNetv3 and ResNet50, with TorchScript, ONNX, TensorFlow, TF.js and CoreML builds.
Pretrained weights come as MobileNetv3 and ResNet50, with TorchScript, ONNX, TensorFlow, TF.js and CoreML builds.
The README recommends MobileNetv3 "for most use cases". It calls ResNet50 "the larger variant with small performance improvements". The README says human video matting, so this post does not call RVM a general object matting tool. The RVM project page links the paper.
Is SAM 2 a background remover?
SAM 2 returns segmentation masks from click or box prompts, and its README does not describe soft alpha matting.
The SAM 2 repository calls it a "foundation model towards solving promptable visual segmentation in images and videos". In video, you set up a state, add click or box prompts, then propagate through the clip. The README makes no claim of soft alpha output.
- Strength: it segments from click or box prompts, so you choose the target each clip.
Strength: it segments from click or box prompts, so you choose the target each clip.
- Flow: you add click or box prompts, then propagate through the clip.
Flow: you add click or box prompts, then propagate through the clip.
How fast is RVM, and on which GPU?
RVM's README reports 4K at 76 FPS and HD at 104 FPS on an Nvidia GTX 1080 Ti.
Its speed table gives tensor throughput on other GPUs and precisions. The headline says 4K 76 FPS while the table row says 4K 74 for the same GTX 1080 Ti in FP32, so both are listed.
- GPU and precision: RTX 3090, FP16; HD FPS: 172; 4K FPS: 154
GPU and precision: RTX 3090, FP16; HD FPS: 172; 4K FPS: 154
- GPU and precision: RTX 2060 Super, FP16; HD FPS: 134; 4K FPS: 108
GPU and precision: RTX 2060 Super, FP16; HD FPS: 134; 4K FPS: 108
- GPU and precision: GTX 1080 Ti, FP32; HD FPS: 104; 4K FPS: 74
GPU and precision: GTX 1080 Ti, FP32; HD FPS: 104; 4K FPS: 74
Which licenses do RVM and SAM 2 use?
RVM's code is under GPL-3.0, and the SAM 2 README states Apache 2.0 for its checkpoints, demo code and training code.
The RVM README says "Code is re-released under GPL-3.0 license", and its LICENSE file is GNU GPL Version 3. The SAM 2 README says its model checkpoints, demo code and training code are licensed under Apache 2.0. The SAM 2 repo also includes a BSD 3-Clause file, LICENSE_cctorch, and demo fonts under SIL OFL 1.1.
- Read the license text of each repository before you ship.
Read the license text of each repository before you ship.
What does a hosted video API cost per second?
Bria's video API costs $0.0033 per batch or streaming second, pay-as-you-go.
Per Bria's page, the rate is uniform across all four endpoints, with no MSA, no minimum and no procurement step. Volume, regional, private, BYOC and on-prem pricing is a conversation. The arithmetic below uses only that sourced rate.
- Footage: One clip at the REST limit; Seconds: 60; Cost at $0.0033 per second: $0.198
Footage: One clip at the REST limit; Seconds: 60; Cost at $0.0033 per second: $0.198
- Footage: Ten clips of 60 seconds; Seconds: 600; Cost at $0.0033 per second: $1.98
Footage: Ten clips of 60 seconds; Seconds: 600; Cost at $0.0033 per second: $1.98
- Footage: One hour; Seconds: 3,600; Cost at $0.0033 per second: $11.88
Footage: One hour; Seconds: 3,600; Cost at $0.0033 per second: $11.88
What are the Bria video API limits and output formats?
The REST endpoint accepts up to 60 seconds per input and keeps alpha only on three output presets.
Per Bria's docs on video background removal:
- Input containers: .mp4, .mov, .webm, .avi and .gif.
Input containers: .mp4, .mov, .webm, .avi and .gif.
- Input codecs: H.264, H.265, VP9, AV1 and PhotoJPEG.
Input codecs: H.264, H.265, VP9, AV1 and PhotoJPEG.
- Resolution up to 16000x16000. Larger input returns a 413.
Resolution up to 16000x16000. Larger input returns a 413.
- Alpha is supported on webm_vp9, mov_proresks and mkv_vp9.
Alpha is supported on webm_vp9, mov_proresks and mkv_vp9.
- Alpha is not supported on mp4_h264, mp4_h265, mov_h265, mkv_h264, mkv_h265 or gif.
Alpha is not supported on mp4_h264, mp4_h265, mov_h265, mkv_h264, mkv_h265 or gif.
- A transparent request on a non-alpha preset falls back to Black with a result.warning.
A transparent request on a non-alpha preset falls back to Black with a result.warning.
How do you call the Bria video API from code?
You POST to the REST endpoint for batch clips or open a WebSocket for streaming.
The REST call is asynchronous. It returns HTTP 202 with a request_id and a status_url, and you either poll or pass a webhook_url. Streaming uses wss://streaming.prod.bria-api.com, where you send JPEG frames and receive grayscale JPEG masks. The page offers a free sandbox where you drop in a video URL or open a streaming session, with no signup gate. See the streaming docs for the protocol and the video editing overview for the other endpoints.
When does self-hosting make sense, and what do you still have to build?
Self-hosting RVM means you run it on your own hardware with no per-second fee, while SAM 2 also needs a prompt step.
Both repositories run on your hardware, so you pay no per-second API fee. The RVM README notes that its conversion script is not hardware-accelerated and is expected to be much slower than the tensor throughput figures.
- RVM needs no prompts and outputs alpha and foreground.
RVM needs no prompts and outputs alpha and foreground.
- SAM 2 needs click or box prompts and returns masks.
SAM 2 needs click or box prompts and returns masks.
- Bria's API runs on Bria's side, at $0.0033 per second. This post does not price GPUs.
Bria's API runs on Bria's side, at $0.0033 per second. This post does not price GPUs.
Conclusion: which should you choose?
Bria's video API is the default if you want a working result without GPU operations. The other two fit specific cases. Bria has no video quality benchmark yet, so test each option on your own footage before you commit.
- Choose Bria's video API if you want no GPU operations, pay-as-you-go pricing at $0.0033 per second, a free sandbox and a streaming path, and your clips fit within 60 seconds.
Choose Bria's video API if you want no GPU operations, pay-as-you-go pricing at $0.0033 per second, a free sandbox and a streaming path, and your clips fit within 60 seconds.
- Choose RVM if you own a GPU, the subject is a person, and you want a fixed pipeline with no per-second fee and alpha output you control.
Choose RVM if you own a GPU, the subject is a person, and you want a fixed pipeline with no per-second fee and alpha output you control.
- Choose SAM 2 if you want to choose the target by click or box prompt and are ready to build the matting step on top of masks.
Choose SAM 2 if you want to choose the target by click or box prompt and are ready to build the matting step on top of masks.









