Skip to content

🎥 Make videos programmatically with React

`@remotion/cli`: Resolve sampleRate from option in render queue instead of hardcoding

Jonny Burger583c90361334
diff --git a/packages/cli/src/render-queue/process-video.ts b/packages/cli/src/render-queue/process-video.ts
index 6fd6ea92d5..883de2e6f3 100644
--- a/packages/cli/src/render-queue/process-video.ts
+++ b/packages/cli/src/render-queue/process-video.ts
@@ -16,6 +16,7 @@ const {
rspackOption,
browserExecutableOption,
bundleCacheOption,
+ sampleRateOption,
} = BrowserSafeApis.options;
export const processVideoJob = async ({
@@ -57,11 +58,12 @@ export const processVideoJob = async ({
commandLine: parsedCli,
}).value;
const rspack = rspackOption.getValue({commandLine: parsedCli}).value;
+ const sampleRate = sampleRateOption.getValue({commandLine: parsedCli}).value;
const fullEntryPoint = convertEntryPointToServeUrl(entryPoint);
await renderVideoFlow({
remotionRoot,
- sampleRate: 48000,
+ sampleRate,
browser: 'chrome',
browserExecutable,
chromiumOptions: job.chromiumOptions,