Skip to content

🎥 Make videos programmatically with React

Updated `--range` doc

Shankhadeep Dey26ed58d707f2
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.md
index 89b1b38083..7403113848 100644
--- a/packages/docs/docs/cli.md
+++ b/packages/docs/docs/cli.md
@@ -24,6 +24,7 @@ Besides choosing a video and output location with the command line arguments, th
- `--codec`: [`h264` or `h265` or `png` or `vp8` or `vp9`](config#setoutputformat). If you don't supply `--codec`, it will use the H.264 encoder. Available since v1.4.
- `--crf`: [To set Constant Rate Factor (CRF) of the output](config#setcrf). Minimum 0. Use this rate control mode if you want to keep the best quality and care less about the file size. Available since v1.4.
- `--browser-executable`: [Path to a Chrome executable](config#setbrowserexecutable). If not specified and Remotion cannot find one, it will download one during rendering. Available since v1.5.
+- `--range`: [To select frame range](config#setframerange).`--range=1-10` (To select frame from 1 to 10) or <br/>`--range=50` (To select only 50th frame).
:::info
If you don't feel like passing command line flags every time, consider creating a `remotion.config.ts` [config file](config).
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index 30f7a33dd5..6be5e607c9 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -68,6 +68,19 @@ Config.Rendering.setImageFormat('png')
The [command line flag](cli) `--image-format` will take precedence over this option.
+### setFrameRange()
+
+To render a still frame or a range of frames. Which can be helpful to generate humbnails and stills.
+
+```tsx
+Config.Rendering.setFrameRange(90); //to select only 90th frame
+```
+or
+
+```tsx
+Config.Rendering.setFrameRange('10-20'); //To select frames from 10 to 20
+```
+
### setQuality()
The JPEG quality of each frame. Must be a number between 0 and 100. Will not work if you render PNG frames. [Default: 80](https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/headless/lib/browser/protocol/headless_handler.cc#L32).