@remotion/renderer 4.0.532 → 4.0.534

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/aac-priming.js +6 -2
  2. package/dist/browser/BrowserFetcher.d.ts +7 -1
  3. package/dist/browser/BrowserFetcher.js +33 -13
  4. package/dist/browser/Connection.js +5 -17
  5. package/dist/browser/DOMWorld.js +19 -13
  6. package/dist/browser/devtools-commands.d.ts +13 -1
  7. package/dist/browser/devtools-types.d.ts +62 -0
  8. package/dist/browser/get-chrome-download-url.d.ts +1 -1
  9. package/dist/browser/get-chrome-download-url.js +19 -33
  10. package/dist/can-use-parallel-encoding.d.ts +0 -1
  11. package/dist/can-use-parallel-encoding.js +10 -10
  12. package/dist/client.d.ts +93 -4
  13. package/dist/client.js +2 -0
  14. package/dist/compress-assets.d.ts +1 -1
  15. package/dist/compress-assets.js +1 -1
  16. package/dist/cycle-browser-tabs.js +9 -1
  17. package/dist/ensure-browser.js +30 -6
  18. package/dist/esm/client.mjs +943 -796
  19. package/dist/esm/index.mjs +4113 -2997
  20. package/dist/esm/pure.mjs +33 -9
  21. package/dist/file-extensions.js +4 -1
  22. package/dist/get-mp4-brand.d.ts +1 -0
  23. package/dist/get-mp4-brand.js +21 -0
  24. package/dist/image-format.d.ts +1 -0
  25. package/dist/image-format.js +8 -4
  26. package/dist/index.d.ts +14 -1
  27. package/dist/index.js +4 -0
  28. package/dist/memory/from-macos-sysctl.d.ts +1 -0
  29. package/dist/memory/from-macos-sysctl.js +50 -0
  30. package/dist/memory/from-proc-meminfo.d.ts +1 -1
  31. package/dist/memory/from-proc-meminfo.js +7 -4
  32. package/dist/memory/get-available-memory.js +29 -21
  33. package/dist/mux-video-and-audio.js +8 -2
  34. package/dist/next-frame-to-render.d.ts +3 -7
  35. package/dist/next-frame-to-render.js +3 -22
  36. package/dist/open-browser.js +1 -0
  37. package/dist/options/allow-html-in-canvas.js +1 -1
  38. package/dist/options/api-key.js +1 -1
  39. package/dist/options/ask-ai.js +1 -1
  40. package/dist/options/audio-bitrate.js +1 -1
  41. package/dist/options/audio-codec.js +12 -6
  42. package/dist/options/beep-on-finish.js +1 -1
  43. package/dist/options/benchmark-concurrencies.js +1 -1
  44. package/dist/options/binaries-directory.js +1 -1
  45. package/dist/options/browser-executable.js +1 -1
  46. package/dist/options/browser.js +1 -1
  47. package/dist/options/bundle-cache.js +1 -1
  48. package/dist/options/canvas-tabs.js +1 -1
  49. package/dist/options/chrome-mode.js +1 -1
  50. package/dist/options/color-space.js +1 -1
  51. package/dist/options/concurrency.js +1 -1
  52. package/dist/options/config.js +1 -1
  53. package/dist/options/crf.js +1 -1
  54. package/dist/options/cross-site-isolation.js +1 -1
  55. package/dist/options/dark-mode.js +1 -1
  56. package/dist/options/default-coding-agent.js +1 -1
  57. package/dist/options/default-editor.js +1 -1
  58. package/dist/options/delete-after.js +1 -1
  59. package/dist/options/disable-git-source.js +1 -1
  60. package/dist/options/disable-shared-memory-capture.d.ts +16 -0
  61. package/dist/options/disable-shared-memory-capture.js +29 -0
  62. package/dist/options/disable-web-security.js +1 -1
  63. package/dist/options/disallow-parallel-encoding.js +1 -1
  64. package/dist/options/enable-cancellation.js +1 -1
  65. package/dist/options/enable-lambda-insights.js +1 -1
  66. package/dist/options/enable-multiprocess-on-linux.js +1 -1
  67. package/dist/options/encoding-buffer-size.js +1 -1
  68. package/dist/options/encoding-max-rate.js +1 -1
  69. package/dist/options/enforce-audio.js +1 -1
  70. package/dist/options/env-file.js +1 -1
  71. package/dist/options/every-nth-frame.js +1 -1
  72. package/dist/options/experimental-keep-audio-context-alive.js +1 -1
  73. package/dist/options/experimental-tracks.d.ts +18 -0
  74. package/dist/options/experimental-tracks.js +42 -0
  75. package/dist/options/folder-expiry.js +1 -1
  76. package/dist/options/for-seamless-aac-concatenation.js +1 -1
  77. package/dist/options/force-new-studio.js +1 -1
  78. package/dist/options/frames.js +1 -1
  79. package/dist/options/gl.js +1 -1
  80. package/dist/options/gop-size.js +1 -1
  81. package/dist/options/hardware-acceleration.js +1 -1
  82. package/dist/options/headless.js +1 -1
  83. package/dist/options/ignore-certificate-errors.js +1 -1
  84. package/dist/options/image-sequence-pattern.d.ts +4 -1
  85. package/dist/options/image-sequence-pattern.js +9 -3
  86. package/dist/options/image-sequence.js +1 -1
  87. package/dist/options/index.d.ts +39 -2
  88. package/dist/options/index.js +4 -0
  89. package/dist/options/interactivity.js +1 -1
  90. package/dist/options/ipv4.js +1 -1
  91. package/dist/options/is-production.js +1 -1
  92. package/dist/options/jpeg-quality.js +5 -2
  93. package/dist/options/keyboard-shortcuts.js +1 -1
  94. package/dist/options/latency-hint.js +1 -1
  95. package/dist/options/license-key.js +1 -1
  96. package/dist/options/log-level.js +1 -1
  97. package/dist/options/metadata.js +1 -1
  98. package/dist/options/mute.js +1 -1
  99. package/dist/options/no-open.js +1 -1
  100. package/dist/options/number-of-gif-loops.js +1 -1
  101. package/dist/options/number-of-shared-audio-tags.js +1 -1
  102. package/dist/options/offthreadvideo-cache-size.js +1 -1
  103. package/dist/options/offthreadvideo-threads.js +1 -1
  104. package/dist/options/on-browser-download.js +1 -1
  105. package/dist/options/options-map.d.ts +52 -1
  106. package/dist/options/options-map.js +4 -0
  107. package/dist/options/out-dir.js +1 -1
  108. package/dist/options/override-duration.js +1 -1
  109. package/dist/options/override-fps.js +1 -1
  110. package/dist/options/override-height.js +1 -1
  111. package/dist/options/override-width.js +1 -1
  112. package/dist/options/overwrite.js +1 -1
  113. package/dist/options/package-manager.js +1 -1
  114. package/dist/options/pixel-format.js +1 -1
  115. package/dist/options/port.js +1 -1
  116. package/dist/options/prefer-lossless.js +1 -1
  117. package/dist/options/preview-sample-rate.js +1 -1
  118. package/dist/options/props.js +1 -1
  119. package/dist/options/prores-profile.js +1 -1
  120. package/dist/options/public-dir.js +1 -1
  121. package/dist/options/public-license-key.js +1 -1
  122. package/dist/options/public-path.js +1 -1
  123. package/dist/options/repro.js +1 -1
  124. package/dist/options/rspack.d.ts +1 -1
  125. package/dist/options/rspack.js +1 -1
  126. package/dist/options/runs.js +1 -1
  127. package/dist/options/sample-rate.js +1 -1
  128. package/dist/options/scale.js +1 -1
  129. package/dist/options/separate-audio.js +1 -1
  130. package/dist/options/skip-skills.js +1 -1
  131. package/dist/options/still-frame.js +1 -1
  132. package/dist/options/still-image-format.js +1 -1
  133. package/dist/options/throw-if-site-exists.js +1 -1
  134. package/dist/options/timeout.js +1 -1
  135. package/dist/options/user-agent.js +1 -1
  136. package/dist/options/version-flag.js +1 -1
  137. package/dist/options/video-bitrate.js +1 -1
  138. package/dist/options/video-cache-size.js +1 -1
  139. package/dist/options/video-codec.js +4 -3
  140. package/dist/options/video-image-format.js +6 -2
  141. package/dist/options/webhook-custom-data.js +1 -1
  142. package/dist/options/webpack-poll.js +1 -1
  143. package/dist/options/x264-preset.js +1 -1
  144. package/dist/prespawn-ffmpeg.d.ts +20 -0
  145. package/dist/prespawn-ffmpeg.js +152 -29
  146. package/dist/probe-shared-memory-capture.d.ts +8 -0
  147. package/dist/probe-shared-memory-capture.js +111 -0
  148. package/dist/puppeteer-screenshot.d.ts +3 -1
  149. package/dist/puppeteer-screenshot.js +1 -0
  150. package/dist/pure.d.ts +1 -1
  151. package/dist/remotion-shared-memory-ffmpeg.d.ts +26 -0
  152. package/dist/remotion-shared-memory-ffmpeg.js +312 -0
  153. package/dist/remotion-shared-memory.d.ts +49 -0
  154. package/dist/remotion-shared-memory.js +359 -0
  155. package/dist/render-frame-and-retry-target-close.d.ts +7 -3
  156. package/dist/render-frame-and-retry-target-close.js +23 -4
  157. package/dist/render-frame-with-option-to-reject.d.ts +6 -2
  158. package/dist/render-frame-with-option-to-reject.js +207 -115
  159. package/dist/render-frame.d.ts +6 -6
  160. package/dist/render-frame.js +4 -1
  161. package/dist/render-frames.d.ts +7 -0
  162. package/dist/render-frames.js +20 -18
  163. package/dist/render-media.d.ts +1 -1
  164. package/dist/render-media.js +131 -46
  165. package/dist/render-still.js +1 -0
  166. package/dist/screenshot-background.d.ts +2 -0
  167. package/dist/screenshot-background.js +20 -0
  168. package/dist/screenshot-task.d.ts +4 -2
  169. package/dist/screenshot-task.js +40 -21
  170. package/dist/seek-to-frame.js +1 -1
  171. package/dist/stitch-frames-to-video.js +71 -10
  172. package/dist/take-frame.d.ts +11 -3
  173. package/dist/take-frame.js +10 -8
  174. package/dist/validate-output-filename.d.ts +1 -1
  175. package/dist/validate-output-filename.js +10 -2
  176. package/package.json +13 -13
