Tools to transcode, inspect and convert videos.
Project description
Vid Cleaner
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.
Features
- 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
Install
Before installing vid-cleaner, the following dependencies must be installed:
To install vid-cleaner, run:
pip install vid-cleaner
Running vidcleaner for the first time will create a default configuration file in ~/.config/vid-cleaner/config.toml. Edit this file to configure your default settings.
Usage
Run vidcleaner --help to see the available commands and options.
File Locations
Vid-cleaner uses the XDG specification for determining the locations of configuration files, logs, and caches.
- Configuration file:
~/.config/vid-cleaner/config.toml - Logs:
~/.local/state/vid-cleaner/vid-cleaner.log - Cache:
~/.cache/vid-cleaner
Contributing
Setup: Once per project
- 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.
Developing
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vid_cleaner-0.3.5.tar.gz.
File metadata
- Download URL: vid_cleaner-0.3.5.tar.gz
- Upload date:
- Size: 98.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba3d7fc18ca6960a4d34c5e1245738221b5c3d3f4f9a17840f3ee9a9120c9b6c
|
|
| MD5 |
6af1fe797bcb9b099e925a9d5c073fa9
|
|
| BLAKE2b-256 |
b0c228262a90681f71b7ea49755fb510898cb235c7e9867dbf3c21f628aa0e0f
|
File details
Details for the file vid_cleaner-0.3.5-py3-none-any.whl.
File metadata
- Download URL: vid_cleaner-0.3.5-py3-none-any.whl
- Upload date:
- Size: 52.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcf86aecf1cd9d9bc0e2cd850edc8319f4f9e91f4cca6198dab68790b2da194a
|
|
| MD5 |
f294b8942cca38d431c3a64b42ac47f8
|
|
| BLAKE2b-256 |
b7a60004333173ed0ec8fd68b556e733232f3a240852ce106ab316624fd1892a
|