@remotion/lambda 3.3.7 → 3.3.8
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/admin/generate-etag-list.d.ts +1 -0
- package/dist/admin/generate-etag-list.js +14 -0
- package/dist/api/get-aws-client.d.ts +2 -0
- package/dist/api/get-aws-client.js +2 -0
- package/dist/api/iam-validation/simulate-rule.js +0 -22
- package/dist/api/iam-validation/simulate.js +17 -5
- package/dist/api/iam-validation/user-permissions.js +0 -6
- package/dist/cli/commands/render/progress.d.ts +6 -3
- package/dist/cli/commands/render/progress.js +49 -39
- package/dist/cli/commands/render/render.js +16 -1
- package/dist/functions/helpers/concat-videos.d.ts +10 -6
- package/dist/functions/helpers/concat-videos.js +5 -21
- package/dist/functions/helpers/create-post-render-data.js +0 -12
- package/dist/functions/helpers/get-chunk-progress.d.ts +0 -0
- package/dist/functions/helpers/get-chunk-progress.js +1 -0
- package/dist/functions/helpers/get-encoding-metadata.d.ts +4 -8
- package/dist/functions/helpers/get-encoding-metadata.js +4 -18
- package/dist/functions/helpers/get-final-encoding-status.d.ts +2 -4
- package/dist/functions/helpers/get-final-encoding-status.js +1 -4
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +1 -5
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +1 -9
- package/dist/functions/helpers/get-overall-progress.d.ts +2 -1
- package/dist/functions/helpers/get-overall-progress.js +7 -5
- package/dist/functions/helpers/get-progress.js +37 -25
- package/dist/functions/helpers/get-rendered-frames-progress.d.ts +8 -0
- package/dist/functions/helpers/get-rendered-frames-progress.js +37 -0
- package/dist/functions/launch.js +48 -37
- package/dist/functions/renderer.js +15 -22
- package/dist/functions/still.js +2 -0
- package/dist/shared/aws-clients.d.ts +3 -0
- package/dist/shared/aws-clients.js +9 -1
- package/dist/shared/chunk-progress.d.ts +9 -0
- package/dist/shared/chunk-progress.js +2034 -0
- package/dist/shared/constants.d.ts +4 -5
- package/dist/shared/get-account-id.js +4 -6
- package/dist/shared/get-chunk-progress.d.ts +0 -0
- package/dist/shared/get-chunk-progress.js +1 -0
- package/dist/shared/parse-chunk-key.d.ts +4 -0
- package/dist/shared/parse-chunk-key.js +14 -0
- package/package.json +7 -6
- package/remotionlambda.zip +0 -0
- package/dist/shared/get-cloudwatch-stream-url.d.ts +0 -8
- package/dist/shared/get-cloudwatch-stream-url.js +0 -7
|
@@ -254,9 +254,6 @@ export declare type LambdaPayloads = {
|
|
|
254
254
|
export declare type LambdaPayload = LambdaPayloads[LambdaRoutines];
|
|
255
255
|
export declare type EncodingProgress = {
|
|
256
256
|
framesEncoded: number;
|
|
257
|
-
totalFrames: number | null;
|
|
258
|
-
doneIn: number | null;
|
|
259
|
-
timeToInvoke: number | null;
|
|
260
257
|
};
|
|
261
258
|
export declare type RenderMetadata = {
|
|
262
259
|
siteId: string;
|
|
@@ -277,6 +274,8 @@ export declare type RenderMetadata = {
|
|
|
277
274
|
renderId: string;
|
|
278
275
|
outName: OutNameInputWithoutCredentials | undefined;
|
|
279
276
|
privacy: Privacy;
|
|
277
|
+
frameRange: [number, number];
|
|
278
|
+
everyNthFrame: number;
|
|
280
279
|
};
|
|
281
280
|
export declare type PostRenderData = {
|
|
282
281
|
cost: {
|
|
@@ -297,7 +296,6 @@ export declare type PostRenderData = {
|
|
|
297
296
|
timeToEncode: number;
|
|
298
297
|
timeToCleanUp: number;
|
|
299
298
|
timeToRenderChunks: number;
|
|
300
|
-
timeToInvokeLambdas: number;
|
|
301
299
|
retriesInfo: ChunkRetry[];
|
|
302
300
|
mostExpensiveFrameRanges: ExpensiveChunk[] | undefined;
|
|
303
301
|
};
|
|
@@ -331,10 +329,11 @@ export declare type RenderProgress = {
|
|
|
331
329
|
lambdasInvoked: number;
|
|
332
330
|
cleanup: CleanupInfo | null;
|
|
333
331
|
timeToFinishChunks: number | null;
|
|
334
|
-
|
|
332
|
+
timeToEncode: number | null;
|
|
335
333
|
overallProgress: number;
|
|
336
334
|
retriesInfo: ChunkRetry[];
|
|
337
335
|
mostExpensiveFrameRanges: ExpensiveChunk[] | null;
|
|
336
|
+
framesRendered: number;
|
|
338
337
|
};
|
|
339
338
|
export declare type Privacy = 'public' | 'private' | 'no-acl';
|
|
340
339
|
export declare const LAMBDA_CONCURRENCY_LIMIT_QUOTA = "L-B99A9384";
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAccountId = void 0;
|
|
4
|
-
const
|
|
4
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
5
5
|
const aws_clients_1 = require("./aws-clients");
|
|
6
6
|
const validate_aws_region_1 = require("./validate-aws-region");
|
|
7
7
|
const getAccountId = async (options) => {
|
|
8
|
-
var _a, _b;
|
|
9
8
|
(0, validate_aws_region_1.validateAwsRegion)(options.region);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
if (!accountId) {
|
|
9
|
+
const callerIdentity = await (0, aws_clients_1.getStsClient)(options.region).send(new client_sts_1.GetCallerIdentityCommand({}));
|
|
10
|
+
if (!callerIdentity.Account) {
|
|
13
11
|
throw new Error('Cannot get account ID');
|
|
14
12
|
}
|
|
15
|
-
return
|
|
13
|
+
return callerIdentity.Account;
|
|
16
14
|
};
|
|
17
15
|
exports.getAccountId = getAccountId;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseLambdaChunkKey = void 0;
|
|
4
|
+
const parseLambdaChunkKey = (key) => {
|
|
5
|
+
const match = key.match(/^renders\/(.*)\/chunks\/chunk:([0-9]+)$/);
|
|
6
|
+
if (!match) {
|
|
7
|
+
throw new Error(`Cannot parse filename ${key} into timing information. Malformed data.`);
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
renderId: match[1],
|
|
11
|
+
chunk: Number(match[2]),
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
exports.parseLambdaChunkKey = parseLambdaChunkKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
"@aws-sdk/client-lambda": "3.215.0",
|
|
30
30
|
"@aws-sdk/client-s3": "3.215.0",
|
|
31
31
|
"@aws-sdk/client-service-quotas": "3.215.0",
|
|
32
|
+
"@aws-sdk/client-sts": "3.215.0",
|
|
32
33
|
"@aws-sdk/lib-storage": "3.215.0",
|
|
33
34
|
"@aws-sdk/s3-request-presigner": "3.215.0",
|
|
34
|
-
"@remotion/bundler": "3.3.
|
|
35
|
-
"@remotion/cli": "3.3.
|
|
36
|
-
"@remotion/renderer": "3.3.
|
|
35
|
+
"@remotion/bundler": "3.3.8",
|
|
36
|
+
"@remotion/cli": "3.3.8",
|
|
37
|
+
"@remotion/renderer": "3.3.8",
|
|
37
38
|
"aws-policies": "^1.0.1",
|
|
38
39
|
"mime-types": "2.1.34",
|
|
39
|
-
"remotion": "3.3.
|
|
40
|
+
"remotion": "3.3.8"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"react": ">=16.8.0",
|
|
@@ -59,5 +60,5 @@
|
|
|
59
60
|
"publishConfig": {
|
|
60
61
|
"access": "public"
|
|
61
62
|
},
|
|
62
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "4d4c78cf83b5fd085f24d5fd19f4507815e200a7"
|
|
63
64
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AwsRegion } from '../client';
|
|
2
|
-
import type { LambdaRoutines } from './constants';
|
|
3
|
-
export declare const getCloudwatchStreamUrl: ({ region, functionName, method, renderId, }: {
|
|
4
|
-
region: AwsRegion;
|
|
5
|
-
functionName: string;
|
|
6
|
-
method: LambdaRoutines;
|
|
7
|
-
renderId: string;
|
|
8
|
-
}) => string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCloudwatchStreamUrl = void 0;
|
|
4
|
-
const getCloudwatchStreamUrl = ({ region, functionName, method, renderId, }) => {
|
|
5
|
-
return `https://${region}.console.aws.amazon.com/cloudwatch/home?region=${region}#logsV2:log-groups/log-group/$252Faws$252Flambda$252F${functionName}/log-events$3FfilterPattern$3D$2522method$253D${method}$252CrenderId$253D${renderId}$2522`;
|
|
6
|
-
};
|
|
7
|
-
exports.getCloudwatchStreamUrl = getCloudwatchStreamUrl;
|