Back to projects

Kakitori

A VLC extension that listens to a Japanese video and writes the subtitles into the file itself. I built it because I study Japanese, and the slowest part of learning from real material was never the watching. It was getting the words back out afterwards.

Getting the words out of a video

I study Japanese every day. The advice everyone gives you is to learn from material you enjoy, which is good advice and quietly impractical.

The problem is not understanding the video. It is what happens next. You hear a word you half know, you want it written down so you can look it up and keep it, and there is no way to get at it. You rewind. You squint. You try to type what you think you heard into a dictionary and get nothing, because you misheard one syllable. Twenty minutes of a drama can cost an hour of stopping and starting, and most of that hour is not learning. It is transcription you are doing badly, by hand.

What I wanted was boring and specific: the text of what was said, sitting underneath the video, so I could read along and take what I needed.

Subtitles go inside the video file

Plenty of tools will transcribe a file. They hand you a separate subtitle file and consider the job done.

That is the easy version and it is the wrong one. Separate subtitle files get lost. They do not survive being moved to another folder or sent to someone else. Several of the players people actually use ignore them. You end up managing a little archive of loose text files that only mean anything next to the right video, which is exactly the kind of friction that stops you studying.

So Kakitori writes the subtitles into the video file. One file, subtitles included, plays anywhere. VLC, QuickTime, the Apple TV app, Films and TV. Move it to your phone and the text comes with it.

That decision made the project much harder, and it is the only reason it is worth using.

Rewriting a video without breaking it

Writing a subtitle track into a video means rewriting the video. If that goes wrong halfway through, somebody loses a file they might not have a copy of.

So most of the work went into the boring guarantees. The picture is never touched. Every audio track and every existing subtitle track survives. The new file is checked for completeness before it is allowed to replace the old one. Run it twice and it replaces only its own subtitles, leaving anything else alone.

It also admits what it cannot do. A few things, like Finder tags on macOS or some iPhone camera data, cannot be carried across, so it says so rather than losing them quietly. I would rather a tool told me the truth than pretended.

What it runs on

It runs on macOS, Windows and Ubuntu, on the VLC most people already have, for the video formats people actually keep. Only the audio is ever uploaded for transcription. The picture never leaves your machine.

It is a personal tool that I use most weeks. That was the whole ambition, and getting the unglamorous parts right is what made it something I kept using rather than something I built once and abandoned.