@@ -10,7 +10,7 @@ exports.benchmarkConcurrenciesOption = {
10
10
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify which concurrency values should be used while benchmarking. Multiple values can be passed separated by comma. Learn more about", ' ', jsx_runtime_1.jsx("a", { href: "https://remotion.dev/docs/terminology/concurrency", children: "concurrency" }),
11
11
  "."] })),
12
12
  ssrName: null,
13
- docLink: 'https://www.remotion.dev/docs/cli/benchmark#--concurrencies',
13
+ docLink: 'https://www.remotion.dev/docs/options/concurrencies',
14
14
  type: null,
15
15
  getValue: ({ commandLine }) => {
16
16
  if (commandLine[cliFlag] !== undefined) {
@@ -17,7 +17,7 @@ exports.binariesDirectoryOption = {
17
17
  jsx_runtime_1.jsx("br", {}),
18
18
  "This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."] })),
19
19
  ssrName: 'binariesDirectory',
20
- docLink: 'https://www.remotion.dev/docs/renderer',
20
+ docLink: 'https://www.remotion.dev/docs/options/binaries-directory',
21
21
  type: '',
22
22
  getValue: ({ commandLine }) => {
23
23
  if (commandLine[cliFlag] !== undefined) {
@@ -9,7 +9,7 @@ exports.browserExecutableOption = {
9
9
  cliFlag,
10
10
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Set a custom Chrome or Chromium executable path. By default Remotion will try to find an existing version of Chrome on your system and if not found, it will download one. This flag is useful if you don't have Chrome installed in a standard location and you want to prevent downloading an additional browser or need support for the H264 codec." })),
11
11
  ssrName: 'browserExecutable',
12
- docLink: 'https://www.remotion.dev/docs/config#setbrowserexecutable',
12
+ docLink: 'https://www.remotion.dev/docs/options/browser-executable',
13
13
  type: null,
14
14
  getValue: ({ commandLine }) => {
15
15
  if (commandLine[cliFlag] !== undefined) {
@@ -9,7 +9,7 @@ exports.browserOption = {
9
9
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the browser which should be used for opening a tab. The default browser will be used by default. Pass an absolute path or", ' ', jsx_runtime_1.jsx("code", { children: "\"chrome\"" }),
10
10
  " to use Chrome. If Chrome is selected as the browser and you are on macOS, Remotion will try to reuse an existing tab."] })),
