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.7

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.7
File Size Uploaded Provenance
videolab-0.10.7.tar.gz 32.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 66.1 kB

Release files / videolab-0.10.7.tar.gz

Download URL videolab-0.10.7.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6224d34b163a8ae1be488917745fadb76e1b41837db5a1ab04071e835be77c7
BLAKE2b-256 checksum
How to use checksums
6d387693701d9501e63c0b5c0692bc6ec447e538f68db5bbf6263251441e491e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.7-py3-none-any.whl

Download URL videolab-0.10.7-py3-none-any.whl
Size 33.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8a97286b3429c2a10a144a8b304d410258b53c966d1793bb11b7e7130988fe1
BLAKE2b-256 checksum
How to use checksums
0160202c54da9bc608db3ae61ffc4ff66a1ea9118833e6d630cf90ac10a30a13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.7

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.7 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