Skip to content

🎥 Make videos programmatically with React

added remotionRoot where it was missing

Patric Salvisberg1ab49178d178
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.ts
index 58e0fa976d..593a8a844c 100644
--- a/packages/cli/src/benchmark.ts
+++ b/packages/cli/src/benchmark.ts
@@ -166,6 +166,7 @@ export const benchmarkCommand = async (
isLambda: false,
type: 'series',
codec: 'h264',
+ remotionRoot,
});
const browserInstance = openBrowser(browser, {
@@ -235,6 +236,7 @@ export const benchmarkCommand = async (
outputLocation: undefined,
serveUrl: bundleLocation,
codec,
+ remotionRoot,
});
const concurrency = getValidConcurrency(renderMediaOptions);
diff --git a/packages/cli/src/get-render-media-options.ts b/packages/cli/src/get-render-media-options.ts
index 06f54b2e7a..8df69d2b0e 100644
--- a/packages/cli/src/get-render-media-options.ts
+++ b/packages/cli/src/get-render-media-options.ts
@@ -8,11 +8,13 @@ export const getRenderMediaOptions = async ({
config,
serveUrl,
codec,
+ remotionRoot,
}: {
outputLocation: RenderMediaOptions['outputLocation'];
config: RenderMediaOptions['composition'];
serveUrl: string;
codec: Codec;
+ remotionRoot: string;
}): Promise<RenderMediaOptions> => {
const {
proResProfile,
@@ -40,6 +42,7 @@ export const getRenderMediaOptions = async ({
isLambda: false,
type: 'series',
codec,
+ remotionRoot,
});
return {
diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsx
index 8485e1d754..b38fa71a68 100644
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@ -308,6 +308,7 @@ export const render = async (remotionRoot: string) => {
outputLocation: absoluteOutputFile,
serveUrl: urlOrBundle,
codec,
+ remotionRoot,
});
await renderMedia({