11
11
  ssrName: null,
12
- docLink: 'https://www.remotion.dev/docs/cli/studio#--browser',
12
+ docLink: 'https://www.remotion.dev/docs/options/browser',
13
13
  getValue: ({ commandLine }) => {
14
14
  if (commandLine[cliFlag] !== undefined) {
15
15
  return {
@@ -10,7 +10,7 @@ exports.bundleCacheOption = {
10
10
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable or disable Webpack caching. This flag is enabled by default, use", ' ', jsx_runtime_1.jsx("code", { children: "--bundle-cache=false" }),
11
11
  " to disable caching."] })),
12
12
  ssrName: null,
13
- docLink: 'https://www.remotion.dev/docs/config#setcachingenabled',
13
+ docLink: 'https://www.remotion.dev/docs/options/bundle-cache',
14
14
  getValue: ({ commandLine }) => {
15
15
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
@@ -10,7 +10,7 @@ exports.canvasTabsOption = {
10
10
  cliFlag,
11
11
  description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Enable or disable the tabs above the Studio canvas." }),
12
12
  ssrName: null,
13
- docLink: 'https://www.remotion.dev/docs/config#setcanvastabsenabled',
13
+ docLink: 'https://www.remotion.dev/docs/options/disable-canvas-tabs',
14
14
  type: false,
15
15
  getValue: ({ commandLine }) => {
16
16
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -20,7 +20,7 @@ exports.chromeModeOption = {
20
20
  " to take advantage of GPU drivers on Linux."] })
21
21
  ] }));
