AI Video Editing Flows

Effect #002 in our rendered series

Karaoke pill captions

Captions in a pill where each word changes colour as it is spoken, for Shorts and Reels.

Real footage, with sound

1920x1080 file, 5.1 MB

Rendered by us at 1920x1080 over a shot from Tears of Steel (Blender Foundation, CC-BY 3.0). Expand plays the full 1080p file with the film's sound.

Edit in Premiere, Resolve or After Effects? Jump to editor templates. Making many versions of the same video? Use the code route.

Make this effect with

Built and tested by us

Other ways, not tested by us

Use it in a real edit

The demo above already plays the composition over real footage: the clip is a muted <video> layer under the graphics (the file plate.mp4 in the code below), and the film's sound is added to the finished file. Replace that file with your own clip and render again. To use the graphics in an editor instead, switch the background off and render a transparent MOV (an H.264 MP4 cannot carry transparency):

Render the graphics alone, with transparency
npx hyperframes render . -o overlay.mov --format mov --fps 24 --variables '{"plate":false}'

The routes in full

With Claude Code: the prompt we used

Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.

Build a 5-second, 1920x1080, 24 fps HyperFrames composition of karaoke pill captions from the registry component caption-pill-karaoke. Each phrase sits in one rounded pill near the bottom third; the spoken word changes colour inside the pill while the pill smoothly resizes to the phrase width. Phrases: "Make every word" / "easy to follow," / "even the long ones" / "like unbelievably." with fast short words and one long word. Variables: active word colour, pill colour, text size, a switch for two-line phrases, and a background switch for a transparent overlay.

What changed since this prompt: the demo on this page is our second version, 6 seconds long, rebuilt on a shot from Tears of Steel with the same animation idea. The full composition below is the one we rendered; its build log lists every change.

Built by a Claude Code subagent (Sonnet) from the HyperFrames registry component caption-pill-karaoke, HyperFrames 0.8.10. Claude Code then checked the composition with hyperframes lint and hyperframes check before we rendered it.

