Communitygithub.com

Weinssy/wein-story-render

Build and render 60fps vertical (1080x1920) faceless stickman + papercut educational shorts in Remotion, synced to actual VO pauses via FFmpeg silencedetect, with native 2-line subtitles, SFX, ambient music, and -14 LUFS loudness normalization for TikTok, Instagram Reels, and YouTube Shorts.

O que é wein-story-render?

wein-story-render is a Claude Code agent skill that build and render 60fps vertical (1080x1920) faceless stickman + papercut educational shorts in Remotion, synced to actual VO pauses via FFmpeg silencedetect, with native 2-line subtitles, SFX, ambient music, and -14 LUFS loudness normalization for TikTok, Instagram Reels, and YouTube Shorts.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Weinssy/short-video-agent-kit/tree/HEAD/skills/wein-story-render

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Wein Story Render — 60 fps Stickman & Papercut Remotion Renderer

Use this skill when turning a script/storyboard (from wein-story-script or a user brief) plus a recorded VO audio file into a broadcast-ready 1080×1920 @ 60 fps MP4 for TikTok, IG Reels, and YouTube Shorts.

Prerequisites & Companion Skills

  • Load remotion-best-practices (from remotion-dev/skills) for current Remotion API conventions (@remotion/media, @remotion/google-fonts, <Sequence>, interpolate(), spring()).
  • Required tools on PATH: Node.js 20+, ffmpeg + ffprobe.
  • Starter kit references bundled in this skill:
    • references/WeinPaperKit.tsx — PaperBackdrop, PaperBoil (auto 15 Hz at 30/60 fps), CoverTitle, ConceptLabel, WeinSubtitle, WeinHandleBadge, ClosingQuestionCard, Stickman.
    • references/fps60.ts — FPS_60, sec(), secRange(), useTime(), springAtSec(), interpolateSec(), sfxAtSec().
    • references/audio-sync-guide.md — exact FFmpeg silencedetect, VO cleaning, SFX/music generation, and -14 LUFS normalization commands.

Production Workflow

Step 1: Analyze Actual VO Audio First

Never guess timestamps when an audio file is provided. Follow references/audio-sync-guide.md:

  1. Convert the user's VO to 48 kHz mono WAV (public/audio/<slug>-vo.wav).
  2. Run ffmpeg -af silencedetect=noise=-34dB:d=0.18 to extract exact speech phrase boundaries.
  3. Verify the spoken transcript against the script (if TTS accidentally read a table number or artifact, splice it out cleanly with a short acrossfade and note it).
  4. Set total duration = VO duration + ~1.0–1.2 s closing settle, converted via sec(totalSec).

Step 2: Code Every Animation in Seconds (fps60.ts)

  • Register the <Composition> with fps={FPS_60} (60), width={1080}, height={1920}.
  • Inside components, call const {t, fps} = useTime(); from fps60.ts:
    • Use interpolateSec(t, [startSec, endSec], [from, to], Easing.inOut(Easing.quad)).
    • Use springAtSec(t, triggerSec, fps, {damping: 14, stiffness: 180}).
    • Express cyclic motion in radians/sec (Math.sin(t * 6.0)), never raw frame / N, so motion speed is true-to-life at 60 fps.
  • Pass brandHandle="@your.handle" (defaults to @wein.story if uncustomized) to WeinHandleBadge and ClosingQuestionCard (or customize WeinPaperKit.tsx tokens for the creator's brand).
  • Keep all CSS transitions/animations out of Remotion markup; drive everything from useTime() / useCurrentFrame().

Step 3: Layer Separation & Platform Safe Zones

  • Keep background, props, directional arrows/waves (distinct colors per physical concept), stickman, screen labels, and WeinSubtitle in clean separate layers.
  • Ensure CoverTitle sits at top-center (top: ~196), WeinSubtitle sits at top: 1475 with right: 128 margin (leaving room for TikTok/Reels/Shorts right action buttons and bottom 20% UI), and max 2 lines per cue.

Step 4: Visual QA Before Full Render

  1. Run npx tsc --noEmit.
  2. Render 4–5 key frames as PNGs (npx remotion render <CompId> qa/<slug> --frames=60,420,900,1500 --image-format=png --sequence --muted).
  3. Inspect every QA frame with read_file to verify: zero clipped labels, zero subtitle overlap, clear contrast, and readable layout on a phone screen.

Step 5: Render Final & Normalize Audio

  1. Render raw 60 fps master: npx remotion render <CompId> out/<slug>-raw.mp4 --codec=h264 --crf=18 --audio-codec=aac --audio-bitrate=192k
  2. Normalize audio loudness to social standard (-14 LUFS, TP=-1.0, +faststart): ffmpeg -y -i out/<slug>-raw.mp4 -c:v copy -af "loudnorm=I=-14:TP=-1.0:LRA=7" -c:a aac -b:a 192k -ar 48000 -movflags +faststart out/<slug>-final.mp4
  3. Verify stream dimensions (1080x1920, 60/1), duration, and volumedetect (max_volume around -0.8 to -1.0 dB, no clipping).

Habilidades Relacionadas