22
22
  },
23
- docLink: 'https://www.remotion.dev/chrome-for-testing',
23
+ docLink: 'https://www.remotion.dev/docs/options/chrome-mode',
24
24
  getValue: ({ commandLine }) => {
25
25
  if (commandLine[cliFlag]) {
26
26
  if (!exports.validChromeModeOptions.includes(commandLine[cliFlag])) {
@@ -22,7 +22,7 @@ exports.colorSpaceOption = {
22
22
  "For best color accuracy, it is recommended to also use", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "png", '"'] }), ' ', "as the image format to have accurate color transformations throughout.",
23
23
  jsx_runtime_1.jsx("br", {}),
24
24
  "Only since v4.0.83, colorspace conversion is actually performed, previously it would only tag the metadata of the video."] })),
25
- docLink: 'https://www.remotion.dev/docs/renderer/render-media#colorspace',
25
+ docLink: 'https://www.remotion.dev/docs/options/color-space',
26
26
  ssrName: 'colorSpace',
27
27
  type: exports.DEFAULT_COLOR_SPACE,
28
28
  getValue: ({ commandLine }) => {
@@ -31,7 +31,7 @@ exports.concurrencyOption = {
31
31
  jsx_runtime_1.jsx("code", { children: "50%" }),
32
32
  ")."] })),
33
33
  ssrName: 'concurrency',
34
- docLink: 'https://www.remotion.dev/docs/config#setconcurrency',
34
+ docLink: 'https://www.remotion.dev/docs/options/concurrency',
35
35
  type: null,
36
36
  getValue: ({ commandLine }) => {
37
37
  if (commandLine[cliFlag] !== undefined) {
@@ -8,7 +8,7 @@ exports.configOption = {
8
8
  cliFlag,
9
9
  description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Specify a location for the Remotion config file." }),
10
10
  ssrName: null,
11
- docLink: 'https://www.remotion.dev/docs/config',
11
+ docLink: 'https://www.remotion.dev/docs/options/config',
12
12
  getValue: ({ commandLine }) => {
13
13
  if (commandLine[cliFlag] !== undefined) {
14
14
  return {
@@ -15,7 +15,7 @@ exports.crfOption = {
15
15
  cliFlag,
16
16
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "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 CRF (Constant Rate Factor). The lower the number, the better the quality, the higher the number, the smaller the file is \u2013 of course at the cost of quality." })),
17
17
  ssrName: 'crf',
18
- docLink: 'https://www.remotion.dev/docs/encoding/#controlling-quality-using-the-crf-setting',
18
+ docLink: 'https://www.remotion.dev/docs/options/crf',
19
19
  type: 0,
20
20
  getValue: ({ commandLine }) => {
21
21
  if (commandLine[cliFlag] !== undefined) {
@@ -11,7 +11,7 @@ exports.enableCrossSiteIsolationOption = {
11
11
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable Cross-Site Isolation in the Studio (sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers, required for", ' ', jsx_runtime_1.jsx("code", { children: "@remotion/whisper-web" }),
12
12
  ")."] })),
13
13
  ssrName: null,
14
- docLink: 'https://www.remotion.dev/docs/config#setenablecrosssiteisolation',
14
+ docLink: 'https://www.remotion.dev/docs/options/cross-site-isolation',
15
15
  type: false,
16
16
  getValue: ({ commandLine }) => {
17
17
  if (commandLine[cliFlag] !== undefined) {
@@ -11,7 +11,7 @@ exports.darkModeOption = {
11
11
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Whether Chromium should pretend to be in dark mode by emulating the media feature 'prefers-color-scheme: dark'. Default is", ' ', jsx_runtime_1.jsx("code", { children: String(DEFAULT_VALUE) }),
12
12
  "."] })),
13
13
  ssrName: 'darkMode',
14
- docLink: 'https://www.remotion.dev/docs/chromium-flags#--dark-mode',
14
+ docLink: 'https://www.remotion.dev/docs/options/dark-mode',
15
15
  type: false,
16
16
  getValue: ({ commandLine }) => {
17
17
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -26,7 +26,7 @@ exports.defaultCodingAgentOption = {
26
26
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Set the default coding agent for Remotion Studio. Available coding agents:", ' ', jsx_runtime_1.jsx("code", { children: exports.defaultCodingAgentIds.join(', ') }),
27
27
  "."] })),
28
28
  ssrName: null,
29
- docLink: 'https://www.remotion.dev/docs/config#setdefaultcodingagent',
29
+ docLink: 'https://www.remotion.dev/docs/options/coding-agent',
30
30
  type: null,
31
31
  getValue: ({ commandLine }) => {
32
32
  const cliValue = commandLine[cliFlag];
@@ -62,7 +62,7 @@ exports.defaultEditorOption = {
62
62
  jsx_runtime_1.jsx("code", { children: exports.defaultEditorIds.join(', ') }),
63
63
  "."] })),
