Skip to main content

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 / png frames at fixed intervals
  • Generate transparent animated webp / gif
  • Choose from isnet-general-use, u2net, u2netp, u2net_human_seg, and silueta

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

video_background_remover-0.1.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video_background_remover-0.1.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for video_background_remover-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a8d8a266bbeab73145a8b7ae46e53ff2789d11bac65ecf3df989b4b95409f9a6
MD5 7e65a2ed2af65760ef71ed951da77675
BLAKE2b-256 7916e2f403e08895c0b99e3e27c9f8b1d9232da0aceb007201cd446a740c44dc

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file video_background_remover-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for video_background_remover-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6a42ae9f65f013f7d7bb60a056f430b2fbf430f4ca5d756e92af6d4b1c7f004
MD5 365dd0bbd4a7f7f0a5d47e45ca77ffef
BLAKE2b-256 a09624be80e1bb71b2641e129fcc1e480fd5947bbe3d24c9389526b4a6680879

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page