Skip to content

🎥 Make videos programmatically with React

fix order

Jonny Burger03bf63e0f4f7
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index 70f1f00643..8df5b2420e 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -379,7 +379,7 @@ const innerLaunchHandler = async ({
// TODO: Can be simplified
path.basename(
chunkKeyForIndex({
- index: i,
+ index: payload.chunk,
renderId: params.renderId,
type: 'video',
}),
@@ -397,7 +397,7 @@ const innerLaunchHandler = async ({
// TODO: Can be simplified
path.basename(
chunkKeyForIndex({
- index: i,
+ index: payload.chunk,
renderId: params.renderId,
type: 'audio',
}),
@@ -442,7 +442,7 @@ const innerLaunchHandler = async ({
preferLossless: params.preferLossless,
compositionStart: realFrameRange[0],
outdir,
- files,
+ files: files.sort(),
});
return postRenderData;
diff --git a/packages/lambda/src/shared/call-lambda.ts b/packages/lambda/src/shared/call-lambda.ts
index e934e2c83d..e653d2f163 100644
--- a/packages/lambda/src/shared/call-lambda.ts
+++ b/packages/lambda/src/shared/call-lambda.ts
@@ -152,7 +152,6 @@ const callLambdaWithStreamingWithoutRetry = async <T extends LambdaRoutines>({
},
);
- console.log('looking for event stream', res);
const events =
res.EventStream as AsyncIterable<InvokeWithResponseStreamResponseEvent>;