Skip to content

🎥 Make videos programmatically with React

Merge PR #12058 option sidebar ordering changes

Jonny Burgerdaa758ee8251
diff --cc packages/docs/docs/options/default-premount-in-seconds.mdx
index 699961e075,0000000000..6f335035c2
mode 100644,000000..100644
--- a/packages/docs/docs/options/default-premount-in-seconds.mdx
+++ b/packages/docs/docs/options/default-premount-in-seconds.mdx
@@@ -1,33 -1,0 +1,32 @@@
+---
+image: /generated/articles-docs-options-default-premount-in-seconds.png
+# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
+# Regenerate: cd packages/docs && bun run generate-option-docs
+title: "Default premount duration in seconds"
- sidebar_position: 24
+crumb: Options
+custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/default-premount-in-seconds.tsx
+---
+
+Set the default premount duration in seconds for timed components in the Studio. Defaults to 0 in v4 and 2 in v5. Must be a finite, non-negative number. The duration is converted to frames using the composition FPS and rounded to the nearest frame. An explicit `premountFor` prop takes precedence. Does not affect rendering. In the Player, use the `defaultPremountInSeconds` prop instead.
+
+## CLI flag
+
+```text
+--default-premount-in-seconds <value>
+```
+
+The following CLI commands accept this option:
+
+- [`remotion studio`](/docs/cli/studio)
+
+## Config file
+
+```ts twoslash title="remotion.config.ts"
+import {Config} from '@remotion/cli/config';
+// ---cut---
+Config.setDefaultPremountInSeconds(2);
+```
+
+## See also
+
+- [All options](/docs/options)
diff --cc packages/renderer/src/options/index.tsx
index 1208c64a27,ccdddcd669..e3d4363747
--- a/packages/renderer/src/options/index.tsx
+++ b/packages/renderer/src/options/index.tsx
@@@ -19,9 -19,9 +19,10 @@@ import {enableCrossSiteIsolationOption
import {darkModeOption} from './dark-mode';
import {defaultCodingAgentOption} from './default-coding-agent';
import {defaultEditorOption} from './default-editor';
+import {defaultPremountInSecondsOption} from './default-premount-in-seconds';
import {deleteAfterOption} from './delete-after';
import {disableGitSourceOption} from './disable-git-source';
+ import {disableSharedMemoryCaptureOption} from './disable-shared-memory-capture';
import {disableWebSecurityOption} from './disable-web-security';
import {disallowParallelEncodingOption} from './disallow-parallel-encoding';
import {enableCancellationOption} from './enable-cancellation';