npx remotion still
Available from v2.3.
Render a still frame based on the entry point, the composition ID and save it to the output location.
bash
npx remotion still <serve-url|entry-point>? [<composition-id>] [<output-location>]
bash
npx remotion still <serve-url|entry-point>? [<composition-id>] [<output-location>]
You may pass a Serve URL or an entry point as the first argument, otherwise the entry point will be determined.
If output-location
is not passed, the still will be rendered into the out
folder.
If composition-id
is also not passed, Remotion will let you select a composition.
Flags
--props
Input Props to pass to the selected composition of your video..
Must be a serialized JSON string (--props='{"hello": "world"}'
) or a path to a JSON file (./path/to/props.json
).
From the root component the props can be read using getInputProps()
.
You may transform input props using calculateMetadata()
.
Inline JSON string isn't supported on Windows shells because it removes the "
character, use a file name instead.
--image-format
jpeg
, png
, webp
or pdf
. The default is png
.
--config
Specify a location for the Remotion config file.
--env-file
Specify a location for a dotenv file - Default .env
. Read about how environment variables work in Remotion.
--jpeg-quality
v4.0.0
Value between 0 and 100 for JPEG rendering quality. Doesn't work when PNG frames are rendered.
--quality
v1.4.0
--quality
Renamed to --jpeg-quality
in v4.0.0
--output
v4.0.0
Sets the output file path, as an alternative to the output-location
positional argument.
--overwrite
Write to output even if file already exists.. This flag is enabled by default, use --overwrite=false
to disable it.
--browser-executable
Path to a Chrome executable. If not specified and Remotion cannot find one, it will download one during rendering.
--scale
Scales the output frames by the factor you pass in. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of 1.5
. Vector elements like fonts and HTML markups will be rendered with extra details. scale
must be greater than 0 and less than equal to 16. Default: 1
.
--frame
Which frame should be rendered. Example --frame=10
. Default 0
.
From v3.2.27, negative values are allowed, with -1
being the last frame.
--log
Set the log level. Increase or decrease the amount of output. Acceptable values: error
, warn
, info
(default), verbose