🎥 Make videos programmatically with React
add some documentation
Akshit Tyagi750c879e916c
diff --git a/packages/core/src/config.ts b/packages/core/src/config.tsindex 7b5cc22771..65467b3aee 100644--- a/packages/core/src/config.ts+++ b/packages/core/src/config.ts@@ -227,20 +227,23 @@ export type ConfigType = {* Set to true if don't want a video but an image sequence as the output.*/readonly setImageSequence: (newImageSequence: boolean) => void;+ /**+ * Override the output video's height.+ * Ovverrides natural height of the video.+ * See h264 restriction+ */+ readonly setHeight: (newHeight: number) => void;+ /**+ * Set new width.+ * Overrides natural width of the video.+ */+ readonly setWidth: (newWidth: number) => void;/*** Set the ProRes profile.* This method is only valid if the codec has been set to 'prores'.* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.*/- readonly setHeight: (newHeigh: number) => void;- /**- * Set new height.- */- readonly setWidth: (newWidth: number) => void;- /**- * Set new width.- */readonly setProResProfile: (profile:| '4444-xq'diff --git a/packages/docs/docs/cli/render.md b/packages/docs/docs/cli/render.mdindex fa4daef05a..3812b424bb 100644--- a/packages/docs/docs/cli/render.md+++ b/packages/docs/docs/cli/render.md@@ -26,6 +26,14 @@ Besides choosing a video and output location with the command line arguments, thInline JSON string isn't supported on Windows because it removes the `"` character, use a temporary file instead.:::+### `--height`++[Set custom height for the render.](/docs/config#setheight)++### `--width`++[Set custom width for the render.](/docs/config#setwidth)+### `--concurrency`[How many CPU threads to use.](/docs/config#setconcurrency) Minimum 1. The maximum is the amount of threads you have (In Node.JS `os.cpus().length`).diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 8862772908..38d4d2c12f 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -488,6 +488,36 @@ Config.Output.setImageSequence(true);The [command line flag](/docs/cli/render#--sequence) `--sequence` will take precedence over this option.+### setHeight()++_Available from Version_++Sets/Overrides the height of the rendered video.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Output.setHeight(600);+```++The [command line flag](/docs/cli/render#--height) `--height` will take precedence over this option.+(see h264 validation?)++### setWidth()++_Available from Version_++Sets/Overrides the width of the rendered video.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Output.setWidth(900);+```+++The [command line flag](/docs/cli/render#--width) `--width` will take precedence over this option+### ~~setOutputFormat()~~_Deprecated_. Use `setCodec()` and `setImageSequence()` instead.