mpv-AI-sub-fastwhisper is an mpv subtitle script that generates SRT subtitles via faster-whisper speech transcription and translates them with the GPT API for bilingual display.
- vv1.0.0
- Published at
- Sep 6, 2026
- 1
- Stars
- 3
- Download
- Synced at
- 13d ago
Latest release
vv1.0.0Sep 6, 2026, 12:23 AMDownloads slow? Switch the source anytime above
README
Project Overview
mpv-AI-sub-fastwhisper is a subtitle script running inside mpv that transcribes a video's audio with faster-whisper to produce SRT subtitles. Once generated, the script calls the GPT API to translate the content into a target language (Chinese by default), overlaying both as bilingual subtitles. It is forked from dyphire's project of the same name and adds a detailed illustrated tutorial.
Press one shortcut and let the video grow bilingual subtitles on its own.
Key Features
- Speech transcription: uses faster-whisper to recognize the current video's audio and produce SRT subtitles
- Automatic translation: calls the GPT API after transcription to translate into the target language, Chinese by default
- Bilingual display: the translation on top and the original below, color-coded for easy comparison
- Shortcut trigger: press
Alt + Fduring playback to start recognition, generation, and translation - Illustrated tutorial: walks through downloading the recognizer, placing models, and configuring script options with images
- Configurable options: paths, models, target language, and the GPT API are all set in the script options
Target Audience
- Users watching foreign-language videos without subtitles
- People who want bilingual subtitles directly inside mpv
- Users with an NVIDIA GPU willing to run recognition locally
- Enthusiasts who generate subtitles in bulk
Quick Start
- Prepare an NVIDIA GPU (6GB+ VRAM recommended) and install 7-Zip or WinRAR
- Create target folders such as
D:\000\ai-whisper\andD:\000\mpv\ - Download Faster-Whisper-XXL from Purfview's release page (choose r245.4) and extract it into
ai-whisper - Create a
_modelsfolder underai-whisperand put the faster-whisper-large-v3 model there - Place this script and its config into mpv's
scriptsandscript-optsdirectories - Fill in the recognizer path and GPT API settings in the script options, then press
Alt + Fduring playback
Core Advantages
- Local recognition: transcription happens on your machine, so no video upload
- Bilingual in one step: recognition, translation, and overlay in a single chain
- Detailed tutorial: every step is illustrated, so beginners can follow along
- Flexible options: model, target language, and endpoint are all adjustable
System Requirements
| Item | Requirement |
|---|---|
| OS | Windows |
| Hardware | NVIDIA GPU, 6GB+ VRAM recommended |
| Dependencies | faster-whisper engine, FFmpeg, mpv |
| Optional | GPT API (for subtitle translation) |
Notes
- You must supply your own GPT API settings, or only the original text is produced without translation
- Model files are large, so both the download and recognition need time and disk space
- Recognition speed and quality depend on GPU performance and the chosen model
- Never share a config file that contains your keys
Release history
Sort