Video Toolkit (video/)
Fast, lossless (zero-reencode) video container and track manipulation toolkit for single files or batch folders.
Why MKVToolNix + FFmpeg?
- Zero re-encoding: Video, audio, and subtitle bitstreams are copied directly at disk/I/O speed rather than decoded and re-encoded.
- MKVToolNix (
mkvmerge,mkvextract,mkvpropedit): Default backend for.mkv/.mka/.mks/.webm. Handles complex subtitle formats (SRT, ASS, PGS/SUP, VobSub), chapters, attachments, and instant in-place flag/language edits viamkvpropedit. - FFmpeg (
ffmpeg -c copy,ffprobe): Optional/automatic backend for.mp4/.mov/.ts/etc. when you want non-MKV output containers or when MKVToolNix is not installed. - Zero Python dependencies: Uses Python 3.9+ standard library only.
Quick Start
Run directly with Python (python -m video ...) or via the video / video-tracks console scripts after pip install -e video/:
# Inspect tracks in a file or a whole folder
video tracks info movie.mkv
video tracks info ./movies --recursive
# Add a subtitle or audio track without re-encoding
video tracks add movie.mkv --track movie.en.srt --lang eng --default
# Batch-add matching sidecar files (Movie.en.srt, Movie.spa.forced.ass, Movie.ac3, etc.)
video tracks add ./movies --auto-sidecars --in-place --jobs 4
# Extract all audio & subtitle tracks (or filter by type/language/id)
video tracks extract movie.mkv
video tracks extract ./movies --type subtitles --lang eng,spa --output-dir ./subs
# Remove tracks without re-encoding
video tracks remove movie.mkv --no-subtitles --output movie.clean.mkv
video tracks remove ./movies --keep-lang eng --in-place
# Update track language/name/flags in-place (instant header edit via mkvpropedit)
video tracks set-flags movie.mkv --id 1 --lang eng --name "English 5.1" --default
# Install bundled AI agent skills (e.g. video-tool)
video --install-skills
video --install-skills global --agent claude
video install-skills --list-skills
Add --dry-run to any modifying command to preview the exact mkvmerge/mkvextract/mkvpropedit/ffmpeg commands without touching any files.
Running Tests
cd video
pytest
Metadata
Release files for sanchousf-ai-toolkit-video 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sanchousf_ai_toolkit_video-0.1.0.tar.gz | 35.6 kB | With provenance | Details for sanchousf_ai_toolkit_video-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sanchousf_ai_toolkit_video-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sanchousf_ai_toolkit_video-0.1.0-py3-none-any.whl |
Total release size: 70.2 kB
Release files / sanchousf_ai_toolkit_video-0.1.0.tar.gz
| Download URL | sanchousf_ai_toolkit_video-0.1.0.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c39252d08ed179010f572aea4b1750ab96fc4c927fc867424a4a46050ab001a6
|
|
BLAKE2b-256 checksum How to use checksums |
dd84461ea6c666755a0c5a08a6514b2e33c6a94964fa84d1867586e4c9f20a80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / sanchousf_ai_toolkit_video-0.1.0-py3-none-any.whl
| Download URL | sanchousf_ai_toolkit_video-0.1.0-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
202117e4b0c962539678c5955e96125c1f4cbc1b6edbf5c97a820ed7a039a863
|
|
BLAKE2b-256 checksum How to use checksums |
d5ab91753b9a5718bdbf37475aa20ddadc187687d32462fa452b809d70591b7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for sanchousf-ai-toolkit-video 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sanchousf_ai_toolkit_video-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.