64
64
  ssrName: null,
65
- docLink: 'https://www.remotion.dev/docs/studio/open-in-editor',
65
+ docLink: 'https://www.remotion.dev/docs/options/editor',
66
66
  type: null,
67
67
  getValue: ({ commandLine }) => {
68
68
  const cliValue = commandLine[cliFlag];
@@ -21,7 +21,7 @@ exports.deleteAfterOption = {
21
21
  "."] }));
22
22
  },
23
23
  ssrName: 'deleteAfter',
24
- docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
24
+ docLink: 'https://www.remotion.dev/docs/options/delete-after',
25
25
  type: '1-day',
26
26
  getValue: ({ commandLine }) => {
27
27
  if (commandLine[cliFlag] !== undefined) {
@@ -6,7 +6,7 @@ const cliFlag = 'disable-git-source';
6
6
  exports.disableGitSourceOption = {
7
7
  cliFlag,
8
8
  description: () => `Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.`,
9
- docLink: 'https://remotion.dev/docs/bundle',
9
+ docLink: 'https://www.remotion.dev/docs/options/disable-git-source',
10
10
  getValue: ({ commandLine }) => {
11
11
  if (commandLine[cliFlag]) {
12
12
  return {
@@ -0,0 +1,16 @@
1
+ export declare const disableSharedMemoryCaptureOption: {
2
+ name: string;
3
+ cliFlag: "disable-shared-memory-capture";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: string;
6
+ docLink: string;
7
+ type: boolean;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: boolean;
12
+ source: string;
13
+ };
14
+ setConfig(value: boolean): void;
15
+ id: "disable-shared-memory-capture";
16
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.disableSharedMemoryCaptureOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let disableSharedMemoryCapture = false;
6
+ const cliFlag = 'disable-shared-memory-capture';
7
+ exports.disableSharedMemoryCaptureOption = {
8
+ name: 'Disable shared-memory capture',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Disables shared-memory capture and uses regular JPEG or PNG screenshots instead. Parallel encoding remains enabled. Default ",
11
+ jsx_runtime_1.jsx("code", { children: "false" }),
12
+ "."] })),
13
+ ssrName: 'disableSharedMemoryCapture',
14
+ docLink: 'https://www.remotion.dev/docs/options/disable-shared-memory-capture',
15
+ type: false,
16
+ getValue: ({ commandLine }) => {
17
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
18
+ return { value: commandLine[cliFlag], source: 'cli' };
19
+ }
20
+ if (disableSharedMemoryCapture !== false) {
21
+ return { value: disableSharedMemoryCapture, source: 'config' };
22
+ }
23
+ return { value: false, source: 'default' };
24
+ },
25
+ setConfig(value) {
26
+ disableSharedMemoryCapture = value;
27
+ },
28
+ id: cliFlag,
29
+ };
@@ -9,7 +9,7 @@ exports.disableWebSecurityOption = {
9
9
  cliFlag,
10
10
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "This will most notably disable CORS in Chrome among other security features." })),
11
11
  ssrName: 'disableWebSecurity',
12
- docLink: 'https://www.remotion.dev/docs/chromium-flags#--disable-web-security',
12
+ docLink: 'https://www.remotion.dev/docs/options/disable-web-security',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
15
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -9,7 +9,7 @@ exports.disallowParallelEncodingOption = {
9
9
  cliFlag,
10
10
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Disallows the renderer from doing rendering frames and encoding at the same time. This makes the rendering process more memory-efficient, but possibly slower." })),
11
11
  ssrName: 'disallowParallelEncoding',
12
- docLink: 'https://www.remotion.dev/docs/config#setdisallowparallelencoding',
12
+ docLink: 'https://www.remotion.dev/docs/options/disallow-parallel-encoding',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
15
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -10,7 +10,7 @@ exports.enableCancellationOption = {
10
10
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Allows a Lambda render to be cancelled by pressing Ctrl+C while running", ' ', jsx_runtime_1.jsx("code", { children: "npx remotion lambda render" }),
11
11
  ". Enabling cancellation causes each renderer function to poll S3 once per second while it is running."] })),
12
12
  ssrName: null,
13
- docLink: 'https://www.remotion.dev/docs/lambda/cli/render#--enable-cancellation',
13
+ docLink: 'https://www.remotion.dev/docs/options/enable-cancellation',
14
14
  type: false,
15
15
  setConfig: (value) => {
16
16
  enableCancellation = value;
@@ -10,7 +10,7 @@ exports.enableLambdaInsights = {
10
10
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable", ' ', jsx_runtime_1.jsx("a", { href: "https://remotion.dev/docs/lambda/insights", children: "Lambda Insights in AWS CloudWatch" }),
11
11
  ". For this to work, you may have to update your role permission."] })),
12
12
  ssrName: 'enableLambdaInsights',
13
- docLink: 'https://www.remotion.dev/docs/lambda/insights',
13
+ docLink: 'https://www.remotion.dev/docs/options/enable-lambda-insights',
14
14
  type: false,
15
15
  setConfig: (value) => {
16
16
  option = value;
@@ -22,7 +22,7 @@ exports.enableMultiprocessOnLinuxOption = {
22
22
  jsx_runtime_1.jsx("br", {}),
23
23
  "This flag will be removed in Remotion v5.0."] })),
24
24
  ssrName: 'chromiumOptions.enableMultiprocessOnLinux',
25
- docLink: 'https://www.remotion.dev/docs/chromium-flags',
25
+ docLink: 'https://www.remotion.dev/docs/options/enable-multiprocess-on-linux',
26
26
  type: false,
27
27
  getValue: ({ commandLine }) => {
28
28
  if (commandLine[cliFlag] !== undefined) {
@@ -17,7 +17,7 @@ exports.encodingBufferSizeOption = {
17
17
  jsx_runtime_1.jsx("code", { children: "-bufsize" }),
18
18
  " flag of FFmpeg. Should be used in conjunction with the encoding max rate flag. With the VP8, VP9 and AV1 codecs, a video bitrate must also be set."] })),
19
19
  ssrName: 'encodingBufferSize',
20
- docLink: 'https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize',
20
+ docLink: 'https://www.remotion.dev/docs/options/buffer-size',
21
21
  type: '',
22
22
  getValue: ({ commandLine }) => {
23
23
  if (commandLine[cliFlag] !== undefined) {
@@ -11,7 +11,7 @@ exports.encodingMaxRateOption = {
11
11
  jsx_runtime_1.jsx("code", { children: "-maxrate" }),
12
12
  " flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag. With the VP8, VP9 and AV1 codecs, a video bitrate must also be set."] })),
13
13
  ssrName: 'encodingMaxRate',
14
- docLink: 'https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate',
14
+ docLink: 'https://www.remotion.dev/docs/options/max-rate',
15
15
  type: '',
16
16
  getValue: ({ commandLine }) => {
17
17
  if (commandLine[cliFlag] !== undefined) {
@@ -24,7 +24,7 @@ exports.enforceAudioOption = {
24
24
  " takes precedence."] })
25
25
  ] })),
26
26
  ssrName: 'enforceAudioTrack',
27
- docLink: 'https://www.remotion.dev/docs/config#setenforceaudiotrack-',
27
+ docLink: 'https://www.remotion.dev/docs/options/enforce-audio-track',
28
28
  type: false,
29
29
  getValue: ({ commandLine }) => {
30
30
  if (commandLine[cliFlag]) {
@@ -11,7 +11,7 @@ exports.envFileOption = {
11
11
  jsx_runtime_1.jsx("code", { children: ".env" }),
12
12
  "."] })),
13
13
  ssrName: null,
14
- docLink: 'https://www.remotion.dev/docs/cli/render#--env-file',
14
+ docLink: 'https://www.remotion.dev/docs/options/env-file',
15
15
  getValue: ({ commandLine }) => {
16
16
  if (commandLine[cliFlag] !== undefined) {
17
17
  return {
@@ -15,7 +15,7 @@ exports.everyNthFrameOption = {
15
15
  jsx_runtime_1.jsx("code", { children: "15" }),
16
16
  "."] })),
17
17
  ssrName: 'everyNthFrame',
18
- docLink: 'https://www.remotion.dev/docs/config#seteverynthframe',
18
+ docLink: 'https://www.remotion.dev/docs/options/every-nth-frame',
19
19
  type: DEFAULT_EVERY_NTH_FRAME,
20
20
  getValue: ({ commandLine }) => {
21
21
  if (commandLine[cliFlag] !== undefined) {
@@ -11,7 +11,7 @@ exports.experimentalKeepAudioContextAliveOption = {
11
11
  jsx_runtime_1.jsx("code", { children: "AudioContext" }),
12
12
  " running while the Remotion Studio is paused."] })),
13
13
  ssrName: null,
14
- docLink: 'https://www.remotion.dev/docs/config#setexperimentalkeepaudiocontextalive',
14
+ docLink: 'https://www.remotion.dev/docs/options/experimental-keep-audio-context-alive',
15
15
  type: false,
16
16
  getValue: ({ commandLine }) => {
17
17
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -0,0 +1,18 @@
1
+ export declare const experimentalTracksOption: {
2
+ name: string;
3
+ cliFlag: "experimental-tracks";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: boolean;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: boolean;
12
+ source: string;
13
+ };
14
+ setConfig(value: boolean): void;
15
+ getConfigValue: () => boolean | null;
16
+ reset: () => void;
17
+ id: "experimental-tracks";
18
+ };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.experimentalTracksOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let experimentalTracksEnabled = false;
6
+ let configuredExperimentalTracksEnabled = null;
7
+ const cliFlag = 'experimental-tracks';
8
+ exports.experimentalTracksOption = {
9
+ name: 'Enable experimental timeline tracks',
10
+ cliFlag,
11
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable experimental timeline tracks in the Remotion Studio. Group clips from ",
12
+ jsx_runtime_1.jsx("code", { children: '<Track>' }),
13
+ ", ",
14
+ jsx_runtime_1.jsx("code", { children: '<Series>' }),
15
+ " and", ' ', jsx_runtime_1.jsx("code", { children: '<TransitionSeries>' }),
16
+ " on shared rows, with overlays on additional rows. Disabled by default."] })),
17
+ ssrName: null,
18
+ docLink: 'https://www.remotion.dev/docs/options/experimental-tracks',
19
+ type: false,
20
+ getValue: ({ commandLine }) => {
21
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
22
+ return {
23
+ value: commandLine[cliFlag],
24
+ source: 'cli',
25
+ };
26
+ }
27
+ return {
28
+ value: experimentalTracksEnabled,
29
+ source: 'config',
30
+ };
31
+ },
32
+ setConfig(value) {
33
+ experimentalTracksEnabled = value;
34
+ configuredExperimentalTracksEnabled = value;
35
+ },
36
+ getConfigValue: () => configuredExperimentalTracksEnabled,
37
+ reset: () => {
38
+ experimentalTracksEnabled = false;
39
+ configuredExperimentalTracksEnabled = null;
40
+ },
41
+ id: cliFlag,
42
+ };
@@ -14,7 +14,7 @@ exports.folderExpiryOption = {
14
14
  "."] }));
15
15
  },
16
16
  ssrName: 'enableFolderExpiry',
17
- docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
17
+ docLink: 'https://www.remotion.dev/docs/options/enable-folder-expiry',
18
18
  type: false,
19
19
  getValue: ({ commandLine }) => {
20
20
  if (commandLine[cliFlag] !== undefined) {
@@ -15,7 +15,7 @@ exports.forSeamlessAacConcatenationOption = {
15
15
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["If enabled, the audio is trimmed to the nearest AAC frame, which is required for seamless concatenation of AAC files. This is a requirement if you later want to combine multiple video snippets seamlessly.",
16
16
  jsx_runtime_1.jsx("br", {}), jsx_runtime_1.jsx("br", {}),
17
17
  " This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."] })),
