simple python program that uses FFMPEG to compress video files.
pip3 install -U ffmpeg-python termcolorpython3 ./main.py --helpAnd the output will be:
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
-cor-boptions -
-doption will give a directory as input and searches that recursively to find.mp4,.mkvand.avifile to compress