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.
⚠️ Important: OpenSubtitles Download Limits
Before using the app, please understand OpenSubtitles.com download limitations to avoid frustration.
The Issue
When you run MKV Episode Matcher, it automatically downloads reference subtitles for the entire season from OpenSubtitles.com. Free OpenSubtitles accounts have very low daily download limits (typically 5-20 downloads per day).
If you're trying to match a TV season with more episodes than your daily limit, you'll immediately see this error:
Solutions
Option 1: Upgrade to OpenSubtitles VIP ($3/month) - Significantly higher download limits - Fastest and most reliable solution - Upgrade here
Option 2: Build Your Cache Gradually (Free) - Run the matcher once per day until you have all subtitles - Each day you can download a few more episodes - Requires patience but eventually works
Option 3: Manual Subtitle Download
- Download .srt files manually from any source
- Place them in your cache directory: ~/.mkv-episode-matcher/cache/data/
- Use naming format: {Show Name} - S{season:02d}E{episode:02d}.srt
Option 4: Switch to Engram (Recommended) - Engram includes multiple subtitle sources - Better chance of success without hitting limits - More modern interface and faster matching
Why This Happens
MKV Episode Matcher needs reference subtitles to compare against the audio it extracts from your video files. The app downloads all subtitles for a season upfront, which quickly exhausts free account limits.
🛠️ 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:
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:
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/