Skip to main content

Video Class

The Video class represents a source video file or URL. It’s the starting point for background removal operations.

Loading Videos

Background Removal

The main method for removing backgrounds using the API:

Parameters

Returns

Returns a Foreground object representing the transparent video.

Foreground Class

The Foreground class represents a transparent video after background removal. It can be used in compositions.

Creating Foregrounds

Foreground Properties

Source Trimming

Use only specific parts of your transparent videos:

RemoveBGOptions

Configure background removal processing:

Format Preferences

Complete Example

Here’s a complete example showing video loading, background removal, and basic composition: