Skip to content

🎥 Make videos programmatically with React

ok

JonnyBurger669402cc4ac9
diff --git a/packages/cli/src/get-composition-with-dimension-override.ts b/packages/cli/src/get-composition-with-dimension-override.ts
index 5cd2adf621..147e5a0b4e 100644
--- a/packages/cli/src/get-composition-with-dimension-override.ts
+++ b/packages/cli/src/get-composition-with-dimension-override.ts
@@ -93,8 +93,7 @@ export const getCompositionWithDimensionOverride = async ({
height: height ?? returnValue.config.height,
width: width ?? returnValue.config.width,
fps: fps ?? returnValue.config.fps,
- durationInFrames:
- durationInFrames ?? returnValue.config.durationInFrames,
+ durationInFrames: durationInFrames ?? returnValue.config.durationInFrames,
},
};
};
diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.ts
index ba51b8b1b2..a6669ff933 100644
--- a/packages/cli/src/still.ts
+++ b/packages/cli/src/still.ts
@@ -73,7 +73,15 @@ export const still = async (
process.exit(1);
}
- const {envVariables, height, inputProps, stillFrame, width, fps, durationInFrames} = getCliOptions({
+ const {
+ envVariables,
+ height,
+ inputProps,
+ stillFrame,
+ width,
+ fps,
+ durationInFrames,
+ } = getCliOptions({
isStill: true,
logLevel,
indent: false,
diff --git a/packages/it-tests/src/monorepo/go-package.test.ts b/packages/it-tests/src/monorepo/go-package.test.ts
index 282b880b6e..073c95c5e1 100644
--- a/packages/it-tests/src/monorepo/go-package.test.ts
+++ b/packages/it-tests/src/monorepo/go-package.test.ts
@@ -51,6 +51,8 @@ test(
forceBucketName: null,
forceHeight: null,
forceWidth: null,
+ forceDurationInFrames: null,
+ forceFps: null,
frameRange: null,
framesPerLambda: null,
imageFormat: 'jpeg',
diff --git a/packages/it-tests/src/monorepo/php-package.test.ts b/packages/it-tests/src/monorepo/php-package.test.ts
index f3458f4629..db318b002e 100644
--- a/packages/it-tests/src/monorepo/php-package.test.ts
+++ b/packages/it-tests/src/monorepo/php-package.test.ts
@@ -97,6 +97,8 @@ class Semantic
forceBucketName: null,
forceHeight: null,
forceWidth: null,
+ forceDurationInFrames: null,
+ forceFps: null,
frameRange: null,
framesPerLambda: null,
imageFormat: 'jpeg',
diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.ts
index 95c85126dc..2ee5686bd6 100644
--- a/packages/lambda/src/cli/commands/render/render.ts
+++ b/packages/lambda/src/cli/commands/render/render.ts
@@ -93,12 +93,19 @@ export const renderCommand = async ({
const region = getAwsRegion();
- const {envVariables, frameRange, inputProps, height, width, fps, durationInFrames} =
- CliInternals.getCliOptions({
- isStill: false,
- logLevel,
- indent: false,
- });
+ const {
+ envVariables,
+ frameRange,
+ inputProps,
+ height,
+ width,
+ fps,
+ durationInFrames,
+ } = CliInternals.getCliOptions({
+ isStill: false,
+ logLevel,
+ indent: false,
+ });
const pixelFormat = pixelFormatOption.getValue({
commandLine: CliInternals.parsedCli,
diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.ts
index 65d5dcee3d..e29ad658ef 100644
--- a/packages/lambda/src/cli/commands/still.ts
+++ b/packages/lambda/src/cli/commands/still.ts
@@ -79,7 +79,15 @@ export const stillCommand = async ({
quit(1);
}
- const {envVariables, inputProps, stillFrame, height, width, fps, durationInFrames} = getCliOptions({
+ const {
+ envVariables,
+ inputProps,
+ stillFrame,
+ height,
+ width,
+ fps,
+ durationInFrames,
+ } = getCliOptions({
isStill: true,
logLevel,
indent: false,
diff --git a/packages/renderer/src/options/override-duration.tsx b/packages/renderer/src/options/override-duration.tsx
index 5544a779e8..0fe8e30ea0 100644
--- a/packages/renderer/src/options/override-duration.tsx
+++ b/packages/renderer/src/options/override-duration.tsx
@@ -7,9 +7,7 @@ const cliFlag = 'duration' as const;
export const overrideDurationOption = {
name: 'Override Duration',
cliFlag,
- description: () => (
- <>Overrides the duration in frames of the composition.</>
- ),
+ description: () => <>Overrides the duration in frames of the composition.</>,
ssrName: null,
docLink: 'https://www.remotion.dev/docs/config#overrideduration',
type: null as number | null,