π₯ Make videos programmatically with React
proofread documentation
Jonny Burgerc9c57a1cffac
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.mdindex 68ef64b2f1..a66850aeff 100644--- a/packages/docs/docs/cli.md+++ b/packages/docs/docs/cli.md@@ -23,11 +23,16 @@ 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.- `--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.-:::infoIf you don't feel like passing command line flags every time, consider creating a `remotion.config.ts` [config file](config).:::+## Example command++```+npx remotion render --overwrite --codec=vp8 src/index.tsx HelloWorld video.mp4+```+## See also- [Render your video](render)diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 8fc7449ad3..610729cea7 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -100,7 +100,7 @@ The [command line flags](cli) `--sequence` and `--codec` will take precedence ov### setQuality()-The JPEG quality of each frame. Must be a number between 0 and 100. [Default: 80](https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/headless/lib/browser/protocol/headless_handler.cc#L32).+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).```tsxConfig.Output.setQuality(90);@@ -110,7 +110,7 @@ The [command line flag](cli) `--quality` will take precedence over this option.### setCrf()-To set Constant Rate Factor (CRF) of the output. [Use this setting to choose how to make the tradeoff between size and quality.](encoding#controlling-quality-using-the-crf-setting)+The "Constant Rate Factor" (CRF) of the output. [Use this setting to tell FFMPEG how to trade off size and quality.](encoding#controlling-quality-using-the-crf-setting)Ranges for CRF scale, by codec:@@ -119,7 +119,7 @@ Ranges for CRF scale, by codec:- `vp8` crf range is 4-63 where crf 9 is _default_.- `vp9` crf range is 0-63 where crf 28 is _default_.-Where the lowest value is lossless, and the highest is the worst quality possible. A lower value generally leads to higher quality.+The lowest value is lossless, and the highest value is the worst quality possible. Higher values decrease the filesize at the cost of quality.The range is exponential, so increasing the CRF value +6 results in roughly half the bitrate / file size, while -6 leads to roughly twice the bitrate.diff --git a/packages/docs/docs/encoding.md b/packages/docs/docs/encoding.mdindex 7a5d58db16..843839fa0a 100644--- a/packages/docs/docs/encoding.md+++ b/packages/docs/docs/encoding.md@@ -51,11 +51,11 @@ Remotion supports 4 codecs: `h264` (_default_), `h265`, `vp8` and `vp9`. The firClick on a browser compatibility link to see exactly which browsers are supported on caniuse.com.:::-You can set a config using [`Config.Output.setCodec()` in the config file](config#setcodec) or the [`--codec`](cli) CLi flag.+You can set a config using [`Config.Output.setCodec()` in the config file](config#setcodec) or the [`--codec`](cli) CLI flag.## Controlling quality using the CRF setting-No matter which codec to use, you have to choose a tradeoff between file size and video quality. You can control it by setting the so called CRF (Constant Rate Factor). The **lower the number, the better the quality** is, the higher the number, the smaller the file is - of course at the cost of quality.+No matter which codec you end up using, there's always a tradeoff between file size and video quality. You can control it by setting the so called CRF (Constant Rate Factor). The **lower the number, the better the quality**, the higher the number, the smaller the file is β of course at the cost of quality.Be cautious: Every codec has it's own range of acceptable values and a different default. So while `23` will look very good on a H264 video, it will look terrible on a WebM video. Use this chart to determine which CRF value to use:@@ -133,3 +133,8 @@ You can [set a CRF in the config file using the `Config.Output.setCrf()`](config## What other settings do you need?Which of the dozens of options that FFMPEG supports would you like to see exposed in Remotion? Let us know by opening an [issue on our issue tracker!](https://github.com/JonnyBurger/remotion/issues)++## See also++- [CLI Options](/docs/cli)+- [Configuration file](/docs/config)