🎥 Make videos programmatically with React
don't need remotionroot
Jonny Burger7039612dde28
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.tsindex 517a998b7f..7a6834c26c 100644--- a/packages/cli/src/benchmark.ts+++ b/packages/cli/src/benchmark.ts@@ -200,7 +200,6 @@ export const benchmarkCommand = async (} = getCliOptions({isLambda: false,type: 'series',- remotionRoot,logLevel,});diff --git a/packages/cli/src/bundle.ts b/packages/cli/src/bundle.tsindex c1252e514a..f843164584 100644--- a/packages/cli/src/bundle.ts+++ b/packages/cli/src/bundle.ts@@ -53,7 +53,6 @@ export const bundleCommand = async (const {publicDir} = getCliOptions({isLambda: false,type: 'get-compositions',- remotionRoot,logLevel,});diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.tsindex 1daf373a75..ba174c3a72 100644--- a/packages/cli/src/compositions.ts+++ b/packages/cli/src/compositions.ts@@ -61,7 +61,6 @@ export const listCompositionsCommand = async (} = getCliOptions({isLambda: false,type: 'get-compositions',- remotionRoot,logLevel,});diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.tsindex a90c6ebbc5..5a01fb28e8 100644--- a/packages/cli/src/get-cli-options.ts+++ b/packages/cli/src/get-cli-options.ts@@ -67,7 +67,6 @@ const getProResProfile = () => {export const getCliOptions = (options: {isLambda: boolean;type: 'still' | 'series' | 'get-compositions';- remotionRoot: string;logLevel: LogLevel;}) => {const frameRange = getAndValidateFrameRange(options.logLevel, false);diff --git a/packages/cli/src/gpu.ts b/packages/cli/src/gpu.tsindex cb2d9759ef..6eb7e9b073 100644--- a/packages/cli/src/gpu.ts+++ b/packages/cli/src/gpu.ts@@ -15,7 +15,7 @@ const {headlessOption,} = BrowserSafeApis.options;-export const gpuCommand = async (remotionRoot: string, logLevel: LogLevel) => {+export const gpuCommand = async (logLevel: LogLevel) => {const {browserExecutable,disableWebSecurity,@@ -23,7 +23,6 @@ export const gpuCommand = async (remotionRoot: string, logLevel: LogLevel) => {userAgent,} = getCliOptions({isLambda: false,- remotionRoot,type: 'get-compositions',logLevel,});diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsxindex 8e848dddd6..6093f96b15 100644--- a/packages/cli/src/index.tsx+++ b/packages/cli/src/index.tsx@@ -95,7 +95,7 @@ export const cli = async () => {} else if (command === 'ffmpeg') {ffmpegCommand(remotionRoot, process.argv.slice(3), logLevel);} else if (command === 'gpu') {- await gpuCommand(remotionRoot, logLevel);+ await gpuCommand(logLevel);} else if (command === 'ffprobe') {ffprobeCommand(remotionRoot, process.argv.slice(3), logLevel);} else if (command === 'upgrade') {diff --git a/packages/cli/src/render-queue/process-still.ts b/packages/cli/src/render-queue/process-still.tsindex 8c62117bd4..bd253ae204 100644--- a/packages/cli/src/render-queue/process-still.ts+++ b/packages/cli/src/render-queue/process-still.ts@@ -24,7 +24,6 @@ export const processStill = async ({const {publicDir, browserExecutable} = getCliOptions({isLambda: false,type: 'still',- remotionRoot,logLevel: job.logLevel,});diff --git a/packages/cli/src/render-queue/process-video.ts b/packages/cli/src/render-queue/process-video.tsindex fc6cd4ecd9..a0fdf0ba92 100644--- a/packages/cli/src/render-queue/process-video.ts+++ b/packages/cli/src/render-queue/process-video.ts@@ -24,10 +24,9 @@ export const processVideoJob = async ({throw new Error('Expected video job');}- const {publicDir, browserExecutable, ffmpegOverride} = await getCliOptions({+ const {publicDir, browserExecutable, ffmpegOverride} = getCliOptions({isLambda: false,type: 'still',- remotionRoot,logLevel,});const fullEntryPoint = convertEntryPointToServeUrl(entryPoint);diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex 19c9989a4e..e06a311d59 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -91,7 +91,6 @@ export const render = async (} = getCliOptions({isLambda: false,type: 'series',- remotionRoot,logLevel,});diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.tsindex 08268ed02b..08ab2fd261 100644--- a/packages/cli/src/still.ts+++ b/packages/cli/src/still.ts@@ -72,7 +72,6 @@ export const still = async (} = getCliOptions({isLambda: false,type: 'still',- remotionRoot,logLevel,});diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex 41b7a22874..9dd150e645 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -84,7 +84,6 @@ export const renderCommand = async (} = CliInternals.getCliOptions({type: 'series',isLambda: true,- remotionRoot,logLevel,});diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.tsindex 978b19a29d..72c8a03050 100644--- a/packages/cloudrun/src/cli/commands/still.ts+++ b/packages/cloudrun/src/cli/commands/still.ts@@ -51,7 +51,6 @@ export const stillCommand = async (} = CliInternals.getCliOptions({type: 'still',isLambda: true,- remotionRoot,logLevel,});diff --git a/packages/lambda/src/cli/commands/compositions/index.ts b/packages/lambda/src/cli/commands/compositions/index.tsindex a62177347c..eeb5a41147 100644--- a/packages/lambda/src/cli/commands/compositions/index.ts+++ b/packages/lambda/src/cli/commands/compositions/index.ts@@ -49,7 +49,6 @@ export const compositionsCommand = async (} = CliInternals.getCliOptions({type: 'get-compositions',isLambda: true,- remotionRoot,logLevel,});diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex 5005a776ca..f27463a44d 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -99,7 +99,6 @@ export const renderCommand = async (} = CliInternals.getCliOptions({type: 'series',isLambda: true,- remotionRoot,logLevel,});diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex fef2963996..ec2da19318 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -76,7 +76,6 @@ export const stillCommand = async (} = getCliOptions({type: 'still',isLambda: true,- remotionRoot,logLevel,});