Video Common

Shared Remotion video utilities and patterns. Referenced by other video skills - not invoked directly.

aviz85 042d1d7 3 files · 4.3 KB Updated

File contents

Remotion Common Utilities

Shared patterns and references for all video skills in this project.

Project Structure

remotion-assistant/
├── src/
│   ├── index.tsx          # Entry point
│   ├── Root.tsx           # Composition registry
│   ├── compositions/      # Video compositions
│   └── components/        # Reusable components
├── public/                # Static assets
│   ├── fonts/
│   ├── images/
│   └── audio/
└── out/                   # Rendered output

Key APIs

  • useCurrentFrame() - Current frame number
  • useVideoConfig() - { width, height, fps, durationInFrames }
  • interpolate(frame, [in], [out]) - Map values
  • spring({ frame, fps, config }) - Physics animations

Adding New Compositions

  1. Create component in src/compositions/
  2. Register in src/Root.tsx with <Composition>
  3. Set: id, component, durationInFrames, fps, width, height

See References

  • codecs.md - Encoding options
  • animations.md - Animation patterns

aviz85/ai-music-video-maker/tree/main/.claude/skills/video-common commit 042d1d7d30

Frequently asked questions

npx skillmds@latest add aviz85/video-common