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.
[!TIP] Recommended: Try Engram for new projects. Engram provides a complete end-to-end media workflow including episode matching, automated organization, and more. MKV Episode Matcher remains available for standalone matching use cases.
🚀 Quick Start
Follow these steps to get up and running in minutes.
1. Prerequisites
Before you start, ensure you have the following:
- FFmpeg: Installed and added to your system PATH.
- API Keys:
- OpenSubtitles.com account (for downloading subtitles).
- TMDb API Key (for fetching episode titles).
- Directory Structure: Your files must be organized by Show/Season. See Directory Structure below.
2. Install & Launch
The easiest way to run MKV Episode Matcher is using the standalone Windows executable.
- Download the latest
mkv-match.exefrom GitHub Releases. - Double-click
mkv-match.exeto launch. - The Web UI will automatically open in your default browser at
http://localhost:8001.
[!NOTE] On the very first run, the system needs to download the speech recognition model (approx. 5-10 seconds). You will see a "System Loading" indicator.
3. Setup
- In the Web UI, go to the Settings tab.
- Enter your OpenSubtitles credentials and TMDb API Key.
- Click Save.
4. Make Your First Match
- Go to the Dashboard.
- Use the file browser to navigate to a folder containing your TV show episodes.
- Click "Scan This Folder".
- The system will analyze your files and propose matches. You can review them before confirming the rename.
✨ Key Features
- Modern Web Interface: Easy-to-use Dashboard with dark mode.
- Advanced Speech Recognition: Identifies episodes by listening to the audio.
- Smart Subtitles: Automatically downloads subtitles from OpenSubtitles.
- Safe: Review matches before any files are renamed.
🛠️ Advanced Installation & Usage
For developers, Linux/macOS users, or those preferring the command line.
Option A: Install via pip (Cross-platform)
# Basic install
pip install mkv-episode-matcher[cpu]
# With CUDA support (NVIDIA GPU required)
pip install mkv-episode-matcher[cu128]
Option B: Run from Source (Development)
We recommend using uv for dependency management.
git clone https://github.com/Jsakkos/mkv-episode-matcher.git
cd mkv-episode-matcher
# Install dependencies
uv sync --extra cpu
# Launch Server
uv run mkv-match serve
CLI Mode
You can also use the Command Line Interface (CLI) for automation. Make sure to run the command from the root directory of the repository or your home directory, not the show directory.
# Match a folder
mkv-match match "C:\Path\To\Show"
# Match with subtitle download
mkv-match match "C:\Path\To\Show" --get-subs
Building the Executable
To build the .exe yourself:
uv sync --extra cpu
uv run pyinstaller mkv_match.spec
Reference Subtitle Structure
If you have your own subtitles or don't use the auto-download feature, ensure your files are named correctly so the system can find them.
Cache Directory: C:\Users\{username}\.mkv-episode-matcher\cache\data\
Naming Format:
{show_name} - S{season:02d}E{episode:02d}.srt
Example:
Show Name/
├── Show Name - S01E01.srt
├── Show Name - S01E02.srt
Contributing
- Fork the repository
- Create your 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.
Documentation
Full documentation is available at https://jsakkos.github.io/mkv-episode-matcher/
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.3.6.tar.gz.
File metadata
- Download URL: mkv_episode_matcher-1.3.6.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a369eb54b5e0f282d457b0202f129d59b4ea09a36fe2e9d02b8fedf42ac426ad
|
|
| MD5 |
c403897cf85fd26f2f06f00ef64dedb0
|
|
| BLAKE2b-256 |
ed218c1d1650ff5cfaeaa1a86f77c76bd958838d65a9e39dffd466ae4c278e43
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-1.3.6.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.3.6.tar.gz -
Subject digest:
a369eb54b5e0f282d457b0202f129d59b4ea09a36fe2e9d02b8fedf42ac426ad - Sigstore transparency entry: 1339559575
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@3efdf1c8dad5ad35319f8614944a9404dfcb71eb -
Branch / Tag:
refs/tags/v1.3.6 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3efdf1c8dad5ad35319f8614944a9404dfcb71eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkv_episode_matcher-1.3.6-py3-none-any.whl.
File metadata
- Download URL: mkv_episode_matcher-1.3.6-py3-none-any.whl
- Upload date:
- Size: 197.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c181c77de29eddf616996d0eb024702d08def5f182ee6bafb957e036f4c0f3c
|
|
| MD5 |
87e84d36149feb3c481a647576b7d0c1
|
|
| BLAKE2b-256 |
131ce08486636adf8ad34b69a92a414052cf9fb1e3793824be7ab8ef65dccb24
|
Provenance
The following attestation bundles were made for mkv_episode_matcher-1.3.6-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.3.6-py3-none-any.whl -
Subject digest:
5c181c77de29eddf616996d0eb024702d08def5f182ee6bafb957e036f4c0f3c - Sigstore transparency entry: 1339559576
- Sigstore integration time:
-
Permalink:
Jsakkos/mkv-episode-matcher@3efdf1c8dad5ad35319f8614944a9404dfcb71eb -
Branch / Tag:
refs/tags/v1.3.6 - Owner: https://github.com/Jsakkos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3efdf1c8dad5ad35319f8614944a9404dfcb71eb -
Trigger Event:
push
-
Statement type: