Deadjournal

All posts

MPV Subtitle Translator

All these years of learning English, and I still sometimes struggle with it, especially when watching anime with English subtitles. It gets particularly challenging when the subtitles change too quickly or when the translators overuse informal idiomatic expressions and jargon instead of plain English (e.g. "to betray" -> "throw someone under the bus", "to chat" -> "chew the fat", and other nonsense).

That's why I created a plugin for MPV that translates subtitles on-the-fly using a free Google Translate endpoint. You just press a key, and the translation appears on the OSD. The script is incredibly simple, but it works perfectly.

I’m not sure how long this endpoint will keep working, but for now, it’s running smoothly. Feel free to check it out!

https://git.bernd32.xyz/bernd32/SubTranslate

Tags: coding, mpv, english