Skip to content

🎥 Make videos programmatically with React

Replace `estimatedLambdaInvokations` with `estimatedRenderLambdaInvokations`.

Jonny Burgera171f6b6ed1f
diff --git a/packages/docs/docs/getrenderprogress.md b/packages/docs/docs/getrenderprogress.md
index 489c41e604..1f7502ae7e 100644
--- a/packages/docs/docs/getrenderprogress.md
+++ b/packages/docs/docs/getrenderprogress.md
@@ -74,7 +74,8 @@ Contains the following information about the render:
- `totalFrames`: The duration of the video
- `startedDate`: Timestamp of when the rendering process started.
- `totalChunks`: Into how many pieces the rendering is divided.
-- `estimatedLambdaInvokations`: The estimated amount of many Lambda functions get called in total, excluding calls to `getRenderProgress()`.
+- `estimatedTotalLambdaInvokations`: The estimated amount of total Lambda function calls in total, excluding calls to `getRenderProgress()`.
+- `estimatedRenderLambdaInvokations`: The estimated amount of Lambdas that will render chunks of the video.`.
- `compositionId`: The ID of the composition that is being rendered.
- `codec`: The selected codec into which the video gets encoded.
- `usesOptimizationProfile`: If chunk optimization was applied to the render.
@@ -109,7 +110,7 @@ How many bytes have been saved to the S3 bucket as a result of this render.
### `lambdasInvoked`
-How many lambdas that render a chunk have been invoked yet and have started rendering. Note that `lambdasInvoked` and `renderMetadata.estimatedLambdaInvokations` don't match up currently, this is expected.
+How many lambdas that render a chunk have been invoked yet and have started rendering.
### `estimatedPrice`
diff --git a/packages/docs/docs/lambda-changelog.md b/packages/docs/docs/lambda-changelog.md
index 0be19e21fe..3be72cacc2 100644
--- a/packages/docs/docs/lambda-changelog.md
+++ b/packages/docs/docs/lambda-changelog.md
@@ -19,6 +19,7 @@ Keep track of changes to the APIs of Remotion Lambda here.
- Renamed `deployProject` to `deploySite()`.
- Exported `getSites()` and `deleteSite()` (not documented yet)
- Added `siteName` to the options of `deploySite()`.
+- Replace `estimatedLambdaInvokations` with `estimatedRenderLambdaInvokations`.
## September 15th, 2021
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index 3c1e6c8a1a..1488e83ede 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -170,13 +170,14 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
startedDate: Date.now(),
videoConfig: comp,
totalChunks: chunks.length,
- estimatedLambdaInvokations: [
+ estimatedTotalLambdaInvokations: [
// Direct invokations
chunks.length,
// Parent invokers
invokers,
// This function
].reduce((a, b) => a + b, 0),
+ estimatedRenderLambdaInvokations: chunks.length,
compositionId: comp.id,
siteId: getServeUrlHash(params.serveUrl),
codec: params.codec,
diff --git a/packages/lambda/src/functions/still.ts b/packages/lambda/src/functions/still.ts
index 5384ff7355..556424e8ac 100644
--- a/packages/lambda/src/functions/still.ts
+++ b/packages/lambda/src/functions/still.ts
@@ -87,7 +87,8 @@ export const innerStillHandler = async (
videoConfig: composition,
codec: null,
compositionId: lambdaParams.composition,
- estimatedLambdaInvokations: 1,
+ estimatedTotalLambdaInvokations: 1,
+ estimatedRenderLambdaInvokations: 1,
siteId: getServeUrlHash(lambdaParams.serveUrl),
totalChunks: 1,
type: 'still',
diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.ts
index e1fa19a84f..8a42ca559a 100644
--- a/packages/lambda/src/shared/constants.ts
+++ b/packages/lambda/src/shared/constants.ts
@@ -205,7 +205,8 @@ export type RenderMetadata = {
videoConfig: VideoConfig;
startedDate: number;
totalChunks: number;
- estimatedLambdaInvokations: number;
+ estimatedTotalLambdaInvokations: number;
+ estimatedRenderLambdaInvokations: number;
compositionId: string;
codec: Codec | null;
usesOptimizationProfile: boolean;