Skip to content
pre-alpha

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.

  1. Install Motio next to the project’s dependencies:

    Terminal window
    pnpm add @motiojs/motio
    pnpm add -D @motiojs/cli

    and, for each @remotion/<name> package the project uses, @motiojs/<name> (@remotion/transitions becomes @motiojs/transitions).

  2. Run the motio command instead of remotion: motio render, motio still, motio compositions and motio 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.

Terminal window
pnpm exec motio doctor

Besides 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.

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 through motio render --chunks and @motiojs/distributed.
  • Where Motio can do better it designs its own API and maps Remotion’s onto it: @remotion/rounded-text-box is a preset of @motiojs/text’s <TextBackground> shape.
  • Bundler: Motio builds with Vite, not Webpack. Config.overrideWebpackConfig() is read only to detect Tailwind; use vite in motio.config.ts, or the viteOverride option of bundle(), for other changes.
  • Studio: motio dev is 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 its gl setting, and Motio reproduces both: with Remotion’s default, Motio’s defaults give the same pixels; a project that sets gl: "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-US on 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-zone and --locale (browser.timeZone and browser.locale in motio.config.ts, timeZone and locale in 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 on PATH, or the one MOTIO_FFMPEG or ffmpeg.executable in motio.config.ts names; 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.