Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiacai2050/video-compress
Compress video by 90% without losing much quality, similar to what Pied Piper achieves.
https://github.com/jiacai2050/video-compress
Last synced: 3 months ago
JSON representation
Compress video by 90% without losing much quality, similar to what Pied Piper achieves.
- Host: GitHub
- URL: https://github.com/jiacai2050/video-compress
- Owner: jiacai2050
- License: gpl-3.0
- Created: 2024-08-01T00:04:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T16:31:45.000Z (3 months ago)
- Last Synced: 2024-08-03T01:32:52.652Z (3 months ago)
- Language: Python
- Homepage:
- Size: 152 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* Video-compress
[[https://pypi.org/project/video-compress][https://img.shields.io/pypi/v/video-compress.svg]]
[[https://github.com/jiacai2050/video-compress/actions/workflows/ci.yml][https://github.com/jiacai2050/video-compress/actions/workflows/ci.yml/badge.svg]]Compress video by 90% without losing much quality, similar to what [[https://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)][Pied Piper]] achieves.
[[file:pied-piper.jpg]]
#+begin_quote
Inspired by https://x.com/mortenjust/status/1818027566932136062
#+end_quote* Install
First install [[https://www.ffmpeg.org/download.html][ffmpeg]], then
#+begin_src bash
pip install video-compress
#+end_src
This will install two commands: =vc=, =video-compress=, which are identical.* Usage
#+begin_src bash :results verbatim :exports results
make help
#+end_src#+RESULTS:
#+begin_example
usage: vc [-h] [-v] [--verbose] [-t THREADS] [--crf CRF] [--delete]
[ ...]Compress video by 90% without losing much quality, similar to what Pied Piper
achieves.positional arguments:
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
#+end_examplePositional arguments can be either video files or directories.
For each directory, =vc= will iteratively walk the dir to search for all videos to compress, the compressed video will be named after =${input}-compressed.mp4=.