Setting Up Yomipv¶
Use Yomipv to create cards without leaving MPV or breaking immersion.
Requirements¶
- MPV (0.33.0 or higher)
- FFmpeg (Required for media extraction, but fallbacks to mpv's internal encoder if not found)
- Anki with AnkiConnect
- Yomitan and Yomitan Api
- Node.js (Required for the lookup app)
-
curl (Usually pre-installed on Windows, used for API requests)
-
Clone the repository to your MPV directory and install dependencies (make sure you have Node.js installed):
-
Windows:
%APPDATA%/mpv/ -
Linux:
~/.config/mpv/
-
-
Configure Settings
- Open
script-opts/yomipv.confand update your Anki deck/note type names and field mappings (usually not necessary, as everything is preconfigured for Senren).
- Open
-
External Services
- Ensure Anki is running with AnkiConnect enabled.
- Ensure Yomitan API is running and the browser with the Yomitan extension is open and has dictionaries installed.
Usage¶
Basic Workflow¶
- Open a video with Japanese subtitles in MPV.
- Press
cto activate the word selector. - Navigate with arrow keys or mouse hover to select a word.
- Press
Enter,c, or left-click to create an Anki card.
Advanced Features¶
- Append Mode (
Shift+C): Select multiple subtitle lines before exporting. -
Press
Shift+Cto enter append mode,cto start the word selector, orShift+Cagain to cancel. -
Selection Expansion:
Ctrl+Left/Ctrl+Right: Expand selection to adjacent words.-
Shift+Left/Shift+Right: Expand to previous/next subtitle line. -
Word Splitting (
sor right-click): Split compound words into smaller segments. -
Dictionary Lookup (
Ctrl+c): Open real-time dictionary definitions window that uses your yomitan glossary. -
History Panel (
a): Toggle subtitle history panel - Click on previous/next lines to select them to expand the subtitle lines (when selector is open) or seek to that timestamp (when selector is closed).