Skip to main content

videolab

A CLI for video processing.

Installation

You can install videolab from source.

  1. Clone the repository:

    git clone https://github.com/kianmeng/videolab.git
    cd videolab
    
  2. Create a virtual environment and install the package:

    uv venv
    source .venv/bin/activate
    uv pip install -e .
    

Usage

Once installed, you can use the videolab command.

To see the help message:

videolab --help
usage: videolab [-h] [-V] [-v] {env,scrub,watermark} ...

A console program to manipulate videos.

website: https://github.com/kianmeng/videolab
changelog: https://github.com/kianmeng/videolab/blob/master/CHANGELOG.md
issues: https://github.com/kianmeng/videolab/issues

positional arguments:
  {env,scrub,watermark}
                        sub-command help
    env                 show environment information
    scrub               remove all metadata
    watermark           add a watermark to a video

options:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -v, --verbose         enable verbose logging

videolab env

videolab env -h
usage: videolab env [-h]

options:
  -h, --help  show this help message and exit

videolab scrub

videolab scrub -h
usage: videolab scrub [-h] [--output OUTPUT] [--no-audio] [--force]
                      [--dry-run]
                      input_file [input_file ...]

Removes all container-level and stream-level metadata from a video file by
remuxing it

positional arguments:
  input_file       Path to one or more input video files

options:
  -h, --help       show this help message and exit
  --output OUTPUT  Path to save the scrubbed video file; only valid with a
                   single input. Defaults: '<input_file>_scrubbed.<ext>'
  --no-audio       Remove the audio from the video file
  --force          Overwrite the output file if it already exists
  --dry-run        Show what would be done without writing any output

videolab watermark

videolab watermark -h
usage: videolab watermark [-h] [--output OUTPUT] --text TEXT
                          [--font-size FONT_SIZE] [--font-color FONT_COLOR]
                          [--position {top-left,top-right,bottom-left,bottom-right,center}]
                          [--no-audio] [--margin MARGIN] [--cpu CPU] [--force]
                          [--dry-run]
                          input_file [input_file ...]

Adds a watermark to a video file.

positional arguments:
  input_file            Path to one or more input video files

options:
  -h, --help            show this help message and exit
  --output OUTPUT       Path to save the watermarked video file; only valid
                        with a single input. Defaults:
                        '<input_file>_watermarked.<ext>'
  --text TEXT           The text for the watermark
  --font-size FONT_SIZE
                        Font size for the watermark text. Defaults to 5% of
                        video height.
  --font-color FONT_COLOR
                        Font color in RGBA format (e.g., '255,255,255,128') or
                        hex format (e.g., '#FFFFFF').
  --position {top-left,top-right,bottom-left,bottom-right,center}
                        Position of the watermark.
  --no-audio            Remove the audio from the video file
  --margin MARGIN       Margin from the edges of the video in pixels.
  --cpu CPU             Number of CPU cores for parallel processing (default:
                        min(all available, 4))
  --force               Overwrite the output file if it already exists
  --dry-run             Show what would be done without writing any output

Contributing

Contributions are welcome! Please see the Contributing file for details on how to set up your development environment and submit pull requests.

License

This project is licensed under the GNU Affero General Public License v3.0 or later. See the License file for details.

Metadata

Release files for videolab 0.10.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for videolab 0.10.6
File Size Uploaded Provenance
videolab-0.10.6.tar.gz 32.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for videolab 0.10.6
File Interpreter ABI Platform
videolab-0.10.6-py3-none-any.whl Python 3 none any Details

Total release size: 65.5 kB

Release files / videolab-0.10.6.tar.gz

Download URL videolab-0.10.6.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bfd2ccbea08fe9cc75467ff885c2f0959c190b7e50f6e46d6076f9cb07cdfd94
BLAKE2b-256 checksum
How to use checksums
28a170506ac62245be46700fcc4bcb9f9ee3f752808a9e2ad400b7fbed874d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / videolab-0.10.6-py3-none-any.whl

Download URL videolab-0.10.6-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aada5172958e0fe6a58b7f93d612b3dd2888f2587100029addc95d1b57f63c9
BLAKE2b-256 checksum
How to use checksums
88750e5636804697a90a0076af3bf4bd11f3dc969cab9bcb6f0afd69fe718288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for videolab 0.10.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page