Remotion to HyperFrames

Port existing video code into HyperFrames - Remotion, Motion Canvas, Lottie, Three.js, canvas

This is a skill for AI agents. Install for Cursor, Claude, Codex, and other agents with npx oli-skills install remotion-to-hyperframes.

  • Cursor reads .cursor/skills/ and the rule created by npx oli-skills init.
  • Claude Code reads .claude/skills/.
  • Codex reads .codex/skills/ and .agents/skills/.

Source: heygen

/remotion-to-hyperframes@remotion-to-hyperframes

Port existing video code into HyperFrames - Remotion, Motion Canvas, Lottie, Three.js, canvas

Bring video projects from other tools into HyperFrames, verified frame-by-frame against the original.

Import Levels

LevelForEditable Afterwards
NativeRemotion, HTML/CSS/GSAP, simple Motion CanvasEverything - variables, catalog, presets
HostedCanvas, p5.js, Three.js, Lottie, WebGLTiming, position, exposed parameters
MediaManim, After Effects, Blender, PIL, moviepyCut, place, layer (not pixels)

Code with wall-clock time, live physics, or network = media only.

Native Translation (Remotion)

1. Lint Source First

python3 <SKILL_DIR>/scripts/lint_source.py <src>

Blockers (don't translate):

  • useState, useReducer
  • useEffect with dependencies
  • Async calculateMetadata
  • UI kits (MUI, Chakra, shadcn, Radix)

Warnings (drop and note):

  • @remotion/lambda config
  • delayRender
  • useMemo, custom hooks

2. Translate to HyperFrames

  • One sub-composition per scene
  • Times in seconds (frame / fps)
  • Asset paths root-relative
  • Add * { box-sizing: border-box; } to root (Remotion's render rule)

3. Keep It Editable

  • Props → data-composition-variables
  • Sequence → timed clip or sub-composition
  • Reused component → one sub-composition mounted multiple times

4. Verify Frame-by-Frame

# Spot check without rendering
npx hyperframes diff original.mp4 . --at t,t,t

# Full render comparison
npx hyperframes render -o hf.mp4
npx hyperframes diff original.mp4 hf.mp4

Render Remotion with:

Config.setVideoImageFormat("png")
Config.setColorSpace("bt709")

Otherwise you're measuring encoder differences (~0.05 SSIM).

5. Document What Changed

Write TRANSLATION_NOTES.md:

  • Dropped volume ramps
  • Approximated presentations
  • Substituted fonts

Remotion API Mapping

RemotionRead
Composition, defaultProps, calculateMetadatareferences/parameters.md
Sequence, Series, Loop, Freezereferences/sequencing.md
useCurrentFrame, interpolate, springreferences/timing.md
Audio, Video, Img, staticFilereferences/media.md
TransitionSeries, @remotion/transitionsreferences/transitions.md
@remotion/lottiereferences/lottie.md
@remotion/google-fontsreferences/fonts.md

Hosted Integration

Keep the code, let HyperFrames own the clock:

  • No requestAnimationFrame loop
  • Seeded randomness only
  • data-duration on root when nothing else defines length

Built-in adapters: Lottie, Three.js, anime.js, WAAPI, CSS animations. See: references/runtimes.md

Media Import

Just use <video> or <video muted>:

<video
  data-start="0"
  data-duration="10"
  src="assets/blender-render.mp4"
  muted
></video>

Final Report

List each imported part with:

  • Level used
  • What's editable in Studio
  • Frame-by-frame comparison results
Skills Mixer