Why Do This in Your Browser?
Cloud-based subtitle generators are everywhere — Rev's auto-captions, Veed, Kapwing, Descript, Submagic — and they all share two costs: usage limits or per-minute fees, and the upload step. The actual transcription engine that most of these tools wrap is OpenAI's Whisper, which is MIT-licensed and runs anywhere with enough memory to load it.
Whisper's tiny and base models (about 41 MB and 77 MB as 8-bit files) are small enough to run in a browser. The pipeline: extract the audio track from your video with FFmpeg.wasm, run Whisper's ONNX export via Transformers.js to produce timestamped segments, format them as SRT, then burn the SRT back into the video with FFmpeg's subtitles= filter. End-to-end, entirely in your browser.
How It Works
The tool runs three stages. First, FFmpeg.wasm extracts the audio track at 16kHz mono WAV (Whisper's expected input). Second, Transformers.js loads the chosen Whisper model (tiny / base / small) and runs ASR on the audio, producing timestamped phrase segments; with Auto-detect it can recognise any of Whisper's 99 languages. Third, the timestamps are formatted as a SRT file and passed back to FFmpeg with `subtitles=subs.srt` to burn the captions into the video at the chosen style.
Burn-in styling covers font size and vertical position (Roboto Bold with a fixed 1 px outline), alongside the burned-in vs. soft-subtitle export choice. Soft subtitles (passenger SRT in MKV) keep the captions toggleable; burned-in subtitles appear on every platform regardless of player support (Latin, Greek, Cyrillic and Vietnamese scripts). If the auto-transcription misheard a word or the timing needs a nudge, open the exported SRT in Subtitle Studio to fix the text, shift or stretch the timing, and re-export to SRT or VTT before publishing.
Tip: If you only need a transcript without burning subtitles into the video, the standalone Audio Transcription tool exports plain TXT / SRT / VTT / JSON. If you need to chop the clip first, use the Video Trimmer before running auto-subtitle to save processing time.
Common Use Cases
Worked example: a 9-second spoken clip through all three outputs
On October 12, 2026 we ran the tool end to end in Chromium on a 9 s, 640×360 clip of synthetic English speech (three sentences), with the Base model and English selected. Transcription and burn-in took 27 s including the model download from cache. Base returned three timed segments (0–2 s, 2–6 s, 6–9 s); the frames at 1, 4 and 7.5 s each showed the matching caption at the bottom.
| Output mode | What it does | Result |
|---|---|---|
| Burn into video (default) | Re-encodes with subtitles=subs.srt:fontsdir=/fonts:force_style='FontName=Roboto,…' | Captions drawn in Roboto Bold with a 1 px outline; checked frame by frame |
| Soft subtitles (MKV) | Copies audio and video, adds the SRT as a subtitle track (-c:s srt) | Toggleable captions in players that read MKV subtitle tracks |
| SRT file only | Writes the Whisper segments as SRT | For YouTube, Vimeo, editors or Subtitle Studio |
- Burn-in needed a font. The FFmpeg.wasm build has the libass subtitle renderer but no system fonts, so until v181 burned videos came out without captions. The tool now loads a self-hosted Roboto Bold (Apache-2.0, about 350 KB) into FFmpeg's virtual file system and points the renderer at it.
- Burn-in covers Latin, Greek, Cyrillic and Vietnamese. Roboto has no Chinese, Japanese, Korean, Arabic, Hebrew, Hindi or Thai glyphs, so for those languages the tool stops with a message instead of burning empty boxes; use Soft subtitles or SRT file only, which leave the rendering to the player.
- Check the words before you burn. On the same clip Base wrote "a rather captured part of the video" for "appear as a caption at the bottom of the video", and Tiny stopped after the first sentence. Synthetic voices are harder than real speech, but burned captions cannot be edited afterwards, so for anything you publish export the SRT first, correct it, and burn with desktop FFmpeg if needed.
Worked example: 37 seconds of real read speech
Synthetic speech flatters a speech recogniser, so on October 12, 2026 we also ran four real recordings from LibriSpeech (a public-domain audiobook corpus, the first four clips of its validation sample) joined with 1 s pauses into a 37.6 s video, through the tool in Chromium with the Base model, language on Auto-detect and SRT output, and scored the subtitles against the corpus transcript:
| Version | Cues | Words (reference 83) | Word error rate | What went wrong |
|---|---|---|---|---|
| Before the fix | 5 | 75 | 14.5% | The start of the fourth sentence (“He has grave doubts whether Sir Frederick Leighton’s”, 26.6–30 s) was missing |
| Now | 6 | 83 | 7.2% | Only recognition slips: “Rose beef”, “similarly” for “similes”, “grieved” for “grave”, “Layton’s” |
The lost words were a decoding bug, not the model: the tool transcribes in 30-second windows, and when Whisper stopped producing segments a few seconds before a window edge, the next window started at the edge and skipped that speech. It now resumes from the end of the last segment it kept. The same fix applies to the Audio Transcription tool, which shares the code. Cue times from Whisper Base are coarse (several cues start on whole seconds), so nudge them in a subtitle editor if precise sync matters.
What the transcription gives you
- Segments, not words. Whisper returns phrase-length segments with start and end times; each becomes one SRT cue. There is no word-by-word highlighting.
- Model choice. Tiny (41 MB), Base (77 MB, default) and Small (249 MB) as 8-bit downloads. Whisper's own paper shows English word error rate falling as model size rises, so Small is worth the wait for noisy audio.
- Languages. The dropdown lists 12 languages plus Auto-detect; Auto-detect lets Whisper pick from the 99 languages it was trained on. "Translate to English" uses Whisper's built-in translate task.
- Styling. Burn-in settings are font size (10–80) and position (top, middle, bottom) with a 1 px outline; there are no colour or background options.
Sources
Checked on .
- Radford et al. (2022), Robust Speech Recognition via Large-Scale Weak Supervision (Whisper), arXiv:2212.04356
- FFmpeg documentation: subtitles filter (libass, fontsdir, force_style)
- ffmpeg.wasm (@ffmpeg/core 0.12.6)
- Hugging Face Transformers.js: automatic speech recognition pipeline
- W3C WAI: Captions/Subtitles