🎥 Make videos programmatically with React
Remove unsupported options from Vercel render APIs
Jonny Burger618f5ff0cc06
diff --git a/packages/docs/docs/vercel/render-media-on-vercel.mdx b/packages/docs/docs/vercel/render-media-on-vercel.mdxindex 715613ea7c..d05bd17b0e 100644--- a/packages/docs/docs/vercel/render-media-on-vercel.mdx+++ b/packages/docs/docs/vercel/render-media-on-vercel.mdx@@ -102,10 +102,6 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](<Options id="scale" />-### `browserExecutable?`--<Options id="browser-executable" />-### `preferLossless?`<Options id="prefer-lossless" />@@ -186,10 +182,6 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](<Options id="hardware-acceleration" />-### `chromeMode?`--<Options id="chrome-mode" />-### `offthreadVideoCacheSizeInBytes?`<Options id="offthreadvideo-cache-size-in-bytes" />@@ -202,14 +194,6 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](<Options id="offthreadvideo-video-threads" />-### `repro?`--<Options id="repro" />--### `binariesDirectory?`--<Options id="binaries-directory" />-### `licenseKey?`<Options id="license-key" />diff --git a/packages/docs/docs/vercel/render-still-on-vercel.mdx b/packages/docs/docs/vercel/render-still-on-vercel.mdxindex 3ffd9af5ef..3ca17c8bae 100644--- a/packages/docs/docs/vercel/render-still-on-vercel.mdx+++ b/packages/docs/docs/vercel/render-still-on-vercel.mdx@@ -66,10 +66,6 @@ The output file path inside the sandbox. Default: `"/tmp/still.png"`.An object containing key-value pairs of environment variables which will be injected into your Remotion project and which can be accessed by reading the global `process.env` object. Default: `{}`.-### `browserExecutable?`--<Options id="browser-executable" />-### `chromiumOptions?`Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).@@ -86,10 +82,6 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](<Options id="timeout" />-### `chromeMode?`--<Options id="chrome-mode" />-### `offthreadVideoCacheSizeInBytes?`<Options id="offthreadvideo-cache-size-in-bytes" />@@ -102,10 +94,6 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](<Options id="offthreadvideo-video-threads" />-### `binariesDirectory?`--<Options id="binaries-directory" />-### `licenseKey?`<Options id="license-key" />diff --git a/packages/vercel/src/render-media-on-vercel.ts b/packages/vercel/src/render-media-on-vercel.tsindex 2a17287bbb..d8262cc892 100644--- a/packages/vercel/src/render-media-on-vercel.ts+++ b/packages/vercel/src/render-media-on-vercel.ts@@ -3,7 +3,6 @@ import {REMOTION_SANDBOX_BUNDLE_DIR} from './internals/add-bundle';import type {AudioCodec,Bitrate,- ChromeMode,ChromiumOptions,Codec,ColorSpace,@@ -33,12 +32,10 @@ export async function renderMediaOnVercel({proResProfile,chromiumOptions = {},scale = 1,- browserExecutable,preferLossless = false,enforceAudioTrack = false,disallowParallelEncoding = false,concurrency,- binariesDirectory,metadata,licenseKey,videoBitrate,@@ -56,11 +53,9 @@ export async function renderMediaOnVercel({forSeamlessAacConcatenation = false,separateAudioTo,hardwareAcceleration = 'disable',- chromeMode = 'headless-shell',offthreadVideoCacheSizeInBytes,mediaCacheSizeInBytes,offthreadVideoThreads,- repro = false,}: {sandbox: Sandbox;compositionId: string;@@ -77,12 +72,10 @@ export async function renderMediaOnVercel({proResProfile?: ProResProfile;chromiumOptions?: ChromiumOptions;scale?: number;- browserExecutable?: string | null;preferLossless?: boolean;enforceAudioTrack?: boolean;disallowParallelEncoding?: boolean;concurrency?: number | string | null;- binariesDirectory?: string | null;metadata?: Record<string, string> | null;licenseKey?: string | null;videoBitrate?: Bitrate | null;@@ -100,11 +93,9 @@ export async function renderMediaOnVercel({forSeamlessAacConcatenation?: boolean;separateAudioTo?: string | null;hardwareAcceleration?: HardwareAccelerationOption;- chromeMode?: ChromeMode;offthreadVideoCacheSizeInBytes?: number | null;mediaCacheSizeInBytes?: number | null;offthreadVideoThreads?: number | null;- repro?: boolean;}): Promise<{sandboxFilePath: string}> {const serveUrl = `/vercel/sandbox/${REMOTION_SANDBOX_BUNDLE_DIR}`;@@ -123,12 +114,10 @@ export async function renderMediaOnVercel({proResProfile: proResProfile ?? null,chromiumOptions,scale,- browserExecutable: browserExecutable ?? null,preferLossless,enforceAudioTrack,disallowParallelEncoding,concurrency: concurrency ?? null,- binariesDirectory: binariesDirectory ?? null,metadata: metadata ?? null,licenseKey: licenseKey ?? null,videoBitrate: videoBitrate ?? null,@@ -146,11 +135,9 @@ export async function renderMediaOnVercel({forSeamlessAacConcatenation,separateAudioTo: separateAudioTo ?? null,hardwareAcceleration,- chromeMode,offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes ?? null,mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,offthreadVideoThreads: offthreadVideoThreads ?? null,- repro,};const renderCmd = await sandbox.runCommand({diff --git a/packages/vercel/src/render-still-on-vercel.ts b/packages/vercel/src/render-still-on-vercel.tsindex a480e6dfad..706bedb351 100644--- a/packages/vercel/src/render-still-on-vercel.ts+++ b/packages/vercel/src/render-still-on-vercel.ts@@ -1,7 +1,6 @@import type {Sandbox} from '@vercel/sandbox';import {REMOTION_SANDBOX_BUNDLE_DIR} from './internals/add-bundle';import type {- ChromeMode,ChromiumOptions,LogLevel,RenderOnVercelProgress,@@ -18,13 +17,10 @@ export async function renderStillOnVercel({imageFormat = 'png',jpegQuality = 80,envVariables = {},- browserExecutable,chromiumOptions = {},scale = 1,logLevel = 'info',timeoutInMilliseconds = 30000,- binariesDirectory,- chromeMode = 'headless-shell',offthreadVideoCacheSizeInBytes,mediaCacheSizeInBytes,offthreadVideoThreads,@@ -39,13 +35,10 @@ export async function renderStillOnVercel({imageFormat?: StillImageFormat;jpegQuality?: number;envVariables?: Record<string, string>;- browserExecutable?: string | null;chromiumOptions?: ChromiumOptions;scale?: number;logLevel?: LogLevel;timeoutInMilliseconds?: number;- binariesDirectory?: string | null;- chromeMode?: ChromeMode;offthreadVideoCacheSizeInBytes?: number | null;mediaCacheSizeInBytes?: number | null;offthreadVideoThreads?: number | null;@@ -62,13 +55,10 @@ export async function renderStillOnVercel({imageFormat,jpegQuality,envVariables,- browserExecutable: browserExecutable ?? null,chromiumOptions,scale,logLevel,timeoutInMilliseconds,- binariesDirectory: binariesDirectory ?? null,- chromeMode,offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes ?? null,mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,offthreadVideoThreads: offthreadVideoThreads ?? null,