https://github.com/thehxdev/videotools
simple python program that uses FFMPEG to compress video files.
https://github.com/thehxdev/videotools
Last synced: 12 months ago
JSON representation
simple python program that uses FFMPEG to compress video files.
- Host: GitHub
- URL: https://github.com/thehxdev/videotools
- Owner: thehxdev
- Created: 2022-12-07T10:54:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-13T15:37:35.000Z (over 3 years ago)
- Last Synced: 2025-03-10T08:57:34.385Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# videoTools
simple python program that uses FFMPEG to compress video files.
## Dependencies
```bash
pip3 install -U ffmpeg-python termcolor
```
## How to use
### Help Message
```bash
python3 ./main.py --help
```
And the output will be:
```text
usage: main.py [-h] [-p PATH] [-o OUTPUT] [-b BITRATE] [-c CRF] [-d DIRECTORY]
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH Video path.
-o OUTPUT, --output OUTPUT
Where to save file. (Directroy)
-b BITRATE, --bitrate BITRATE
Target video bitrate.
-c CRF, --crf CRF Target video crf.
-d DIRECTORY, --directory DIRECTORY
```
- **Only use one of `-c` or `-b` options**
- **`-d` option will give a directory as input and searches that recursively to find `.mp4`, `.mkv` and `.avi` file to compress**