<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Captionly</title>
    <description>The latest articles on DEV Community by Captionly (@captionly).</description>
    <link>https://dev.to/captionly</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3972377%2F5c9c1ad1-3fa2-43a3-a354-cb61a3436bb3.png</url>
      <title>DEV Community: Captionly</title>
      <link>https://dev.to/captionly</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/captionly"/>
    <language>en</language>
    <item>
      <title>Free Video subtitles in seconds — no signup, no watermark, no upload</title>
      <dc:creator>Captionly</dc:creator>
      <pubDate>Sun, 07 Jun 2026 10:32:16 +0000</pubDate>
      <link>https://dev.to/captionly/free-video-subtitles-in-seconds-no-signup-no-watermark-no-upload-2n36</link>
      <guid>https://dev.to/captionly/free-video-subtitles-in-seconds-no-signup-no-watermark-no-upload-2n36</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — I built &lt;a href="https://reel-caption.vercel.app" rel="noopener noreferrer"&gt;Captionly&lt;/a&gt;, a&lt;br&gt;
subtitle generator that runs Whisper inside the browser using&lt;br&gt;
&lt;code&gt;@huggingface/transformers&lt;/code&gt; (WebGPU when available, WASM as fallback).&lt;br&gt;
Files never leave the device. Here's how the pieces fit together and&lt;br&gt;
the gotchas that took me longest to figure out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why in-browser at all?
&lt;/h2&gt;

&lt;p&gt;Every other subtitle tool ships your video to their servers. That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Upload time gates the whole experience (a 200 MB MP4 is 30+ s before
anything starts).&lt;/li&gt;
&lt;li&gt;Privacy: your raw footage sits in someone else's S3.&lt;/li&gt;
&lt;li&gt;Cost: someone is paying for GPU minutes — usually you, behind a freemium
paywall.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Browsers got the missing pieces in the last 18 months:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WebGPU&lt;/strong&gt; — actual GPU compute inside the tab (Chrome 113+, Safari 18).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebCodecs&lt;/strong&gt; — hardware-accelerated video decode/encode without a
&lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transformers.js 3+&lt;/strong&gt; — ports Whisper, Llama, etc. to WebGPU with
ONNX Runtime Web.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put them together and you get a "real" video tool that runs entirely on&lt;br&gt;
the client.&lt;/p&gt;

&lt;h2&gt;
  
  
  The architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Drop file → WebCodecs decode → resample to 16 kHz mono
        → Whisper (WebGPU/WASM) → timestamped words
        → user edits inline → WebCodecs encode + burned-in subs
        → download
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No server in that flow. The only network call is the &lt;strong&gt;first&lt;/strong&gt; transcription,&lt;br&gt;
which pulls the Whisper weights (~60 MB for &lt;code&gt;Xenova/whisper-small&lt;/code&gt;) from the&lt;br&gt;
Hugging Face Hub. Subsequent runs are served from the browser's local cache&lt;br&gt;
(handled by transformers.js — no network round-trip).&lt;/p&gt;

&lt;h2&gt;
  
  
  Gotchas
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. WebGPU is great, except when it's not
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;whisper-small&lt;/code&gt; runs at ~3× real-time on an M2 with WebGPU. The same model&lt;br&gt;
on the WASM backend is ~0.8× real-time. So WebGPU is mandatory for a good&lt;br&gt;
UX. But:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Safari 18 ships WebGPU, but &lt;code&gt;transformers.js&lt;/code&gt; needs Safari ≥18.4 for the
&lt;code&gt;f16&lt;/code&gt; ops Whisper uses.&lt;/li&gt;
&lt;li&gt;Linux Chrome has WebGPU behind a flag in some distros.&lt;/li&gt;
&lt;li&gt;Some Android devices report WebGPU but crash on the first kernel.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I detect, attempt, fall back to WASM, and tell the user when it happens.&lt;br&gt;
No silent degradation — a 10× perf drop is too big to hide.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Long videos blow up Whisper
&lt;/h3&gt;

&lt;p&gt;Whisper natively handles 30 s chunks. For longer audio you have to chunk&lt;br&gt;
manually with overlap and stitch the outputs. &lt;code&gt;transformers.js&lt;/code&gt; exposes&lt;br&gt;
&lt;code&gt;return_timestamps: 'word'&lt;/code&gt; and handles the stitching, but you have to&lt;br&gt;
pre-resample to 16 kHz mono first — Whisper's tokenizer expects exactly&lt;br&gt;
that and silently produces garbage if you feed 44.1 kHz stereo.&lt;/p&gt;

&lt;p&gt;I use the WebAudio &lt;code&gt;OfflineAudioContext&lt;/code&gt; for resampling. ~50 ms for a&lt;br&gt;
10-minute file on the main thread. Then move it to a Web Worker so the UI&lt;br&gt;
doesn't jank during inference.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Burning subtitles back into MP4 without a server
&lt;/h3&gt;

&lt;p&gt;This was the trickiest part. The standard tools (&lt;code&gt;ffmpeg.wasm&lt;/code&gt;) are heavy&lt;br&gt;
and slow. I went with WebCodecs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Decode the source video frame-by-frame with &lt;code&gt;VideoDecoder&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Draw each frame onto an &lt;code&gt;OffscreenCanvas&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Composite the active subtitle line on top (one of 12 TikTok-style
presets — rendered with the Canvas 2D API).&lt;/li&gt;
&lt;li&gt;Re-encode with &lt;code&gt;VideoEncoder&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Mux back into MP4 via &lt;code&gt;mp4-muxer&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Result: a short 1080p clip re-encodes in seconds on a recent laptop (timing&lt;br&gt;
scales with hardware + the WebCodecs encoder), with zero server cost. The&lt;br&gt;
full muxing dance fits in ~400 lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ship &lt;code&gt;whisper-large-v3-turbo&lt;/code&gt; (still ~800 MB) behind an opt-in for users
who want lab-quality accuracy. The cache hit on second visit makes this
viable even at that size.&lt;/li&gt;
&lt;li&gt;Add a worker-pooled encoder so longer videos can fan out across cores.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://reel-caption.vercel.app" rel="noopener noreferrer"&gt;Captionly&lt;/a&gt; — free, no signup, no&lt;br&gt;
watermark. Repo coming soon (I want to clean up a few rough edges first).&lt;/p&gt;

&lt;p&gt;Happy to answer architecture questions in the comments.&lt;/p&gt;

</description>
      <category>whisper</category>
      <category>webml</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
