Skip to content

🎥 Make videos programmatically with React

fix inputprops mechanism for still

Jonny Burger93325544e296
diff --git a/packages/lambda/src/functions/still.ts b/packages/lambda/src/functions/still.ts
index 1482b71d55..e88d67e0bc 100644
--- a/packages/lambda/src/functions/still.ts
+++ b/packages/lambda/src/functions/still.ts
@@ -80,12 +80,6 @@ const innerStillHandler = async (
lambdaParams.chromiumOptions ?? {}
),
]);
- const inputPropsPromise = deserializeInputProps({
- bucketName,
- expectedBucketOwner: options.expectedBucketOwner,
- region: getCurrentRegionInFunction(),
- serialized: lambdaParams.inputProps,
- });
const outputDir = RenderInternals.tmpDir('remotion-render-');
@@ -93,11 +87,18 @@ const innerStillHandler = async (
const downloadMap = RenderInternals.makeDownloadMap();
+ const inputProps = await deserializeInputProps({
+ bucketName,
+ expectedBucketOwner: options.expectedBucketOwner,
+ region: getCurrentRegionInFunction(),
+ serialized: lambdaParams.inputProps,
+ });
+
const composition = await validateComposition({
serveUrl: lambdaParams.serveUrl,
browserInstance,
composition: lambdaParams.composition,
- inputProps: lambdaParams.inputProps,
+ inputProps,
envVariables: lambdaParams.envVariables,
ffmpegExecutable: null,
ffprobeExecutable: null,
@@ -140,7 +141,6 @@ const innerStillHandler = async (
customCredentials: null,
});
- const inputProps = await inputPropsPromise;
await renderStill({
composition,
output: outputPath,