Filler Cut
Filler-word removal for Remotion: a spoken transcript with um and like gets its filler words cut out and collapses into one clean line, for captions or editing demos.
In Remotion, Filler Cut animates a transcript where filler words like "um" get cut out, so it collapses into a clean line such as "Ship your launch video today." Use it in a captions, podcast or editing-tool demo that shows filler words being removed from speech.
$ pnpm dlx shadcn@latest add @remocn/filler-cutHow to build this in Remotion
You don't need @remotion/captions or @remotion/layout-utils for this beat. Install the component and pass the messy and clean text:
npx shadcn@latest add @remocn/filler-cutThe schedule in timeline.ts lines up each spoken word, the mark, each cut, the reflow and the final set; every move is interpolate() with Easing. Word widths are measured on a canvas before the first frame, held with delayRender, so the remaining words close the gaps through transform without a layout jump.
Good to know
- Length: 114 frames of motion at 30 fps (228 at 60 fps) with the default props. The demo plays 150 frames, which adds a hold. The length grows with the number of words and cuts: each extra cut adds
staggerframes. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Schibsted Grotesk and Geist Mono (for the timecode) itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - The words of
keepare matched in order against the transcript, and every transcript word left unmatched is cut.showTime={false}hides the timecode.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { FillerCut } from "@/components/remocn/filler-cut";
const FillerCutScene = () => <FillerCut transcript="So, um, ship your, like, launch video, uh, today. You know?" keep="Ship your launch video today." highlight="today." />;
export const RemotionRoot = () => (
<Composition
id="FillerCut"
component={FillerCutScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);A spoken-style transcript appears with filler words marked, the filler is cut out one phrase at a time with a timecode, and the remaining words reflow and set into a clean headline with the last word highlighted. Pass transcript (the messy text), keep (the clean line) and highlight.
Props15
| Prop | Type | Default |
|---|---|---|
| transcript | string"So, um, ship your, like, launch video, uh, today. You know?" The raw spoken text, including the filler words. | |
| keep | string"Ship your launch video today." The clean line; words not in it are cut. | |
| highlight | string"today." Phrase in the clean line set in the accent color. | |
| showTime | booleantrue Show the running timecode while words are cut. | |
| stagger | number6 Frames between one run of filler words collapsing and the next. | |
| fontWeight | number500 Weight of the clean headline. | |
| accent | string"#3B5BFD" End color of the gradient fill on the clean headline. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Schibsted Grotesk" Typeface for the copy. Schibsted Grotesk loads by default; load any other face in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| grain | booleantrue Film grain over the scene. | |
| speed | number1 Playback multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Color scheme; ships dark and light. | |
- transcriptstring
The raw spoken text, including the filler words.
Default
"So, um, ship your, like, launch video, uh, today. You know?" - keepstring
The clean line; words not in it are cut.
Default
"Ship your launch video today." - highlightstring
Phrase in the clean line set in the accent color.
Default
"today." - showTimeboolean
Show the running timecode while words are cut.
Default
true - staggernumber
Frames between one run of filler words collapsing and the next.
Default
6 - fontWeightnumber
Weight of the clean headline.
Default
500 - accentstring
End color of the gradient fill on the clean headline.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Schibsted Grotesk loads by default; load any other face in your project first.
Default
"Schibsted Grotesk" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Color scheme; ships dark and light.
Default
"dark"
Common questions
How do I animate a transcript in Remotion where filler words like um get cut out?
Install Filler Cut with npx shadcn@latest add @remocn/filler-cut and pass transcript (with the filler), keep (the clean line) and highlight. The filler is marked, cut one piece at a time and the rest reflows into the clean line.
Do I need to load Schibsted Grotesk?
No, it loads itself. Only a custom fontFamily needs loading.
How long should the composition be?
At least 114 frames at 30 fps (228 at 60 fps) for the default transcript; add your own hold after the line sets.
Related effects
- Diff Swap: a before line rewritten into an after line.
- Typo Fix: a misspelled word corrected in place.
- Block Swap: a solid block wipes each line and replaces it.
- Karaoke: word-timed captions for real speech.