Communitygithub.com

bangla-motion-edit

Edit Bangla talking-head videos or build animated ads, reels and explainers in Remotion with a consistent house style, word-synced text, motion graphics, B-roll and sound design. Use for edit my video, make it premium, motion graphics, reel, ad, explainer.

What is bangla-motion-edit?

bangla-motion-edit is a Cursor agent skill that edit Bangla talking-head videos or build animated ads, reels and explainers in Remotion with a consistent house style, word-synced text, motion graphics, B-roll and sound design. Use for edit my video, make it premium, motion graphics, reel, ad, explainer.

Works with~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/minhazulasif/bangla-motion-edit/tree/HEAD/bangla-motion-edit

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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)

InputRequiredNotes
Source video or voiceoveryesFull file, not pieces
Exact wordingyesTranscript (word-level JSON/SRT) or final script. Never reword it
Formatyes9:16, 4:5 or 16:9. Match the source size and fps for speaker edits
Stylenostudio-light (default) or night-mode (section 4)
BrandnoName, logo file, colours if different from the style
CTAnoButton text, link, price, deadline
B-roll / screenshotsnoList the files or say none
Do-not-touch rangesnoTime 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

  1. npx create-video@latest (blank template) or use the user's existing project. Pin every remotion and @remotion/* package to the same exact version.
  2. Install @remotion/google-fonts, @remotion/media-utils, @remotion/transitions, lucide-react.
  3. Put the source in public/source.mp4 (speaker) or public/voiceover.mp3 (animation).
  4. 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.mp4 Use the proxy in Studio and the original for render (switch with an env flag or getRemotionEnvironment()).
  5. git init and commit. Make a branch for every big experiment.

Step 2: Timing (before any design)

  1. 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.
  2. 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.
  3. Fallback without a transcript: ffmpeg -i src -af silencedetect=noise=-35dB:d=0.25 -f null - and map pauses to script sentences.
  4. Write all timing into src/data/timeline.ts, one named constant per cue, in frames, from word start times:
    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
    
    A sync fix must always be a one-line edit.

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

  1. Chapter table: chapter | time range | story beat (hook, problem, turn, proof, offer, CTA).
  2. Scene plan: time | spoken line | speaker framing | what animates | exact on-screen text | asset or NEEDS.
  3. 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

  1. 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.
  2. 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 to full for the turning point and for the CTA. Aim for the speaker visible at least ~40% of the time.
  3. 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.
  4. 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.
  5. One focal point per moment. Max 3 text elements on screen at once.
  6. 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 #5EEAD4 at 30% top-right, coral #FDA48A at 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: #FFFFFF at 92% opacity, radius 28 px, 1 px border rgba(20,33,61,0.08), shadow 0 20px 50px rgba(20,33,61,0.12).

night-mode

  • Background: deep navy #0B1220 with a soft radial glow #1E3A5F at centre-top and a faint mint glow #34D399 at 12% bottom.
  • Ink #F1F5F9, muted #94A3B8.
  • Primary accent mint #34D399, secondary sky #38BDF8.
  • Highlight gradient: #34D399 → #38BDF8.
  • Cards: #111A2E at 90%, radius 28 px, 1 px border rgba(255,255,255,0.08), shadow 0 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-fonts including 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

FormatSizeKeep clear
9:161080×1920230 px top, 400 px bottom, 80 px sides
4:51080×135070 px all sides
16:91920×108080 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.

ComponentJob
BackgroundStyle background with slow-drifting blobs
SpeakerFrameThe 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
HeroWordOne big word: blur 16→0 px, y +40→0, opacity, 14–18 frames
WordLineLine that reveals word by word on each word's start frame
KeyPillRounded pill with icon + label (lucide icon)
GlassCardCard from style tokens; solid fill when it animates (no backdrop-filter on animated elements, it flickers)
CounterNumber that counts up with easing, Bangla or Latin digits
StrikeLine drawn across a price or word
CheckListItems that tick one by one on cue
DeviceFrameGeneric phone / laptop frame for screenshots
CursorMoves along a path and clicks with a small ripple
LightSweepSoft diagonal sweep used on framing changes; starts and ends off-screen
Sparkles10–20 slow, soft, low-opacity particles
SfxPlaces 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

MomentSoundLevel under voice
Hero word landssoft whoosh or pop−20 to −24 dB
Framing change / sweepairy swoosh−22 dB
Counter runninglight ticks−26 dB
Check / successsoft chime−20 dB
Strike / price dropshort scratch or thud−22 dB
CTAwarm riser into a soft hit−18 dB
Bedlow, 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)

  1. Stills at every key word: render a still at each CUE and read every on-screen word in the image (spelling, conjuncts, cut-off text, overflow).
  2. Sync: each hero word appears within 0–3 frames of its spoken start.
  3. Jump cuts: step frame by frame across every SOURCE_CUTS entry; nothing should visibly jump.
  4. 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.
  5. Safe zones and face: nothing important in UI zones; nothing over the mouth.
  6. Readable time (section 3) for every text element.
  7. 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".

Related Skills