Why: I needed to convert .avi to .mp4 to play on my TV.
- Uses ffmpeg to convert video files to .mp4
- Defaults to GPU encoding on NVDA GPU, will fallback to CPU
- Python 3.x.x
- ffmpeg full (https://www.gyan.dev/ffmpeg/builds/)
- Download ffmpeg full
- Add the direct path to the
ffmpeg/bin
directory to your system’sPATH
environment variable - Create an
input
andoutput
folder in project directory - Put video files in the
input
folder - Run the script
To support more formats, add file extensions to the supported_extensions
tuple.