What we had to correct (4 notes from the build log):

  • 4 Nov 2026 23:55 IST, lint 1: 0 errors, 0 warnings.
  • Pill width and height are tween targets, so each phrase is measured once at build time. The build therefore waits for the Montserrat font to load (`document.fonts.load`) before it registers the timeline, so widths are not measured against a fallback font.
  • Decided against: the component's sample transcript (it advertises HyperFrames), its grey and near-black colours (active colour, pill colour and text size are variables instead), and a fixed pill width (the pill resizes per phrase, as asked).
  • v2 (7 Nov 2026): rebuilt on Tears of Steel footage (plate dlg_space: 5:20.7 to 5:28.6 with the film's own pink on-screen-text cutaway cut out of picture and sound, 1.87 s each, an L-cut in the silent pause) with the film's sound; the karaoke highlight now follows the real dialogue "You have your robotics... and I just want to be awesome in space." using faster-whisper word times; caption 80 px above the bottom edge (consultant round 2); length 6.0 s.

With HyperFrames code

Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.

Install the block and render
npx hyperframes add caption-pill-karaoke
npx hyperframes render . -o out.mp4 --fps 24

Settings you can change without rebuilding (pass them with --variables):

SettingNameTypeDefault
Active word colouraccentcolor#d9400b
Pill colourpillcolor#f1eff3
Text size (px)sizenumber84
Two-line phrasestwolinebooleanfalse
Show backgroundplatebooleantrue
Our full composition (index.html, 10 KB)
index.html
<!doctype html>
<html lang="en" data-composition-variables='[
  {"id":"accent","type":"color","label":"Active word colour","default":"#d9400b"},
  {"id":"pill","type":"color","label":"Pill colour","default":"#f1eff3"},
  {"id":"size","type":"number","label":"Text size (px)","default":84,"min":52,"max":120},
  {"id":"twoline","type":"boolean","label":"Two-line phrases","default":false},
  {"id":"plate","type":"boolean","label":"Show background","default":true}
]'>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=block" rel="stylesheet" />
    <script src="gsap.min.js"></script>
    <style>
      *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: transparent; }
      #root { position: relative; width: 100%; height: 100%; overflow: hidden; background: transparent; }
      #plate { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 40%, #1b2335 0%, #0b0d12 70%); overflow: hidden; }
      #world { position: absolute; left: -200px; top: -120px; width: 2400px; height: 1320px; }
      .blob { position: absolute; border-radius: 50%; filter: blur(60px); }
      .b1 { width: 760px; height: 760px; left: 180px; top: 260px; background: #ff5a1f; opacity: 0.35; }
      .b2 { width: 900px; height: 900px; left: 1200px; top: 80px; background: #2f6bff; opacity: 0.45; }
      .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 120px 120px; }
      #stage { position: absolute; left: 0; right: 0; bottom: 80px; display: flex; justify-content: center; align-items: flex-end; z-index: 10; }
      #pill { position: relative; display: flex; align-items: center; justify-content: center; opacity: 0; box-shadow: 0 14px 40px rgba(0,0,0,0.35); font-family: "Montserrat", sans-serif; font-weight: 800; }
      #measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; font-family: "Montserrat", sans-serif; font-weight: 800; }
      .phr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; }
      #measure .phr { position: static; display: inline-flex; width: max-content; opacity: 1; }
      .ln { display: flex; gap: 0.26em; line-height: 1.2; white-space: nowrap; }
      .w { display: inline-block; color: var(--inact); letter-spacing: 0.005em; }
    
      /* footage plate (v2): real footage, pinned, no generated blobs */
      #plate { background: #000 !important; }
      #world { left: 0 !important; top: 0 !important; width: 1920px !important; height: 1080px !important; transform: none !important; }
      #world .blob, #world .grid { display: none !important; }
      #pv { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; object-fit: cover; }
      #scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="6.0" data-fps="24" data-width="1920" data-height="1080">
      <div id="plate"><div id="world"><video id="pv" src="plate.mp4" muted playsinline data-start="0" data-duration="6.0"></video><div id="scrim"></div><div class="blob b1" id="b1"></div><div class="blob b2" id="b2"></div><div class="grid"></div></div></div>
      <div id="measure"></div>
      <div id="stage"><div id="pill"></div></div>
    </div>
    <script>
      window.__timelines = window.__timelines || {};
      (function () {
        const v = window.__hyperframes.getVariables();
        if (!v.plate) document.getElementById("plate").style.display = "none";
        const PH = [[["You", 0.24, 0.8], ["have", 0.8, 0.98], ["your", 0.98, 1.22], ["robotics...", 1.22, 1.95]],
          [["and", 2.49, 2.71], ["I", 2.71, 2.89], ["just", 3.43, 3.61], ["want", 3.61, 3.83]],
          [["to", 3.83, 3.93], ["be", 3.93, 4.09], ["awesome", 4.09, 4.45], ["in", 4.45, 4.63], ["space.", 4.63, 5.43]]];
        function lum(h) {
          let s = String(h).replace("#", "");
          if (s.length === 3) s = s.split("").map((c) => c + c).join("");
          const r = parseInt(s.slice(0, 2), 16) || 0, g = parseInt(s.slice(2, 4), 16) || 0, b = parseInt(s.slice(4, 6), 16) || 0;
          return (0.299 * r + 0.587 * g + 0.114 * b) / 255;
        }
        function linesOf(ws) {
          if (v.twoline && ws.length > 1) { const k = Math.ceil(ws.length / 2); return [ws.slice(0, k), ws.slice(k)]; }
          return [ws];
        }
        function mkPhrase(parent, pi, withIds) {
          const g = document.createElement("div"); g.className = "phr";
          let idx = 0;
          linesOf(PH[pi]).forEach((L) => {
            const ln = document.createElement("div"); ln.className = "ln";
            L.forEach((w) => { const s = document.createElement("span"); s.className = "w"; s.textContent = w[0]; if (withIds) s.id = `w${pi}_${idx}`; idx++; ln.appendChild(s); });
            g.appendChild(ln);
          });
          parent.appendChild(g);
          return g;
        }
        function build() {
          const size = v.size;
          const pill = document.getElementById("pill"), meas = document.getElementById("measure");
          pill.style.fontSize = size + "px"; meas.style.fontSize = size + "px";
          const light = lum(v.pill) > 0.55;
          const INACT = light ? "#6f6c7c" : "#98a0b8";
          const SPOKEN = light ? "#1b1d27" : "#ffffff";
          pill.style.background = v.pill;
          pill.style.setProperty("--inact", INACT); meas.style.setProperty("--inact", INACT);
          const padX = Math.round(size * 0.62), padY = Math.round(size * 0.26);
          const rad = (h) => Math.min(Math.round(h / 2), 70);
          const dims = PH.map((_, pi) => { const m = mkPhrase(meas, pi, false); return { w: m.offsetWidth + 2 * padX, h: m.offsetHeight + 2 * padY }; });
          const groups = PH.map((_, pi) => mkPhrase(pill, pi, true));
          gsap.set(pill, { width: dims[0].w, height: dims[0].h, borderRadius: rad(dims[0].h) });

          const tl = gsap.timeline({ paused: true });
          tl.fromTo("#world", { x: 0, y: 0 }, { x: -160, y: -50, duration: 6.0, ease: "none" }, 0);
          tl.fromTo("#b1", { x: 0, y: 0 }, { x: 140, y: -80, duration: 6.0, ease: "sine.inOut" }, 0);
          tl.fromTo("#b2", { x: 0, y: 0 }, { x: -120, y: 100, duration: 6.0, ease: "sine.inOut" }, 0);
          tl.fromTo(pill, { opacity: 0, scale: 0.88, y: 24 }, { opacity: 1, scale: 1, y: 0, duration: 0.3, ease: "back.out(1.6)" }, 0.1);
          tl.fromTo(groups[0], { opacity: 0 }, { opacity: 1, duration: 0.18, ease: "power2.out" }, 0.2);
          const NR = { immediateRender: false };
          PH.forEach((ws, pi) => {
            ws.forEach(([, s, e], i) => {
              const w = `#w${pi}_${i}`;
              tl.fromTo(w, { color: INACT }, { color: v.accent, duration: 0.08, ease: "power1.out", ...NR }, s);
              tl.fromTo(w, { scale: 1 }, { scale: 1.07, duration: 0.07, ease: "power2.out", ...NR }, s);
              tl.fromTo(w, { scale: 1.07 }, { scale: 1, duration: 0.16, ease: "power2.out", ...NR }, s + 0.07);
              tl.fromTo(w, { color: v.accent }, { color: SPOKEN, duration: 0.12, ease: "power1.inOut", ...NR }, e);
            });
            if (pi < PH.length - 1 && PH[pi + 1][0][1] - ws[ws.length - 1][2] > 1.0) {
              const end = ws[ws.length - 1][2], nxt = PH[pi + 1][0][1];
              tl.fromTo(pill, { opacity: 1, scale: 1, y: 0 }, { opacity: 0, scale: 0.94, y: 12, duration: 0.18, ease: "power2.in", ...NR }, end + 0.35);
              tl.fromTo(groups[pi], { opacity: 1 }, { opacity: 0, duration: 0.12, ease: "power1.in", ...NR }, end + 0.35);
              tl.set(pill, { width: dims[pi + 1].w, height: dims[pi + 1].h, borderRadius: rad(dims[pi + 1].h) }, end + 0.6);
              tl.fromTo(pill, { opacity: 0, scale: 0.88, y: 24 }, { opacity: 1, scale: 1, y: 0, duration: 0.25, ease: "back.out(1.6)", ...NR }, nxt - 0.22);
              tl.fromTo(groups[pi + 1], { opacity: 0 }, { opacity: 1, duration: 0.16, ease: "power2.out", ...NR }, nxt - 0.18);
            } else if (pi < PH.length - 1) {
              const end = ws[ws.length - 1][2], nxt = PH[pi + 1][0][1];
              const sw = Math.max(end, nxt - 0.2), dur = Math.min(0.2, nxt - sw);
              tl.fromTo(pill, { width: dims[pi].w, height: dims[pi].h, borderRadius: rad(dims[pi].h) }, { width: dims[pi + 1].w, height: dims[pi + 1].h, borderRadius: rad(dims[pi + 1].h), duration: dur, ease: "power3.inOut", ...NR }, sw);
              tl.fromTo(groups[pi], { opacity: 1 }, { opacity: 0, duration: dur * 0.6, ease: "power1.in", ...NR }, sw);
              tl.fromTo(groups[pi + 1], { opacity: 0 }, { opacity: 1, duration: dur * 0.7, ease: "power1.out", ...NR }, sw + dur * 0.3);
            }
          });
          tl.fromTo(groups[PH.length - 1], { opacity: 1 }, { opacity: 0, duration: 0.12, ease: "power1.in", ...NR }, 5.84);
          tl.fromTo(pill, { opacity: 1, scale: 1, y: 0 }, { opacity: 0, scale: 0.92, y: 14, duration: 0.18, ease: "power2.in", ...NR }, 5.8);
          window.__timelines["main"] = tl;
        }
        const f = document.fonts && document.fonts.load ? document.fonts.load("800 " + v.size + "px Montserrat", "You have your robotics").catch(() => {}) : Promise.resolve();
        f.then(() => document.fonts.ready).then(build);
      })();
    </script>
  </body>
