Efficiently compress video files using ffmpeg
Project description
Vicompres
Vicompres is a CLI tool to efficiently compress video files using ffmpeg. It provides a simple interface for batch-compressing videos with configurable quality levels.
Installation
pip install vicompres
Prerequisite: ffmpeg must be installed and available in your PATH.
Usage
vicompres -d /path/to/videos -c 5
Features
Arguments:
-dor--directory: Specify the directory containing the video files to be compressed. By default, it uses the current directory.-cor--compression: Set the compression level (1-10). Higher values result in better compression but may take more time. The default value is 5.- compression level is ephemeral — it maps to a specific ffmpeg preset, CRF, and bitrate based on the file extension.
-por--prefix: Define a prefix for the input files to be compressed. Only files that start with the specified prefix will be processed. By default, it processes all files in the directory.-oor--output: Specify the output directory where the compressed files will be saved. If not provided, the compressed files will be saved in the same directory as the input files.-sor--suffix: Add a specific suffix to the output file names. This can help differentiate compressed files from the original ones. By default,compressedsuffix is added.-ror--remove-original: If this flag is set, the original files will be deleted after successful compression. By default, original files are retained.
Supported file extensions:
.mp4.mkv.avi.mov
Graceful shutdown:
The tool can be gracefully shut down using a keyboard interrupt (Ctrl+C). It will stop processing new files and complete the current compression before exiting.
License
MIT
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 Distributions
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 vicompres-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vicompres-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
159be594070881125ef632764523bb955cf0408606eb12a342ffd9dd39dea03e
|
|
| MD5 |
f0396e15e2ab7101ed4f349d0c490518
|
|
| BLAKE2b-256 |
0f24a4d6de5f44b68fa9e5ef8c45ac07cee81eac51e971a53ce14b433da4cfb9
|