Video-compress
Compress video by 90% without losing much quality, similar to what Pied Piper achieves.
Inspired by https://x.com/mortenjust/status/1818027566932136062
Install
First install ffmpeg, then
pip3 install -U video-compress
Or install latest nightly version
pip3 install --force-reinstall -U git+https://github.com/jiacai2050/video-compress.git
This will install two commands: vc{.verbatim},
video-compress{.verbatim}, which are identical.
If you prefer to use uvtool:
uv tool install Video-compress
Usage
usage: vc [-h] [-v] [--verbose] [-t THREADS] [--crf CRF] [--delete]
[<video path> ...]
Compress video by 90% without losing much quality, similar to what Pied Piper
achieves.
positional arguments:
<video path>
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--verbose show verbose log
-t THREADS, --threads THREADS
max threads to use for compression. (default: 6)
--crf CRF constant rate factor, range from 0-51. Higher values
mean more compression, smaller file size, but lower
quality. (default: 30)
--delete delete input video after compress successfully
Positional arguments can be either video files or directories.
For each directory, vc{.verbatim} will iteratively walk the dir to
search for all videos to compress, the compressed video will be named
after ${input}-compressed.mp4{.verbatim}.
Metadata
Release files for video-compress 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| video_compress-0.3.1.tar.gz | 16.8 kB | Without provenance | Details for video_compress-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| video_compress-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for video_compress-0.3.1-py3-none-any.whl |
Total release size: 34.8 kB
Release files / video_compress-0.3.1.tar.gz
| Download URL | video_compress-0.3.1.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24cf1c67c655c7d9633053fd8aa72fbd6e597df8f0117d90837cda2c9752fb3e
|
|
BLAKE2b-256 checksum How to use checksums |
e0e3b944c13456ff198076eb1941ca525fe89ce53fab9d7a6e5f1f04a389cfaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / video_compress-0.3.1-py3-none-any.whl
| Download URL | video_compress-0.3.1-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47b2627cbbe6948ea45971f2f81e1d113a7cb41171df5dc3f737de04d6fa2d09
|
|
BLAKE2b-256 checksum How to use checksums |
3856b31eea026cec22484d6bf6c5b1a4bbfb2cb9cc1cdb8ce03c7adbac18e6b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for video-compress 0.3.1
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.