</html>

With Remotion

We have not built this effect in Remotion. If you use it, read its licence first: Individuals (personal or commercial use), organisations or teams with a total headcount of 3 or less, non-profits, and anyone evaluating Remotion before commercial use. A company does not qualify merely because it is unprofitable. Everyone not eligible for the Free License needs a Company License. Remotion licence FAQ, checked Nov 4, 2026.

In your editor: Premiere, Resolve, After Effects, CapCut

Source page screenshot, captured 2026-11-07

Captions app AI edit styles

By Captions

Real captions product with preview videos for each style. The catch is that the fuller features are paid, the styles live inside the app, and the terms (read 6 Nov 2026) bar commercial use of the app's own content beyond what they authorise.

Use it for: Picks a ready karaoke style caption in an app.

Licence, price and checks
  • Licence Captions Terms and Conditions (effective 4 Sep 2025), read 6 Nov 2026
  • Reuse a web tool we link to; we reuse nothing from it. The terms bar commercial use of the Services including Mirage Content except as they authorise
  • Price not shown
  • Library check works, Oct 14, 2026

Source reviewed on Oct 14, 2026. Not tested by us.

Variations

The same composition rendered again with different settings. Nothing was rebuilt.

Subtle: blue active word, smaller text{"accent":"#2f6bff","size":64}
Bold: dark pill, yellow active word, bigger text{"pill":"#1b1e2b","accent":"#ffd23f","size":104}
Two-line phrases{"twoline":true}

