🎥 Make videos programmatically with React
document
Jonny Burgerb71d8fcdf3ff
diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.tsindex b35afed713..65bfe6aefa 100644--- a/packages/core/src/config/index.ts+++ b/packages/core/src/config/index.ts@@ -167,7 +167,7 @@ export const Config = {},Output: {/**- * Set the output file location string. Default: `out/video.mp4`+ * Set the output file location string. Default: `out/{composition}.{codec}`*/setOutputLocation,/**diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 59d00103d8..31aea7d806 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -332,6 +332,20 @@ The [command line flag](/docs/cli/render#--number-of-gif-loops) `--number-of-gif## Output+### setOutputLocation()++_Available from v3.1.6_++Set the output location of the video or still, relative to the current working directory. The default is `out/{composition}.{container}`. For example, `out/HelloWorld.mp4`.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Output.setOutputLocation("out/video.mp4");+```++If you pass another argument to the render command, it will take precedence: `npx remotion render src/index.tsx HelloWorld out/video.mp4`.+### setOverwriteOutput()Set this to `false` to prevent overwriting Remotion outputs when they already exists.