Script to convert videos to a smaller size and preserve good quality with support for NVENC, QSV, AMF and VA-API
- ffmpeg needs to be installed and added to PATH.
- Python 3.12
- Optionally Opus for better compression of audio
usage: main.py [-h] [-o OUTPUT] [-s SUFFIX] [-is IGNORE_SUFFIX] [-sd] [-del] [-cq CQ] [--debug] input
positional arguments:
input Input folder path with videos
options:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Output folder path for converted videos
-s SUFFIX, --suffix SUFFIX
Suffix at the end of output file names
-is IGNORE_SUFFIX, --ignore-suffix IGNORE_SUFFIX
Ignore files that already have this suffix
-sd, --same-dir Should we save to same directory as the input?
-del, --delete-original
Should we delete original files after conversion?
-cq CQ Constant Quantization for video encoding (0-51)
--debug Enable debug logging