Spec and test details

Engine
HyperFrames 0.8.10, GSAP 3.14.2 (local copy)
Length and frame rate
6 seconds at 24 fps, rendered at 1920x1080
Video files on this page
H.264: 1920x1080 for Expand (5247.6 KB), 1280x720 in the page (1417.5 KB), 640x360 in galleries (245.2 KB); the 1080p and 720p files carry the film's sound
Picture check
The 1080p file scores VMAF 98.53 against our render master and keeps 98% of its edge detail (measured by us with FFmpeg libvmaf and OpenCV)
Footage
Celia close-up, then Thom close-up (the film's pink text cutaway removed with a matched 1.87 s cut in picture and sound); 'You have your robotics... and I just want to be awesome in space.' (Tears of Steel, 5:20)
Tested in editors
None yet
Flash check
Passed: at most 1 general and 0 red flashes in any second. automated approximation of WCAG 2.3.1 on a 96x54 grid, whole loop including the restart; not a certification.
Licence
Composition adapted by us from the HyperFrames registry (Apache-2.0); text fonts from Google Fonts under the SIL Open Font License.
Last tested
Nov 7, 2026
Machine
Laptop: AMD Ryzen 7 7735U (8 cores, 16 threads), 31 GB RAM, Windows 11 Home; CPU rendering
Technical details: render times and file sizes
  • Render of the 6-second master: 125.1 s (2 render workers, on the laptop above).
  • full.mp4: 5247.6 KB
  • hero.mp4: 1417.5 KB
  • hero.webp: 32.3 KB
  • tile.mp4: 245.2 KB
  • tile.webp: 11.3 KB
  • Variation "subtle": rendered in 100.5 s, 239.2 KB
  • Variation "bold": rendered in 102.1 s, 244.3 KB
  • Variation "twoline": rendered in 88.1 s, 240.8 KB

Credits

  • Built from the HyperFrames registry component caption-pill-karaoke by HeyGen (Apache-2.0), adapted by us.
  • Fonts from Google Fonts, under the SIL Open Font License.
  • Footage: Tears of Steel, (c) Blender Foundation, mango.blender.org, licensed CC-BY 3.0. We cropped the shots to 16:9 and laid our graphics over them.
  • Editor templates and other routes on this page belong to their creators, who are credited on each card.

Related effects and jobs

Page checked on Nov 4, 2026.