A CLI for video processing.
Project description
videolab
A CLI for video processing.
Installation
You can install videolab from source.
-
Clone the repository:
git clone https://github.com/kianmeng/videolab.git cd videolab
-
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] [--no-audio] input_file [output_file]
Removes all container-level and stream-level metadata from a video file by
remuxing it
positional arguments:
input_file Path to the input video file
output_file Path to save the scrubbed video file, defaults:
'<input_file>_scrubbed.<ext>'
options:
-h, --help show this help message and exit
--no-audio Remove the audio from the video file
videolab watermark
videolab watermark -h
usage: videolab watermark [-h] --text TEXT [--font-size FONT_SIZE]
[--font-color FONT_COLOR]
[--position {top-left,top-right,bottom-left,bottom-right,center}]
[--margin MARGIN]
input_file [output_file]
Adds a watermark to a video file.
positional arguments:
input_file Path to the input video file
output_file Path to save the watermarked video file, defaults:
'<input_file>_watermarked.<ext>'
options:
-h, --help show this help message and exit
--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').
--position {top-left,top-right,bottom-left,bottom-right,center}
Position of the watermark.
--margin MARGIN Margin from the edges of the video in pixels.
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.
Project details
Release history Release notifications | RSS feed
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 videolab-0.5.7.tar.gz.
File metadata
- Download URL: videolab-0.5.7.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33df5e3628c9d44907332ccc3a747781bf44ef7d2bddfbdf9f4d1fb39d7fb19a
|
|
| MD5 |
3c0b9ee2e382a11e9eb76a244bc5f617
|
|
| BLAKE2b-256 |
83a0dab1965b57fab219fbd43e7c2425363dc982a79f47a219f386bfe11f2ac8
|
File details
Details for the file videolab-0.5.7-py3-none-any.whl.
File metadata
- Download URL: videolab-0.5.7-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2158e6d207c803358d2de04bf208a18deb52d2ed15bd60a1567b8a2281c130
|
|
| MD5 |
2b8549576efc5ff448db19a6dd637184
|
|
| BLAKE2b-256 |
008d3634c7d08bdc2b4e469711c748a79891ddc783a1af42fa4cb43cc285eb69
|