This is a small frontend for the ffmpeg utility for batch processing of the video files.
It allows you to select streams you want to keep (using manual section or filters)
and then transcode them to a new file.
By default, utility will try to re-encode video streams to H.265/HEVC codec
using libx265 or any available hardware encoder (e.g. hevc_nvenc for NVIDIA GPUs).
Requirements:
- Python 3.8 or newer with pip: https://www.python.org/downloads/
- ffmpeg/ffprobe (should be available in the system PATH): https://ffmpeg.org/download.html
Supported containers:
- MKV (tested)
- MP4 (not tested)
- AVI (not tested)
- MOV (not tested)
- M2TS (tested)
Supported codecs:
- libx265 (tested)
- hevc_nvenc (tested)
- hevc_videotoolbox (tested)
- Install Python 3.8 or newer and
ffmpegutility (using your package manager or directly from the website) - Clone the repository and install the dependencies:
git clone https://github.com/Coestaris/trimmer
cd trimmer
python3 -m venv .venv
.venv/bin/pip3 install -r requirements.txt- Run the utility:
.venv/bin/python __main__.py- Download and install Python 3.8 or newer from the official website. Make sure to check the 'Add Python to the environment variables' option during the installation
- Download and install
ffmpegutility from the official website - Download the utility from the repository: https://github.com/Coestaris/trimmer/archive/refs/heads/main.zip
- Run the
trimmer.batfile. Note that the first run may take some time to install the dependencies


