The MKV Episode Matcher is a tool for identifying TV series episodes from MKV files and renaming the files accordingly.
Project description
MKV Episode Matcher
Automatically match and rename your MKV TV episodes using advanced speech recognition and subtitle matching.
✨ Key Features
- 🖥️ Modern Desktop GUI: Cross-platform Flet-based graphical interface with real-time progress tracking
- 🤖 Advanced Speech Recognition: NVIDIA Parakeet ASR for highly accurate episode identification
- 🎯 Intelligent Matching: Multi-segment analysis with confidence scoring and fallback strategies
- ⬇️ Smart Subtitle Integration: Automatic subtitle downloads from OpenSubtitles with local caching
- ✨ Bulk Processing: Handle entire libraries with automatic series/season detection
- 🧪 Dry Run Mode: Preview matches before making any changes
- 📊 Rich Progress Tracking: Real-time progress indicators and detailed match results
- ⚡ Performance Optimized: Caching, background model loading, and efficient processing
- 🌐 Cross-Platform: Available as desktop applications for Windows, macOS, and Linux
Prerequisites
- Python 3.10-3.12
- FFmpeg installed and available in system PATH
- TMDb API key (optional, for episode matching)
- OpenSubtitles.com account (required for subtitle downloads)
🚀 Quick Start
1. Install MKV Episode Matcher
Option A: Using uv (Recommended)
# Install with CUDA support for GPU acceleration
uv sync --extra cu128
# Or basic installation
uv sync
Option B: Using pip
pip install mkv-episode-matcher
Option C: Download Standalone Desktop Apps
2. Launch the Application
🖥️ GUI Mode (Recommended) Launches the modern desktop interface with real-time progress tracking:
uv run mkv-match gui
💻 CLI Mode
For automation and advanced users:
uv run mkv-match match "/path/to/your/show"
⚙️ Configuration
uv run mkv-match config
3. Alternative Launch Methods
# GUI
python -m mkv_episode_matcher gui
# CLI
python -m mkv_episode_matcher match "/path/to/show"
🖥️ Desktop GUI Features
The modern Flet-based desktop interface provides:
- 🎨 Theme-Adaptive Interface: Automatically adapts to your system's light/dark theme
- 📂 Folder Browser: Easy directory selection with visual folder picker
- ⏱️ Real-time Progress: Live progress bars showing "Processing file X of Y"
- 🔄 Background Model Loading: Non-blocking ASR model initialization with status indicators
- 🧪 Dry Run Preview: Test matches without making changes, with preview functionality
- ⚙️ Comprehensive Settings: Built-in configuration dialog for all options
- 📊 Detailed Results: Color-coded success/failure results with confidence scores
- 🚀 Performance Indicators: Model loading status and processing statistics
⚙️ Configuration
GUI Configuration
The desktop app includes a built-in settings dialog accessible via the gear icon. Configure all options including:
- Cache directory and confidence thresholds
- ASR and subtitle provider settings
- OpenSubtitles API credentials
- TMDb integration (optional)
CLI Configuration
For command-line users:
mkv-match config # Interactive configuration
mkv-match --onboard # First-time setup wizard
Required API Keys:
- OpenSubtitles API Key: Required for subtitle downloads (Get one here)
- TMDb API Key: Optional, for enhanced episode metadata (Get one here)
OpenSubtitles Setup:
- Username and password (recommended for better rate limits)
- API key from the OpenSubtitles developer console
Directory Structure
MKV Episode Matcher expects your TV shows to be organized as follows:
Show Name/
├── Season 1/
│ ├── episode1.mkv
│ ├── episode2.mkv
├── Season 2/
│ ├── episode1.mkv
│ └── episode2.mkv
Reference Subtitle File Structure
Subtitle files that are not automatically downloaded using the --get-subs flag should be named as follows:
~/.mkv-episode-matcher/cache/data/Show Name/
├── Show Name - S01E01.srt
├── Show Name - S01E02.srt
└── ...
On Windows, the cache directory is located at C:\Users\{username}\.mkv-episode-matcher\cache\data\
Reference subtitle files should follow this naming pattern:
{show_name} - S{season:02d}E{episode:02d}.srt
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Acknowledgments
- TMDb for their excellent API
- OpenSubtitles for subtitle integration
- All contributors who have helped improve this project
Documentation
Full documentation is available at https://jsakkos.github.io/mkv-episode-matcher/
Changelog
See CHANGELOG.md for a detailed list of changes.
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 mkv_episode_matcher-1.0.0.tar.gz.
File metadata
- Download URL: mkv_episode_matcher-1.0.0.tar.gz
- Upload date:
- Size: 351.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
458c951fca095e4ff8e6d2107c77e6f02e7d01a6e0cdb647ea84d4c947a728cb
|
|
| MD5 |
91664f75c9e1dd197e34ab4721dfa88f
|
|
| BLAKE2b-256 |
c5dc6ef595d6812ee462203c2a99e8454fa592746b90ba4dbaa295cd9eaa7a6e
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-1.0.0.tar.gz:
Publisher:
python-publish.yml on Jsakkos/mkv-episode-matcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkv_episode_matcher-1.0.0.tar.gz -
Subject digest:
458c951fca095e4ff8e6d2107c77e6f02e7d01a6e0cdb647ea84d4c947a728cb - Sigstore transparency entry: 780545042
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@f45a6e2093f3b045251cf0d3b9852dd88dd01528 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f45a6e2093f3b045251cf0d3b9852dd88dd01528 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkv_episode_matcher-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mkv_episode_matcher-1.0.0-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
497ef080a633e500b4355c2c607547e74b3b47999470cc8a55f1643ddc317da8
|
|
| MD5 |
09c1239be575468bc509691d36a7b6d1
|
|
| BLAKE2b-256 |
84548499f7be6a99298e07f273cd10b78fad0ccf661673315677a0ae2075f91d
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on Jsakkos/mkv-episode-matcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkv_episode_matcher-1.0.0-py3-none-any.whl -
Subject digest:
497ef080a633e500b4355c2c607547e74b3b47999470cc8a55f1643ddc317da8 - Sigstore transparency entry: 780545043
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@f45a6e2093f3b045251cf0d3b9852dd88dd01528 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f45a6e2093f3b045251cf0d3b9852dd88dd01528 -
Trigger Event:
push
-
Statement type: