🎥 Make videos programmatically with React
cool
Jonny Burger1a0c7c674eed
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.tsindex 7a6834c26c..25e2e82634 100644--- a/packages/cli/src/benchmark.ts+++ b/packages/cli/src/benchmark.ts@@ -199,7 +199,7 @@ export const benchmarkCommand = async (ignoreCertificateErrors,} = getCliOptions({isLambda: false,- type: 'series',+ isStill: false,logLevel,});diff --git a/packages/cli/src/bundle.ts b/packages/cli/src/bundle.tsindex f843164584..e35718a984 100644--- a/packages/cli/src/bundle.ts+++ b/packages/cli/src/bundle.ts@@ -52,7 +52,7 @@ export const bundleCommand = async (const {publicDir} = getCliOptions({isLambda: false,- type: 'get-compositions',+ isStill: false,logLevel,});diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.tsindex ba174c3a72..bc1dbcb85f 100644--- a/packages/cli/src/compositions.ts+++ b/packages/cli/src/compositions.ts@@ -60,7 +60,7 @@ export const listCompositionsCommand = async (disableWebSecurity,} = getCliOptions({isLambda: false,- type: 'get-compositions',+ isStill: false,logLevel,});diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.tsindex 5a01fb28e8..9ab890abce 100644--- a/packages/cli/src/get-cli-options.ts+++ b/packages/cli/src/get-cli-options.ts@@ -66,17 +66,16 @@ const getProResProfile = () => {export const getCliOptions = (options: {isLambda: boolean;- type: 'still' | 'series' | 'get-compositions';+ isStill: boolean;logLevel: LogLevel;}) => {const frameRange = getAndValidateFrameRange(options.logLevel, false);- const shouldOutputImageSequence =- options.type === 'still'- ? true- : getAndValidateShouldOutputImageSequence({- frameRange,- });+ const shouldOutputImageSequence = options.isStill+ ? true+ : getAndValidateShouldOutputImageSequence({+ frameRange,+ });const overwrite = ConfigInternals.getShouldOverwrite({defaultValue: !options.isLambda,diff --git a/packages/cli/src/gpu.ts b/packages/cli/src/gpu.tsindex 6eb7e9b073..da9f983ed5 100644--- a/packages/cli/src/gpu.ts+++ b/packages/cli/src/gpu.ts@@ -23,7 +23,7 @@ export const gpuCommand = async (logLevel: LogLevel) => {userAgent,} = getCliOptions({isLambda: false,- type: 'get-compositions',+ isStill: false,logLevel,});diff --git a/packages/cli/src/render-queue/process-still.ts b/packages/cli/src/render-queue/process-still.tsindex bd253ae204..909109effe 100644--- a/packages/cli/src/render-queue/process-still.ts+++ b/packages/cli/src/render-queue/process-still.ts@@ -23,7 +23,7 @@ export const processStill = async ({const {publicDir, browserExecutable} = getCliOptions({isLambda: false,- type: 'still',+ isStill: true,logLevel: job.logLevel,});diff --git a/packages/cli/src/render-queue/process-video.ts b/packages/cli/src/render-queue/process-video.tsindex a0fdf0ba92..715b5ec66a 100644--- a/packages/cli/src/render-queue/process-video.ts+++ b/packages/cli/src/render-queue/process-video.ts@@ -26,7 +26,7 @@ export const processVideoJob = async ({const {publicDir, browserExecutable, ffmpegOverride} = getCliOptions({isLambda: false,- type: 'still',+ isStill: true,logLevel,});const fullEntryPoint = convertEntryPointToServeUrl(entryPoint);diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex e06a311d59..8dae56c2f2 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -90,7 +90,7 @@ export const render = async (pixelFormat,} = getCliOptions({isLambda: false,- type: 'series',+ isStill: false,logLevel,});diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.tsindex 08ab2fd261..028f280c33 100644--- a/packages/cli/src/still.ts+++ b/packages/cli/src/still.ts@@ -71,7 +71,7 @@ export const still = async (userAgent,} = getCliOptions({isLambda: false,- type: 'still',+ isStill: true,logLevel,});diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex 9dd150e645..1970b4e6d2 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -82,7 +82,7 @@ export const renderCommand = async (ignoreCertificateErrors,userAgent,} = CliInternals.getCliOptions({- type: 'series',+ isStill: false,isLambda: true,logLevel,});diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.tsindex 72c8a03050..af2150527a 100644--- a/packages/cloudrun/src/cli/commands/still.ts+++ b/packages/cloudrun/src/cli/commands/still.ts@@ -49,7 +49,7 @@ export const stillCommand = async (disableWebSecurity,ignoreCertificateErrors,} = CliInternals.getCliOptions({- type: 'still',+ isStill: false,isLambda: true,logLevel,});diff --git a/packages/lambda/src/cli/commands/compositions/index.ts b/packages/lambda/src/cli/commands/compositions/index.tsindex eeb5a41147..58fa39b1c4 100644--- a/packages/lambda/src/cli/commands/compositions/index.ts+++ b/packages/lambda/src/cli/commands/compositions/index.ts@@ -21,7 +21,6 @@ const {export const compositionsCommand = async (args: string[],- remotionRoot: string,logLevel: LogLevel,) => {const serveUrl = args[0];@@ -47,7 +46,7 @@ export const compositionsCommand = async (userAgent,disableWebSecurity,} = CliInternals.getCliOptions({- type: 'get-compositions',+ isStill: false,isLambda: true,logLevel,});diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex f27463a44d..91234fd963 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -97,7 +97,7 @@ export const renderCommand = async (userAgent,disableWebSecurity,} = CliInternals.getCliOptions({- type: 'series',+ isStill: false,isLambda: true,logLevel,});diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex ec2da19318..cddcae8287 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -74,7 +74,7 @@ export const stillCommand = async (disableWebSecurity,ignoreCertificateErrors,} = getCliOptions({- type: 'still',+ isStill: true,isLambda: true,logLevel,});diff --git a/packages/lambda/src/cli/index.ts b/packages/lambda/src/cli/index.tsindex 8fdadc11b3..8a6a4f8513 100644--- a/packages/lambda/src/cli/index.ts+++ b/packages/lambda/src/cli/index.ts@@ -65,7 +65,7 @@ const matchCommand = (}if (args[0] === COMPOSITIONS_COMMAND) {- return compositionsCommand(args.slice(1), remotionRoot, logLevel);+ return compositionsCommand(args.slice(1), logLevel);}if (args[0] === FUNCTIONS_COMMAND) {