🎥 Make videos programmatically with React
Update encoding.mdx
Jonny Burgerfe28a4fcfeed
diff --git a/packages/docs/docs/encoding.mdx b/packages/docs/docs/encoding.mdxindex eb81d1fd88..e16b556e4c 100644--- a/packages/docs/docs/encoding.mdx+++ b/packages/docs/docs/encoding.mdx@@ -104,17 +104,6 @@ No matter which codec you end up using, there's always a tradeoff between file sBe 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:-<details style={{fontSize: '0.9em'}}>- <summary>Changelog</summary>- <ul>- <li>- Since version 2.1.3, Remotion doesn't allow the CRF to be set to{' '}- <code>0</code> anymore because of the issues it causes on macOS/iOS and- possible other scenarios. Set the CRF to 1 or higher.- </li>- </ul>-</details>-<div style={{height: 10}} /><table><tr><th>Codec</th>@@ -150,6 +139,20 @@ Be cautious: Every codec has it's own range of acceptable values and a differentYou can [set a CRF in the config file using the `Config.setCrf()`](/docs/config#setcrf) function or use the [`--crf`](/docs/cli/render#--jpeg-quality) command line flag.+:::note+If you enable [hardware acceleration](/docs/hardware-acceleration), you cannot set a `crf`.+:::++## Controlling quality using `--video-bitrate` and `--audio-bitrate`++Use the following options to set the video and audio bitrate:++- In the Studio: Set video and audio bitrate in the Render Dialog+- In the CLI: Use the [`--video-bitrate`](/docs/cli/render#--video-bitrate) and [`--audio-bitrate`](/docs/cli/render#--audio-bitrate) flags+- In SSR, Lambda and Cloud Run APIs: Use the [`videoBitrate`](/docs/renderer/render-media#videobitrate) and [`audioBitrate`](http://localhost:3000/docs/renderer/render-media#audiobitrate) options.++This option is incompatible with other quality options.+## Controlling quality using ProRes profile_Applies only to `prores` codec_.