Skip to content

tensake/convert-videos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Converter

Script to convert videos to a smaller size and preserve good quality with support for NVENC, QSV, AMF and VA-API

Requirements

  1. ffmpeg needs to be installed and added to PATH.
  2. Python 3.12
  3. Optionally Opus for better compression of audio

Usage

Run the main.py file with these arguments

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

About

Script to convert videos to a smaller size and preserve good quality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages