Bangla Motion Edit
A production system for Bangla motion-graphics videos in Remotion. Two kinds of job:
- A. Speaker edit: a talking-head video gets motion graphics, keyword text, B-roll and sound.
- B. Full animation: no speaker; a voiceover plus script becomes an animated ad, reel or explainer.
The core idea: the content (footage, transcript, script) changes every project; the look (style tokens, components, motion rules) stays the same, so every video feels like part of one channel.
If the remotion:remotion-best-practices skill is available, load it too for Remotion API details.
1. Inputs to collect (ask once, in one message)
| Input | Required | Notes |
|---|---|---|
| Source video or voiceover | yes | Full file, not pieces |
| Exact wording | yes | Transcript (word-level JSON/SRT) or final script. Never reword it |
| Format | yes | 9:16, 4:5 or 16:9. Match the source size and fps for speaker edits |
| Style | no | studio-light (default) or night-mode (section 4) |
| Brand | no | Name, logo file, colours if different from the style |
| CTA | no | Button text, link, price, deadline |
| B-roll / screenshots | no | List the files or say none |
| Do-not-touch ranges | no | Time ranges to leave as they are |
If something is missing, list it as NEEDS in the plan instead of inventing it.
2. Workflow with gates
Stop at every GATE and wait for the user's OK.
Step 1: Setup
npx create-video@latest(blank template) or use the user's existing project. Pin everyremotionand@remotion/*package to the same exact version.- Install
@remotion/google-fonts,@remotion/media-utils,@remotion/transitions,lucide-react. - Put the source in
public/source.mp4(speaker) orpublic/voiceover.mp3(animation). - For smooth Studio preview of heavy footage, make a proxy:
ffmpeg -i public/source.mp4 -vf scale=-2:720 -c:v libx264 -preset veryfast -crf 28 -g 25 -c:a aac public/source-proxy.mp4Use the proxy in Studio and the original for render (switch with an env flag orgetRemotionEnvironment()). git initand commit. Make a branch for every big experiment.
Step 2: Timing (before any design)
- Get word-level timings. Best: a speech-to-text export with real word timestamps (e.g. ElevenLabs Scribe). Chat models that "estimate" timestamps drift; don't trust them.
- Spot-check: pick 5 words spread across the video, extract a 1 s audio clip at each start time (
ffmpeg -ss T -t 1 -i src -q:a 2 check_N.mp3) and confirm the word is heard at the beginning. Report any drift. - Fallback without a transcript:
ffmpeg -i src -af silencedetect=noise=-35dB:d=0.25 -f null -and map pauses to script sentences. - Write all timing into
src/data/timeline.ts, one named constant per cue, in frames, from word start times:A sync fix must always be a one-line edit.export const FPS = 30; const s = (sec: number) => Math.round(sec * FPS); export const CUE = { hookWord: s(0.42), problemLine: s(3.1), // ... } as const; export const SOURCE_CUTS = [s(12.4), s(27.9)]; // jump cuts in the footage
Step 3: Find jump cuts (speaker edits)
ffmpeg -i public/source.mp4 -vf "select='gt(scene,0.25)',showinfo" -f null - 2>&1 | grep pts_time
List every cut. Each one gets hidden: a framing change lands exactly on it, or a punch-in/out that changes scale by at least 15%, or a B-roll cover.
Step 4: Plan → GATE
- Chapter table: chapter | time range | story beat (hook, problem, turn, proof, offer, CTA).
- Scene plan: time | spoken line | speaker framing | what animates | exact on-screen text | asset or NEEDS.
- One NEEDS list for everything the user must send.
Step 5: Look test → GATE
Build the shared components (section 5) and only the hook scene plus one key scene. Show stills (npx remotion still <id> out/f.png --frame=N) at the key words and the Studio link.
Step 6: Build the rest in batches of 3–4 scenes → GATE after each batch
Commit after every approved batch.
Step 7: QA (before showing anything)
See section 7.
Step 8: Render only when the user says "render"
- Standard:
npx remotion render <id> out/final.mp4 --codec=h264 --crf=18 - High quality: add
--image-format=png --x264-preset=slow --audio-bitrate=320k --pixel-format=yuv420p - Report the output path and length. Ask the user to check on a real phone.
Step 9: After the project
Add anything the user corrected to this skill (a rule, a style token, a QA check) so the next video starts better.
3. What makes it feel premium
- Show the idea, don't just caption it. Every spoken idea gets a small visual metaphor (a messy desk becomes one tidy card; a price tag gets crossed out; a progress bar fills as the speaker counts steps). Text is only the keyword layer on top.
- One speaker shot, many framings. Keep the speaker continuous and move between framings:
full,punch(scale up),side(speaker shifted to one side, graphics on the other),card(speaker in a rounded card over a designed background),bubble(small circle in a corner). Return tofullfor the turning point and for the CTA. Aim for the speaker visible at least ~40% of the time. - Never fully still. Slow push on footage (about 3–5% scale over a scene), gentle drift on backgrounds, a few soft light particles. Calm springs only.
- Readable time. A single hero word stays fully visible at least 1 s; a 3–5 word line at least 1.3 s. If speech is faster, show fewer words.
- One focal point per moment. Max 3 text elements on screen at once.
- Sound under the voice (section 6) is half of the premium feeling.
4. Styles
Put the active style in src/theme.ts. Both styles share the type scale and motion rules; only colours and backgrounds differ.
studio-light (default)
- Background: warm off-white
#FAF7F2, two very soft blurred blobs (blur 160 px): teal#5EEAD4at 30% top-right, coral#FDA48Aat 25% bottom-left. - Ink
#14213D, muted ink#5B6475. - Primary accent teal
#0F9D8F, secondary coral#F26B4F. - Highlight gradient (keywords, buttons):
#0F9D8F → #14B8A6. - Warning/price accent: amber
#F59E0B, used on ONE element per chapter. - Cards:
#FFFFFFat 92% opacity, radius 28 px, 1 px borderrgba(20,33,61,0.08), shadow0 20px 50px rgba(20,33,61,0.12).
night-mode
- Background: deep navy
#0B1220with a soft radial glow#1E3A5Fat centre-top and a faint mint glow#34D399at 12% bottom. - Ink
#F1F5F9, muted#94A3B8. - Primary accent mint
#34D399, secondary sky#38BDF8. - Highlight gradient:
#34D399 → #38BDF8. - Cards:
#111A2Eat 90%, radius 28 px, 1 px borderrgba(255,255,255,0.08), shadow0 24px 60px rgba(0,0,0,0.45).
Typography (both)
- Bangla headline: Baloo Da 2 700–800 (fallback Noto Sans Bengali 800).
- Bangla body/labels: Noto Sans Bengali 500–600.
- Latin, numbers, UI text: Inter 600 (or Space Grotesk for tech topics).
- Load with
@remotion/google-fontsincluding the Bengali subset; wait for fonts before rendering. - Sizes for a 1080-wide frame (multiply by width/1080 for other sizes): hero word 150–190 px, line 64–80 px, label 34–40 px, small 26–28 px.
- Text depth: one solid fill plus one soft shadow (
0 8px 24px rgba(0,0,0,0.18)light /0 8px 28px rgba(0,0,0,0.5)dark). No stacked offset shadows, no outlines, no chrome. - Check Bangla conjuncts (যুক্তাক্ষর), ঐ/ৌ marks and রেফ in a still at every size used.
- Keep the user's spelling choices (English words in Latin or Bangla script, digits or words). Never change words.
Safe zones
| Format | Size | Keep clear |
|---|---|---|
| 9:16 | 1080×1920 | 230 px top, 400 px bottom, 80 px sides |
| 4:5 | 1080×1350 | 70 px all sides |
| 16:9 | 1920×1080 | 80 px all sides |
| Find the face position from a few stills before placing anything; never cover the face or mouth. |
Making a new style from a reference
Extract frames (ffmpeg -i ref.mp4 -vf fps=1,scale=480:-1,tile=4x4 sheet_%02d.png), sample real pixel colours with a small Python/Pillow script, then write a new section here with the same headings. Take only the visual language; never copy logos, characters, brand names or exact layouts.
5. Component set (build once per project, reuse everywhere)
Keep components in src/components/, scenes in src/scenes/, one scene per story beat.
| Component | Job |
|---|---|
Background | Style background with slow-drifting blobs |
SpeakerFrame | The framing engine: takes framing keyframes from the timeline and springs scale/position/radius between full, punch, side, card, bubble; supports instant cuts on SOURCE_CUTS; constant slow push |
HeroWord | One big word: blur 16→0 px, y +40→0, opacity, 14–18 frames |
WordLine | Line that reveals word by word on each word's start frame |
KeyPill | Rounded pill with icon + label (lucide icon) |
GlassCard | Card from style tokens; solid fill when it animates (no backdrop-filter on animated elements, it flickers) |
Counter | Number that counts up with easing, Bangla or Latin digits |
Strike | Line drawn across a price or word |
CheckList | Items that tick one by one on cue |
DeviceFrame | Generic phone / laptop frame for screenshots |
Cursor | Moves along a path and clicks with a small ripple |
LightSweep | Soft diagonal sweep used on framing changes; starts and ends off-screen |
Sparkles | 10–20 slow, soft, low-opacity particles |
Sfx | Places sound cues from the timeline |
Shared animation helpers (src/components/anim.ts): useEnter(startFrame, {dur, from}), useSpring(startFrame, config) with {damping: 200} for calm moves, useDrift(amplitude, period).
6. Sound design
| Moment | Sound | Level under voice |
|---|---|---|
| Hero word lands | soft whoosh or pop | −20 to −24 dB |
| Framing change / sweep | airy swoosh | −22 dB |
| Counter running | light ticks | −26 dB |
| Check / success | soft chime | −20 dB |
| Strike / price drop | short scratch or thud | −22 dB |
| CTA | warm riser into a soft hit | −18 dB |
| Bed | low, calm music | −28 to −32 dB, duck further under speech |
Use only royalty-free sounds the user has or that are clearly licensed. Put files in public/sfx/. Never let an effect mask a spoken word.
7. QA checklist (run before every review)
- Stills at every key word: render a still at each
CUEand read every on-screen word in the image (spelling, conjuncts, cut-off text, overflow). - Sync: each hero word appears within 0–3 frames of its spoken start.
- Jump cuts: step frame by frame across every
SOURCE_CUTSentry; nothing should visibly jump. - Flicker scan: render a low-res pass and compare consecutive frames for sudden brightness changes (
ffmpeg -i out.mp4 -vf signalstats,metadata=print:key=lavfi.signalstats.YAVG -f null -); jumps without a scene change point to blinking glass, late-loading images or fonts. - Safe zones and face: nothing important in UI zones; nothing over the mouth.
- Readable time (section 3) for every text element.
- Audio: voice always clearly on top; no clipping.
Common fixes: blinking cards → remove backdrop-filter or animated filter; late images → staticFile + delayRender/preload; font swap on first frame → load fonts before the composition renders; jitter on scaled footage → round transforms or use will-change: transform sparingly.
8. Showing a web page
Capture with Playwright (mobile 390×844 at 3x, desktop 1440×900 at 2x, full page if it will scroll). Put screenshots in DeviceFrame. Rebuild any part that zooms or animates as a real component so text stays sharp. Pages behind login, cookie walls or bot checks: ask the user for a screenshot. Only show pages the user is allowed to show; otherwise build a generic look-alike with no real logos.
9. Rules that always apply
- Never change the user's words.
- All timing lives in
src/data/timeline.ts. - No real third-party logos or app UIs unless the user supplies them.
- Same resolution, fps and length as the source unless the user agrees to an end card.
- Commit before big changes; tell the user how to go back.
- Render only on the user's "render".