Apache-2.0
Open source. No per-render or per-seat fees, including distributed rendering and embedding the Player.
Motio renders a React tree frame by frame in a real headless Chrome and encodes it with FFmpeg. Open source, Apache-2.0, free for any use.
pnpm create motio my-video
Not on npm yet: try it from a clone
Node 22 or later and FFmpeg 5.1 or later. Chrome is not needed: the first render downloads a pinned headless shell.
frame 59 grow 1.000 rise 1.000
Drag the playhead, or focus it and use the arrow keys (Shift moves ten frames). The picture depends on nothing but the frame number: frame 18 always looks like frame 18, in any order, on any tab.
Create a project from a starter, preview it in the browser, render an MP4. Every command also runs without a terminal, for scripts and agents.
pnpm create motio my-video
Not on npm yet: try it from a clone
Asks for a folder, a starter and a package manager, writes the project and installs it.
pnpm dev
Opens a preview with play, scrub, frame stepping, a loop range and a props editor.
pnpm render
Writes out/intro.mp4. Flags pass through: --frames=0-29 renders
the first second.
pre-alphaNothing is published on npm yet. Until it is,
try it from a clone: make try DIR=../my-video
creates the same project from the repository.
This is the composition in the player above, as the Animation guide shows it. It reads the frame and returns what that frame looks like.
import {
AbsoluteFill,
interpolate,
measureSpring,
spring,
useCurrentFrame,
useVideoConfig,
} from "@motiojs/motio";
export const Badge = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
// From 0 to 1 with a physical spring, starting at frame 10; it overshoots, then settles.
const grow = spring({ frame, fps, delay: 10, config: { damping: 12, stiffness: 120 } });
// A spring stretched to exactly 30 frames, without bounce.
const rise = spring({ frame, fps, durationInFrames: 30, config: { damping: 200 } });
return (
<AbsoluteFill style={{ justifyContent: "center", alignItems: "center" }}>
<div
style={{
width: 240 * grow,
height: 240 * grow,
borderRadius: "50%",
backgroundColor: "#ffb000",
marginTop: interpolate(rise, [0, 1], [200, 0]),
}}
/>
</AbsoluteFill>
);
};
// How many frames the spring takes to settle, for example to size a Sequence.
export const badgeFrames = measureSpring({ fps: 30, config: { damping: 12, stiffness: 120 } });
No timeline state and no clock. Every moving value comes from
useCurrentFrame(), so any frame can be rendered on its own and always gives
the same pixels.
useCurrentFrame()spring()interpolate()measureSpring()Motio sets the frame number, waits until the page is ready, takes a screenshot and hands the screenshots to FFmpeg. Several tabs render different frames at the same time.
<Composition id="Intro"><Series><Series.Sequence><Badge /><Series.Sequence><LowerThird />Compositions, sequences and your components, bundled with Vite.
A pinned chrome-headless-shell draws each frame. If it looks right in Chrome, it renders right.
Encodes the frames and mixes the audio: H.264, H.265, AV1, VP8, VP9, ProRes, GIF.
Four promises, each one checked by the project rather than claimed.
Open source. No per-render or per-seat fees, including distributed rendering and embedding the Player.
No reimplementation of CSS or layout. If it looks right in Chrome, it renders right.
The same project, props and frame give the same pixels in any order and on any number of tabs, checked on decoded frame hashes.
pnpm exec motio check determinism src/index.ts Intro
Every command has --json output and errors with stable codes. Stills,
contact sheets, flicker and determinism checks.
pnpm exec motio doctor --json
Wall time to render the benchmark's motion and timeline compositions at 1920x1080, both summed, median of the runs. Shorter is better.
macOS, Apple M5
Measured with make bench against Remotion 4.0.545 on macOS, Apple M5, 1920x1080. H.264 CRF 18, muted, medians.
One package per job. Install the ones you use; the core stays small.
@motiojs/core
Timeline, hooks, components and the animation functions.
@motiojs/renderer
Captures frames in headless Chrome and encodes them with FFmpeg, from Node.
@motiojs/cli
The motio command: render, still, frames, checks, doctor.
@motiojs/player
Plays a composition inside any React app, with a thumbnail component.
@motiojs/bundler
Builds a project with Vite: entry point, public folder, environment.
@motiojs/transitions
Fades, slides, wipes and flips between scenes.
@motiojs/captions
Reads, pages and shows captions from a transcript.
@motiojs/media
Video and audio that land on the exact frame in a render.
@motiojs/google-fonts
Google Fonts with types, holding the render until they load.
@motiojs/three
React Three Fiber scenes that follow the timeline.
@motiojs/distributed
Renders ranges of frames in parallel and joins them without re-encoding.
@motiojs/ffmpeg
A pinned FFmpeg checked against a SHA-256 (coming soon).
And 25 more:
@motiojs/animation-utils
,
@motiojs/audio
,
@motiojs/compat
,
@motiojs/elevenlabs
,
@motiojs/fonts
,
@motiojs/gif
,
@motiojs/install-whisper-cpp
,
@motiojs/layout-utils
,
@motiojs/light-leaks
,
@motiojs/lottie
,
@motiojs/media-utils
,
@motiojs/motio
,
@motiojs/motion-blur
,
@motiojs/noise
,
@motiojs/openai-whisper
,
@motiojs/paths
,
@motiojs/preload
,
@motiojs/preview
,
@motiojs/rive
,
@motiojs/shapes
,
@motiojs/starburst
,
@motiojs/text
,
@motiojs/video-frames
,
@motiojs/zod-types
,
create-motio
.
Projects written for Remotion's documented API run on Motio through an import alias.
While it builds, the bundler resolves remotion to
@motiojs/motio and every @remotion/<name> to its Motio
package, so imports can stay as they are. The motio command takes the same
arguments and flags.
Compatibility is pinned to the 4.0.545 API and checked against recordings of that
release. motio doctor lists every symbol a project uses: supported,
approximated, stubbed or missing. Details in
Coming from Remotion.
Motio is an independent project, built from public API documentation. It is not affiliated with or endorsed by Remotion.
# Add Motio next to the project's dependencies
pnpm add @motiojs/motio
pnpm add -D @motiojs/cli @motiojs/transitions
# Imports stay as they are: check them, then render
pnpm exec motio doctor
pnpm exec motio render src/index.ts Intro out/intro.mp4
Each one installs, previews and renders with no edits; an integration test generates and renders every starter.
A four-second title animation: spring() and interpolate(), two
scenes in a <Series>, an image, a local font and a still for the
thumbnail.
pnpm create motio my-video
Not on npm yet: try it from a clone
One composition with a fading title, and nothing else.
pnpm create motio my-video --template blank
Not on npm yet: try it from a clone
Word-by-word captions from a JSON transcript with @motiojs/captions. The
transcript sets the length of the video.
pnpm create motio my-video --template captions
Not on npm yet: try it from a clone