18
- docLink: 'https://remotion.dev/docs/renderer',
18
+ docLink: 'https://www.remotion.dev/docs/options/for-seamless-aac-concatenation',
19
19
  getValue: ({ commandLine }) => {
20
20
  if (commandLine[cliFlag]) {
21
21
  return {
@@ -9,7 +9,7 @@ exports.forceNewStudioOption = {
9
9
  cliFlag,
10
10
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Forces starting a new Studio instance even if one is already running on the same port for the same project." })),
11
11
  ssrName: null,
12
- docLink: 'https://www.remotion.dev/docs/config#setforcenewstudioenabled',
12
+ docLink: 'https://www.remotion.dev/docs/options/force-new',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
15
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -89,7 +89,7 @@ exports.framesOption = {
89
89
  ") to render a subset of frames. Pass", ' ', jsx_runtime_1.jsx("code", { children: "100-" }),
90
90
  " to render from frame 100 to the end."] })),
91
91
  ssrName: 'frameRange',
92
- docLink: 'https://www.remotion.dev/docs/config#setframerange',
92
+ docLink: 'https://www.remotion.dev/docs/options/frames',
93
93
  type: null,
94
94
  getValue: ({ commandLine }) => {
95
95
  if (commandLine[cliFlag] !== undefined) {
@@ -39,7 +39,7 @@ const AngleChangelog = () => {
39
39
  const cliFlag = 'gl';
40
40
  exports.glOption = {
41
41
  cliFlag,
42
- docLink: 'https://www.remotion.dev/docs/chromium-flags#--gl',
42
+ docLink: 'https://www.remotion.dev/docs/options/gl',
43
43
  name: 'OpenGL renderer',
44
44
  type: 'angle',
45
45
  ssrName: 'gl',
@@ -23,7 +23,7 @@ exports.gopSizeOption = {
23
23
  jsx_runtime_1.jsx("code", { children: "-g" }),
24
24
  " option. Default: Let the encoder decide."] })),
25
25
  ssrName: 'gopSize',
26
- docLink: 'https://www.remotion.dev/docs/config#setgopsize',
26
+ docLink: 'https://www.remotion.dev/docs/options/gop',
27
27
  type: null,
28
28
  getValue: ({ commandLine }) => {
29
29
  const value = commandLine[cliFlag];
@@ -23,7 +23,7 @@ exports.hardwareAccelerationOption = {
23
23
  available, then the render will fail.
24
24
  `,
25
25
  ssrName: 'hardwareAcceleration',
26
- docLink: 'https://www.remotion.dev/docs/encoding',
26
+ docLink: 'https://www.remotion.dev/docs/options/hardware-acceleration',
27
27
  type: 'disable',
28
28
  getValue: ({ commandLine }) => {
29
29
  if (commandLine[cliFlag] !== undefined) {
@@ -10,7 +10,7 @@ exports.headlessOption = {
10
10
  cliFlag,
11
11
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["If disabled, the render will open an actual Chrome window where you can see the render happen. This requires", ' ', jsx_runtime_1.jsx("a", { href: "/docs/miscellaneous/chrome-headless-shell", children: "Chrome for Testing" }), ' ', "or a custom Chrome or Chromium executable. Chrome Headless Shell always runs headlessly. The default is headless mode."] })),
12
12
  ssrName: 'headless',
13
- docLink: 'https://www.remotion.dev/docs/chromium-flags#--disable-headless',
13
+ docLink: 'https://www.remotion.dev/docs/options/disable-headless',
14
14
  type: false,
15
15
  getValue: ({ commandLine }) => {
16
16
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -9,7 +9,7 @@ exports.ignoreCertificateErrorsOption = {
9
9
  cliFlag,
10
10
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored." })),
11
11
  ssrName: 'ignoreCertificateErrors',
12
- docLink: 'https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors',
12
+ docLink: 'https://www.remotion.dev/docs/options/ignore-certificate-errors',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
15
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
@@ -3,13 +3,16 @@ export declare const imageSequencePatternOption: {
3
3
  cliFlag: "image-sequence-pattern";
4
4
  ssrName: string;
5
5
  description: () => import("react/jsx-runtime").JSX.Element;
6
- docLink: null;
6
+ docLink: string;
7
7
  type: string | null;
8
8
  getValue: ({ commandLine }: {
9
9
  commandLine: Record<string, unknown>;
10
10
  }) => {
11
11
  value: string;
12
12
  source: string;
13
+ } | {
14
+ value: null;
15
+ source: string;
13
16
  };
14
17
  setConfig: (pattern: string | null) => void;
15
18
  reset: () => void;
@@ -14,9 +14,15 @@ exports.imageSequencePatternOption = {
14
14
  " for the zero-padded frame number and ",
15
15
  jsx_runtime_1.jsx("code", { children: "[ext]" }),
16
16
  " for the file extension."] })),
17
- docLink: null,
17
+ docLink: 'https://www.remotion.dev/docs/options/image-sequence-pattern',
18
18
  type: 'string',
19
19
  getValue: ({ commandLine }) => {
20
+ if (commandLine[cliFlag] !== undefined) {
21
+ return {
22
+ value: commandLine[cliFlag],
23
+ source: 'cli',
24
+ };
25
+ }
20
26
  if (currentImageSequencePattern !== null) {
21
27
  return {
22
28
  value: currentImageSequencePattern,
@@ -24,8 +30,8 @@ exports.imageSequencePatternOption = {
24
30
  };
25
31
  }
26
32
  return {
27
- value: commandLine[cliFlag],
28
- source: 'cli',
33
+ value: null,
34
+ source: 'default',
29
35
  };
30
36
  },
31
37
  setConfig: (pattern) => {
@@ -9,7 +9,7 @@ exports.imageSequenceOption = {
9
9
  cliFlag,
10
10
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Pass this flag to output an image sequence instead of a video. The default image format is JPEG. See", ' ', jsx_runtime_1.jsx("a", { href: "/docs/config#setimagesequence", children: jsx_runtime_1.jsx("code", { children: "setImageSequence()" }) }), ' ', "for more details."] })),
11
11
  ssrName: null,
12
- docLink: 'https://www.remotion.dev/docs/config#setimagesequence',
12
+ docLink: 'https://www.remotion.dev/docs/options/sequence',
13
13
  getValue: ({ commandLine }) => {
14
14
  if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
15
15
  return {