@remotion/lambda 3.3.80 → 3.3.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/functions/chunk-optimization/plan-frame-ranges.js +1 -1
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/make-timeout-error.js +6 -19
- package/dist/functions/helpers/make-timeout-message.d.ts +6 -0
- package/dist/functions/helpers/make-timeout-message.js +31 -0
- package/dist/functions/launch.js +1 -1
- package/package.json +9 -9
- package/remotionlambda-arm64.zip +0 -0
- package/remotionlambda-x64.zip +0 -0
|
@@ -9,7 +9,7 @@ const planFrameRanges = ({ framesPerLambda, frameRange, everyNthFrame, }) => {
|
|
|
9
9
|
return {
|
|
10
10
|
chunks: new Array(chunkCount).fill(1).map((_, i) => {
|
|
11
11
|
const start = i * framesPerLambda * everyNthFrame + firstFrame;
|
|
12
|
-
const end = Math.min(framesToRender[framesToRender.length - 1], (i + 1) * framesPerLambda * everyNthFrame - 1
|
|
12
|
+
const end = Math.min(framesToRender[framesToRender.length - 1], (i + 1) * framesPerLambda * everyNthFrame - 1 + firstFrame);
|
|
13
13
|
return [start, end];
|
|
14
14
|
}),
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "
|
|
1
|
+
export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-south-1" | "ap-east-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "me-south-1" | "sa-east-1";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeTimeoutError = void 0;
|
|
4
|
-
const docs_url_1 = require("../../shared/docs-url");
|
|
5
4
|
const parse_chunk_key_1 = require("../../shared/parse-chunk-key");
|
|
5
|
+
const make_timeout_message_1 = require("./make-timeout-message");
|
|
6
6
|
const makeTimeoutError = ({ timeoutInMilliseconds, chunks, renderMetadata, }) => {
|
|
7
7
|
const availableChunks = chunks.map((c) => (0, parse_chunk_key_1.parseLambdaChunkKey)(c.Key));
|
|
8
8
|
const missingChunks = new Array(renderMetadata.totalChunks)
|
|
@@ -11,24 +11,11 @@ const makeTimeoutError = ({ timeoutInMilliseconds, chunks, renderMetadata, }) =>
|
|
|
11
11
|
return !availableChunks.find((c) => c.chunk === i);
|
|
12
12
|
})
|
|
13
13
|
.map((_, i) => i);
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
? renderMetadata.frameRange[1]
|
|
20
|
-
: (ch + 1) * renderMetadata.framesPerLambda - 1;
|
|
21
|
-
return `Chunk ${ch} (Frames ${start} - ${end})`;
|
|
22
|
-
})
|
|
23
|
-
.slice(0, 5)
|
|
24
|
-
.join(', ');
|
|
25
|
-
const message = [
|
|
26
|
-
`The main function timed out after ${timeoutInMilliseconds}ms.`,
|
|
27
|
-
`Consider increasing the timeout of your function.`,
|
|
28
|
-
`The following chunks are missing (showing up to 5): ${missingChunksMessageList}.`,
|
|
29
|
-
`You can use the "--timeout" parameter when deploying a function via CLI, or the "timeoutInSeconds" parameter when using the deployFunction() API.`,
|
|
30
|
-
`${docs_url_1.DOCS_URL}/docs/lambda/cli/functions#deploy`,
|
|
31
|
-
].join('\n');
|
|
14
|
+
const message = (0, make_timeout_message_1.makeTimeoutMessage)({
|
|
15
|
+
missingChunks,
|
|
16
|
+
renderMetadata,
|
|
17
|
+
timeoutInMilliseconds,
|
|
18
|
+
});
|
|
32
19
|
return {
|
|
33
20
|
attempt: 1,
|
|
34
21
|
chunk: null,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeTimeoutMessage = void 0;
|
|
4
|
+
const docs_url_1 = require("../../shared/docs-url");
|
|
5
|
+
const makeChunkMissingMessage = ({ missingChunks, renderMetadata, }) => {
|
|
6
|
+
const missingChunksMessageList = missingChunks
|
|
7
|
+
.map((ch) => {
|
|
8
|
+
const isLastChunk = ch === renderMetadata.totalChunks - 1;
|
|
9
|
+
const start = ch * renderMetadata.framesPerLambda;
|
|
10
|
+
const end = isLastChunk
|
|
11
|
+
? renderMetadata.frameRange[1]
|
|
12
|
+
: (ch + 1) * renderMetadata.framesPerLambda - 1;
|
|
13
|
+
return `Chunk ${ch} (Frames ${start} - ${end})`;
|
|
14
|
+
})
|
|
15
|
+
.slice(0, 5);
|
|
16
|
+
if (missingChunksMessageList.length === 0) {
|
|
17
|
+
return 'All chunks have been successfully rendered, but the main function has timed out.';
|
|
18
|
+
}
|
|
19
|
+
return `The following chunks are missing (showing ${missingChunksMessageList.length} out of ${missingChunks.length}): ${missingChunksMessageList.join(', ')}.`;
|
|
20
|
+
};
|
|
21
|
+
const makeTimeoutMessage = ({ timeoutInMilliseconds, missingChunks, renderMetadata, }) => {
|
|
22
|
+
const message = [
|
|
23
|
+
`The main function timed out after ${timeoutInMilliseconds}ms.`,
|
|
24
|
+
`Consider increasing the timeout of your function.`,
|
|
25
|
+
makeChunkMissingMessage({ missingChunks, renderMetadata }),
|
|
26
|
+
`You can use the "--timeout" parameter when deploying a function via CLI, or the "timeoutInSeconds" parameter when using the deployFunction() API.`,
|
|
27
|
+
`${docs_url_1.DOCS_URL}/docs/lambda/cli/functions#deploy`,
|
|
28
|
+
].join('\n');
|
|
29
|
+
return message;
|
|
30
|
+
};
|
|
31
|
+
exports.makeTimeoutMessage = makeTimeoutMessage;
|
package/dist/functions/launch.js
CHANGED
|
@@ -230,7 +230,7 @@ const innerLaunchHandler = async (params, options) => {
|
|
|
230
230
|
};
|
|
231
231
|
return payload;
|
|
232
232
|
});
|
|
233
|
-
console.log('Render plan: ', chunks.map((c, i) => `Chunk ${i} (Frames ${c[0] - c[1]})`).join(', '));
|
|
233
|
+
console.log('Render plan: ', chunks.map((c, i) => `Chunk ${i} (Frames ${c[0]} - ${c[1]})`).join(', '));
|
|
234
234
|
const renderMetadata = {
|
|
235
235
|
startedDate,
|
|
236
236
|
videoConfig: comp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.82",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"@aws-sdk/credential-providers": "3.272.0",
|
|
24
24
|
"@aws-sdk/lib-storage": "3.272.0",
|
|
25
25
|
"@aws-sdk/s3-request-presigner": "3.272.0",
|
|
26
|
-
"@remotion/bundler": "3.3.
|
|
27
|
-
"@remotion/cli": "3.3.
|
|
28
|
-
"@remotion/renderer": "3.3.
|
|
26
|
+
"@remotion/bundler": "3.3.82",
|
|
27
|
+
"@remotion/cli": "3.3.82",
|
|
28
|
+
"@remotion/renderer": "3.3.82",
|
|
29
29
|
"aws-policies": "^1.0.1",
|
|
30
30
|
"mime-types": "2.1.34",
|
|
31
|
-
"remotion": "3.3.
|
|
31
|
+
"remotion": "3.3.82"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jonny/eslint-config": "3.0.266",
|
|
35
|
-
"@remotion/bundler": "3.3.
|
|
36
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
37
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
35
|
+
"@remotion/bundler": "3.3.82",
|
|
36
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.82",
|
|
37
|
+
"@remotion/compositor-linux-x64-musl": "3.3.82",
|
|
38
38
|
"@types/mime-types": "2.1.1",
|
|
39
39
|
"@types/minimist": "1.2.2",
|
|
40
40
|
"@types/node": "^14.14.14",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"zip-lib": "^0.7.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@remotion/bundler": "3.3.
|
|
51
|
+
"@remotion/bundler": "3.3.82"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|
package/remotionlambda-x64.zip
CHANGED
|
Binary file
|