Tools to transcode, inspect and convert videos. This package provides convenience wrappers around ffmpeg and ffprobe to make it easier to work with video files. The functionality is highly customized to my personal workflows and needs. I am sharing it in case it is useful to others.
- Remove commentary tracks and subtitles
- Remove unwanted audio and subtitle tracks
- Convert to H.265 or VP9
- Convert 4k to 1080p
- Downmix from surround to create missing stereo streams with custom filters to improve quality
- Removes unwanted audio and subtitle tracks, optionally keeping the original language audio track
- Create clips from a video file
Before installing vid-cleaner, the following dependencies must be installed:
To install vid-cleaner, run:
pip install vid-cleanerRun vidcleaner --help to see the available commands and options.
- Install Python 3.11 and uv
- Clone this repository.
git clone https://github.com/natelandau/vid-cleaner - Install the virtual environment with
uv sync. - Activate your virtual environment with
source .venv/bin/activate - Install the pre-commit hooks with
pre-commit install --install-hooks.
- This project follows the Conventional Commits standard to automate Semantic Versioning and Keep A Changelog with Commitizen.
- When you're ready to commit changes run
cz c
- When you're ready to commit changes run
- Run
poefrom within the development environment to print a list of Poe the Poet tasks available to run on this project. Common commands:poe lintruns all linterspoe testruns all tests with Pytest
- Run
uv add {package}from within the development environment to install a run time dependency and add it topyproject.tomlanduv.lock. - Run
uv remove {package}from within the development environment to uninstall a run time dependency and remove it frompyproject.tomlanduv.lock. - Run
uv lock --upgradefrom within the development environment to update all dependencies inpyproject.toml.