Skip to content
pre-alpha

motio render

Render a video.

Terminal window
motio render [entry-point|serve-url] <composition-id> [output]

Flags

Flag Description
--json Print one JSON object on stdout (schema in schemas/).
--log=<value> Log level: trace, verbose, info, warn, error.
--help, -h Show help for the command.
--props=<value> Input props: a JSON object or the path to a JSON file.
--config=<value> Config file (default: motio.config.ts, else remotion.config.ts, in the project root).
--env-file=<value> Dotenv file to read instead of .env.
--public-dir=<value> Public directory (default public/).
--browser-executable=<value> Chrome to use instead of the pinned one.
--timeout=<value> delayRender() timeout per frame, in milliseconds.
--gl=<value> OpenGL backend: angle, egl, swiftshader, swangle, vulkan, angle-egl.
--port=<value> Port of the local bundle server.
--bundle-cache Accepted for compatibility; no effect.
--ignore-certificate-errors Accept invalid TLS certificates.
--disable-web-security Disable CORS and other web security.
--user-agent=<value> User agent of the pages.
--dark-mode Emulate prefers-color-scheme: dark.
--capture-method=<value> Motio: frame capture, auto or screenshot (Page.captureScreenshot), or begin-frame (Linux, deprecated).
--pages-per-browser=<value> Motio: pages sharing one browser process (default: the pages spread over two browsers).
--raster=<value> Motio: cpu (default; the pixels of Remotion’s default setting) or gpu (the pixels of Remotion with –gl=swangle, which selects it; videos take about 2.5 times as long).
--canvas=<value> Motio: how transparent captures draw 2D canvases: software (default; deterministic and faster) or gpu (Remotion’s canvas pixels).
--time-zone=<value> Motio: the time zone of the page’s Date and Intl, an IANA name such as Europe/Rome (default: UTC on every machine).
--locale=<value> Motio: the page’s language (navigator.language, Intl’s default, Accept-Language), a tag such as it-IT (default: en-US on every machine).
--time-model=<value> Motio: frame (only the frame drives the composition) or virtual (Date, timers, requestAnimationFrame and Math.random follow the frame). Default: the composition’s, else frame.
--width=<value> Override the composition width.
--height=<value> Override the composition height.
--fps=<value> Override the composition frame rate.
--duration=<value> Override the composition duration, in frames.
--scale=<value> Scale factor of the output, above 0 and at most 16.
--jpeg-quality=<value> JPEG quality from 0 to 100.
--concurrency=<value> Pages rendering in parallel: a number or a percentage.
--output=<value> Output file (alternative to the positional output).
--codec=<value> Codec: h264, h265, vp8, vp9, av1, prores, mp3, aac, wav, h264-mkv, h264-ts, gif.
--audio-codec=<value> Audio codec: aac, mp3, pcm-16, opus.
--audio-bitrate=<value> Audio bitrate, for example “128k”.
--enforce-audio-track Write a silent audio track when the composition has no audio.
--sample-rate=<value> Audio sample rate in Hz (default 48000).
--separate-audio-to=<value> Write the audio to this file instead of muxing it into the video.
--crf=<value> Constant rate factor (quality).
--image-format=<value> Frame capture format: jpeg, png, none.
--frames=<value> Frames to render: 5, 0-9, 100- or 0,30-59,90-.
--every-nth-frame=<value> Render every Nth frame.
--muted Render without audio.
--pixel-format=<value> Pixel format: yuv420p, yuva420p, yuv422p, yuv444p, yuv420p10le, yuv422p10le, yuv444p10le, yuva444p10le.
--color-space=<value> Colour space: default, bt601, bt709, bt2020-ncl.
--x264-preset=<value> x264 preset, from ultrafast to placebo.
--prores-profile=<value> ProRes profile (codec prores): 4444-xq, 4444, hq, standard, light, proxy.
--number-of-gif-loops=<value> GIF loops: 0 plays once, n repeats n times; unset loops forever.
--overwrite Overwrite the output (default true; –overwrite=false).
--frames-per-chunk=<value> Motio: render in chunks of this many frames in parallel processes, then assemble (D-039).
--chunks=<value> Motio: render in this many chunks in parallel processes, then assemble (D-039).
--concurrency-per-chunk=<value> Motio: pages each chunk renders with (default 1); –concurrency counts chunks.
--sequence Output an image sequence (PNG by default) into the output folder.
--image-sequence-pattern=<value> Image sequence file names: [frame] and [ext] (default “frame-[frame].[ext]”).

JSON output

With --json, motio render prints exactly one JSON object on stdout. On success it has these fields; on failure it is the error object. The schema ships with the CLI as @motiojs/cli/schemas/render.schema.json.

Field Type Description
ok true
command "render"
composition composition
output string Absolute path: the file, or the folder of an image sequence.
codec string or null The codec, or null for an image sequence.
renderedFrames integer
durationMs integer Time spent rendering and encoding, from the first frame to the written file.
totalMs (optional) integer Time the whole command took, bundling and opening the browser included.
serveUrl string
ffmpeg (optional) object The FFmpeg that encoded the video (D-065). Absent for image sequences, which do not run FFmpeg.
ffmpeg.path string
ffmpeg.version string or null As FFmpeg prints it; null when it could not be read.
ffmpeg.source "option", "env", "package", "path" MOTIO_FFMPEG (env), the pinned build of @motiojs/ffmpeg (package) or PATH.
ffmpeg.build (optional) integer Build number of the pinned build, when source is package.
ffmpeg.fallback (optional) object Set when the pinned build of @motiojs/ffmpeg could not be used (archives not published, offline) and the FFmpeg on PATH was used instead.
ffmpeg.fallback.code (optional) string The error code that made the pinned build unusable.
ffmpeg.fallback.reason string unpublished, network, http or unsupported-platform.
ffmpeg.fallback.message string
warnings array of string
renderWarnings (optional) array of object
sequence (optional) true Present when the output is an image sequence folder.
imageFormat (optional) "jpeg", "png" Image format of an image sequence.

Exit codes

See exit codes. Run motio render --help for the same list of flags in the terminal.