CLI tool to remove video backgrounds with rembg and OpenCV
Project description
Video Background Remover CLI
video-background-remover is a Python CLI package for removing video backgrounds with rembg and OpenCV.
Features
- Export a processed video with a replacement background
- Export transparent
webp/pngframes at fixed intervals - Generate transparent animated
webp/gif - Choose from
isnet-general-use,u2net,u2netp,u2net_human_seg, andsilueta
Install
pip install video-background-remover
For isolated CLI installs:
pipx install video-background-remover
Usage
video-background-remover INPUT OUTPUT [options]
Examples:
video-background-remover input.mp4 output.mp4 --bg-color white
video-background-remover input.mp4 output/frames --interval 1 --format webp
video-background-remover input.mp4 output/anim.webp --animated webp --webp-fps 10
python -m video_background_remover_cli input.mp4 output.gif --animated gif
Development
Build distributions:
python -m build
Upload to PyPI:
twine upload dist/*
Project links:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file video_background_remover-0.1.1.tar.gz.
File metadata
- Download URL: video_background_remover-0.1.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d8a266bbeab73145a8b7ae46e53ff2789d11bac65ecf3df989b4b95409f9a6
|
|
| MD5 |
7e65a2ed2af65760ef71ed951da77675
|
|
| BLAKE2b-256 |
7916e2f403e08895c0b99e3e27c9f8b1d9232da0aceb007201cd446a740c44dc
|
Provenance
The following attestation bundles were made for video_background_remover-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on Sunwood-ai-labs/video-background-remover-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
video_background_remover-0.1.1.tar.gz -
Subject digest:
a8d8a266bbeab73145a8b7ae46e53ff2789d11bac65ecf3df989b4b95409f9a6 - Sigstore transparency entry: 1055089561
- Sigstore integration time:
-
Permalink:
Sunwood-ai-labs/video-background-remover-cli@e9fae726cef81d3ed12a8d995ba9267715b11386 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Sunwood-ai-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@e9fae726cef81d3ed12a8d995ba9267715b11386 -
Trigger Event:
push
-
Statement type:
File details
Details for the file video_background_remover-0.1.1-py3-none-any.whl.
File metadata
- Download URL: video_background_remover-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6a42ae9f65f013f7d7bb60a056f430b2fbf430f4ca5d756e92af6d4b1c7f004
|
|
| MD5 |
365dd0bbd4a7f7f0a5d47e45ca77ffef
|
|
| BLAKE2b-256 |
a09624be80e1bb71b2641e129fcc1e480fd5947bbe3d24c9389526b4a6680879
|
Provenance
The following attestation bundles were made for video_background_remover-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on Sunwood-ai-labs/video-background-remover-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
video_background_remover-0.1.1-py3-none-any.whl -
Subject digest:
d6a42ae9f65f013f7d7bb60a056f430b2fbf430f4ca5d756e92af6d4b1c7f004 - Sigstore transparency entry: 1055089620
- Sigstore integration time:
-
Permalink:
Sunwood-ai-labs/video-background-remover-cli@e9fae726cef81d3ed12a8d995ba9267715b11386 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Sunwood-ai-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@e9fae726cef81d3ed12a8d995ba9267715b11386 -
Trigger Event:
push
-
Statement type: