Coming from Remotion
Motio’s API is compatible with the documented API of Remotion 4.0.545: the same components, hooks, functions and CLI commands, with the same behaviour, checked against values and frames recorded from the published Remotion package. A Remotion project can usually run on Motio without code changes. Motio is an independent project, built from Remotion’s public API documentation and not affiliated with or endorsed by Remotion. Remotion is a trademark of its owner.
Running a Remotion project
Section titled “Running a Remotion project”-
Install Motio next to the project’s dependencies:
Terminal window pnpm add @motiojs/motiopnpm add -D @motiojs/cliand, for each
@remotion/<name>package the project uses,@motiojs/<name>(@remotion/transitionsbecomes@motiojs/transitions). -
Run the
motiocommand instead ofremotion:motio render,motio still,motio compositionsandmotio dev(in place of the Studio) take the same positional arguments and flags.
The bundler resolves remotion to @motiojs/motio and every @remotion/<name> to its Motio package while it builds, so imports can stay as they are. remotion.config.ts is read by every command, with the Config setters of @remotion/cli/config, and the commands say which setters have no effect. Motio’s own file is motio.config.ts, typed and validated, with keys named after the Node API’s options (see Configuration); when a project has both, motio.config.ts wins and every command names the ignored remotion.config.ts. .env files and REMOTION_-prefixed variables reach process.env as in Remotion.
To drop the Remotion packages altogether, replace the imports (from "remotion" becomes from "@motiojs/motio", from "@remotion/transitions" becomes from "@motiojs/transitions"); TypeScript then checks the project against Motio’s own types.
Checking a project with doctor
Section titled “Checking a project with doctor”pnpm exec motio doctorBesides FFmpeg and the browser, doctor scans the project’s imports and lists every Remotion symbol it uses with its status: supported, approximated (works, with a documented difference), stubbed (accepted, does nothing or fails with a message at build time) or missing. A package Motio does not provide fails the build with the package name and what to use instead, rather than at render time.
How compatibility is kept
Section titled “How compatibility is kept”Compatibility is a stable layer, not a moving target (D-066 in the project’s decision log):
- It is pinned at the Remotion 4.0.545 API and checked by tests against recordings of that release. The pin moves on a schedule, every few months or at a significant Remotion release, not with every release; when it moves, changed behaviour of an API Motio already supports is aligned.
- A Remotion symbol or package that is missing is added when a real project needs it, not to match Remotion’s list.
- Not planned:
@remotion/effects,@remotion/skia, the web renderer,@remotion/media-parser,@remotion/webcodecs,@remotion/whisper-web, and the Lambda and Cloud Run packages (they wait for a use case). Distributed rendering on your own machines is available throughmotio render --chunksand@motiojs/distributed. - Where Motio can do better it designs its own API and maps Remotion’s onto it:
@remotion/rounded-text-boxis a preset of@motiojs/text’s<TextBackground>shape.
Differences worth knowing
Section titled “Differences worth knowing”- Bundler: Motio builds with Vite, not Webpack.
Config.overrideWebpackConfig()is read only to detect Tailwind; useviteinmotio.config.ts, or theviteOverrideoption ofbundle(), for other changes. - Studio:
motio devis a preview page with a player, a props editor and a render check, not Remotion’s Studio editor. - Pixels and
gl: Remotion’s pixels depend on itsglsetting, and Motio reproduces both: with Remotion’s default, Motio’s defaults give the same pixels; a project that setsgl: "swangle"(Remotion’s default on Lambda and Cloud Run) gets the GPU raster that matches it, at about 2.5 times the render time for videos. Transparent output draws 2D canvases in software by default, deterministic but not identical to Remotion’s;canvas: "gpu"matches them. See Raster and canvas. - Time zone and language: renders use UTC and
en-USon every machine, so the same project gives the same pixels on a laptop, on CI and in distributed chunks. A project written for Remotion that shows local times or formats numbers for the reader can therefore render differently from the output it was checked against on a machine in another zone or language: name the zone and language the video should show with--time-zoneand--locale(browser.timeZoneandbrowser.localeinmotio.config.ts,timeZoneandlocalein the Node API). See Time zone and language. - Rendering: frames are captured from a pinned
chrome-headless-shell, downloaded on first use; FFmpeg is the one onPATH, or the oneMOTIO_FFMPEGorffmpeg.executableinmotio.config.tsnames; a pinned build,@motiojs/ffmpeg, is coming (see FFmpeg). - Licence: Motio is Apache-2.0, free for any use, including companies, distributed rendering and embedding the player in a product.