@remotion/lambda 3.0.29 → 3.0.30
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/api/render-media-on-lambda.d.ts +5 -4
- package/dist/api/render-media-on-lambda.js +2 -1
- package/dist/cli/args.d.ts +1 -0
- package/dist/cli/commands/render/render.js +1 -0
- package/dist/functions/launch.js +2 -0
- package/dist/functions/renderer.js +1 -1
- package/dist/functions/start.js +1 -0
- package/dist/shared/constants.d.ts +4 -1
- package/dist/shared/constants.js +1 -1
- package/package.json +6 -6
- package/remotionlambda.zip +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChromiumOptions } from '@remotion/renderer';
|
|
2
2
|
import type { FrameRange, ImageFormat, LogLevel, PixelFormat, ProResProfile } from 'remotion';
|
|
3
3
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
4
|
-
import type { Privacy } from '../shared/constants';
|
|
4
|
+
import type { OutNameInput, Privacy } from '../shared/constants';
|
|
5
5
|
import type { LambdaCodec } from '../shared/validate-lambda-codec';
|
|
6
6
|
export declare type RenderMediaOnLambdaInput = {
|
|
7
7
|
region: AwsRegion;
|
|
@@ -21,10 +21,11 @@ export declare type RenderMediaOnLambdaInput = {
|
|
|
21
21
|
framesPerLambda?: number;
|
|
22
22
|
logLevel?: LogLevel;
|
|
23
23
|
frameRange?: FrameRange;
|
|
24
|
-
outName?:
|
|
24
|
+
outName?: OutNameInput;
|
|
25
25
|
timeoutInMilliseconds?: number;
|
|
26
26
|
chromiumOptions?: ChromiumOptions;
|
|
27
27
|
scale?: number;
|
|
28
|
+
concurrencyPerLambda?: number;
|
|
28
29
|
};
|
|
29
30
|
export declare type RenderMediaOnLambdaOutput = {
|
|
30
31
|
renderId: string;
|
|
@@ -48,8 +49,8 @@ export declare type RenderMediaOnLambdaOutput = {
|
|
|
48
49
|
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
49
50
|
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
50
51
|
*/
|
|
51
|
-
export declare const renderMediaOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
52
|
+
export declare const renderMediaOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, concurrencyPerLambda, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
52
53
|
/**
|
|
53
54
|
* @deprecated Renamed to renderMediaOnLambda()
|
|
54
55
|
*/
|
|
55
|
-
export declare const renderVideoOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
56
|
+
export declare const renderVideoOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, concurrencyPerLambda, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
@@ -26,7 +26,7 @@ const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
|
26
26
|
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
27
27
|
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
28
28
|
*/
|
|
29
|
-
const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }) => {
|
|
29
|
+
const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, concurrencyPerLambda, }) => {
|
|
30
30
|
const actualCodec = (0, validate_lambda_codec_1.validateLambdaCodec)(codec);
|
|
31
31
|
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
32
32
|
(0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null);
|
|
@@ -54,6 +54,7 @@ const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
54
54
|
timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : remotion_1.Internals.DEFAULT_PUPPETEER_TIMEOUT,
|
|
55
55
|
chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
|
|
56
56
|
scale: scale !== null && scale !== void 0 ? scale : 1,
|
|
57
|
+
concurrencyPerLambda: concurrencyPerLambda !== null && concurrencyPerLambda !== void 0 ? concurrencyPerLambda : 1,
|
|
57
58
|
},
|
|
58
59
|
region,
|
|
59
60
|
});
|
package/dist/cli/args.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare type LambdaCommandLineOptions = {
|
|
|
19
19
|
['disable-cloudwatch']: boolean;
|
|
20
20
|
['max-retries']: number;
|
|
21
21
|
['frames-per-lambda']: number;
|
|
22
|
+
['concurrency-per-lambda']: number;
|
|
22
23
|
['out-name']: string | undefined;
|
|
23
24
|
['architecture']: LambdaArchitecture;
|
|
24
25
|
['custom-role-arn']: string | undefined;
|
|
@@ -72,6 +72,7 @@ const renderCommand = async (args) => {
|
|
|
72
72
|
timeoutInMilliseconds: puppeteerTimeout,
|
|
73
73
|
chromiumOptions,
|
|
74
74
|
scale,
|
|
75
|
+
concurrencyPerLambda: args_1.parsedLambdaCli['concurrency-per-lambda'],
|
|
75
76
|
});
|
|
76
77
|
const totalSteps = outName ? 5 : 4;
|
|
77
78
|
const progressBar = cli_1.CliInternals.createOverwriteableCliOutput(cli_1.CliInternals.quietFlagProvided());
|
package/dist/functions/launch.js
CHANGED
|
@@ -71,6 +71,7 @@ const innerLaunchHandler = async (params, options) => {
|
|
|
71
71
|
remotion_1.Internals.validateFps(comp.fps, 'passed to <Component />');
|
|
72
72
|
remotion_1.Internals.validateDimension(comp.height, 'height', 'passed to <Component />');
|
|
73
73
|
remotion_1.Internals.validateDimension(comp.width, 'width', 'passed to <Component />');
|
|
74
|
+
renderer_1.RenderInternals.validateConcurrency(params.concurrencyPerLambda, 'concurrencyPerLambda');
|
|
74
75
|
const realFrameRange = renderer_1.RenderInternals.getRealFrameRange(comp.durationInFrames, params.frameRange);
|
|
75
76
|
const frameCount = renderer_1.RenderInternals.getDurationFromFrameRange(realFrameRange, 0);
|
|
76
77
|
const framesPerLambda = (_a = params.framesPerLambda) !== null && _a !== void 0 ? _a : (0, best_frames_per_lambda_param_1.bestFramesPerLambdaParam)(frameCount);
|
|
@@ -122,6 +123,7 @@ const innerLaunchHandler = async (params, options) => {
|
|
|
122
123
|
timeoutInMilliseconds: params.timeoutInMilliseconds,
|
|
123
124
|
chromiumOptions: params.chromiumOptions,
|
|
124
125
|
scale: params.scale,
|
|
126
|
+
concurrencyPerLambda: params.concurrencyPerLambda,
|
|
125
127
|
};
|
|
126
128
|
return payload;
|
|
127
129
|
});
|
|
@@ -63,7 +63,7 @@ const renderHandler = async (params, options, logs) => {
|
|
|
63
63
|
}
|
|
64
64
|
chunkTimingData.timings[renderedFrames] = Date.now() - start;
|
|
65
65
|
},
|
|
66
|
-
parallelism:
|
|
66
|
+
parallelism: params.concurrencyPerLambda,
|
|
67
67
|
onStart: () => {
|
|
68
68
|
(0, io_1.lambdaWriteFile)({
|
|
69
69
|
privacy: 'private',
|
package/dist/functions/start.js
CHANGED
|
@@ -40,6 +40,7 @@ const startHandler = async (params) => {
|
|
|
40
40
|
timeoutInMilliseconds: params.timeoutInMilliseconds,
|
|
41
41
|
chromiumOptions: params.chromiumOptions,
|
|
42
42
|
scale: params.scale,
|
|
43
|
+
concurrencyPerLambda: params.concurrencyPerLambda,
|
|
43
44
|
};
|
|
44
45
|
await (0, aws_clients_1.getLambdaClient)((0, get_current_region_1.getCurrentRegionInFunction)()).send(new client_lambda_1.InvokeCommand({
|
|
45
46
|
FunctionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
@@ -108,6 +108,7 @@ export declare type LambdaPayloads = {
|
|
|
108
108
|
timeoutInMilliseconds: number;
|
|
109
109
|
chromiumOptions: ChromiumOptions;
|
|
110
110
|
scale: number;
|
|
111
|
+
concurrencyPerLambda: number;
|
|
111
112
|
};
|
|
112
113
|
launch: {
|
|
113
114
|
type: LambdaRoutines.launch;
|
|
@@ -132,6 +133,7 @@ export declare type LambdaPayloads = {
|
|
|
132
133
|
timeoutInMilliseconds: number;
|
|
133
134
|
chromiumOptions: ChromiumOptions;
|
|
134
135
|
scale: number;
|
|
136
|
+
concurrencyPerLambda: number;
|
|
135
137
|
};
|
|
136
138
|
status: {
|
|
137
139
|
type: LambdaRoutines.status;
|
|
@@ -139,6 +141,7 @@ export declare type LambdaPayloads = {
|
|
|
139
141
|
renderId: string;
|
|
140
142
|
};
|
|
141
143
|
renderer: {
|
|
144
|
+
concurrencyPerLambda: number;
|
|
142
145
|
type: LambdaRoutines.renderer;
|
|
143
146
|
serveUrl: string;
|
|
144
147
|
frameRange: [number, number];
|
|
@@ -212,7 +215,7 @@ export declare type RenderMetadata = {
|
|
|
212
215
|
renderId: string;
|
|
213
216
|
outName: OutNameInput | undefined;
|
|
214
217
|
};
|
|
215
|
-
export declare type LambdaVersions = '2022-07-09' | '2022-07-08' | '2022-07-04' | '2022-06-30' | '2022-06-29' | '2022-06-25' | '2022-06-22' | '2022-06-21' | '2022-06-14' | '2022-06-08' | '2022-06-07' | '2022-06-02' | '2022-05-31' | '2022-05-28' | '2022-05-27' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
|
|
218
|
+
export declare type LambdaVersions = '2022-07-10' | '2022-07-09' | '2022-07-08' | '2022-07-04' | '2022-06-30' | '2022-06-29' | '2022-06-25' | '2022-06-22' | '2022-06-21' | '2022-06-14' | '2022-06-08' | '2022-06-07' | '2022-06-02' | '2022-05-31' | '2022-05-28' | '2022-05-27' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
|
|
216
219
|
export declare const CURRENT_VERSION: LambdaVersions;
|
|
217
220
|
export declare type PostRenderData = {
|
|
218
221
|
cost: {
|
package/dist/shared/constants.js
CHANGED
|
@@ -84,6 +84,6 @@ var LambdaRoutines;
|
|
|
84
84
|
LambdaRoutines["renderer"] = "renderer";
|
|
85
85
|
LambdaRoutines["still"] = "still";
|
|
86
86
|
})(LambdaRoutines = exports.LambdaRoutines || (exports.LambdaRoutines = {}));
|
|
87
|
-
exports.CURRENT_VERSION = '2022-07-
|
|
87
|
+
exports.CURRENT_VERSION = '2022-07-10';
|
|
88
88
|
exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = 'L-B99A9384';
|
|
89
89
|
exports.LAMBDA_BURST_LIMIT_QUOTA = 'L-548AE339';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.30",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@aws-sdk/client-service-quotas": "3.58.0",
|
|
32
32
|
"@aws-sdk/lib-storage": "3.58.0",
|
|
33
33
|
"@aws-sdk/s3-request-presigner": "3.58.0",
|
|
34
|
-
"@remotion/bundler": "3.0.
|
|
35
|
-
"@remotion/cli": "3.0.
|
|
36
|
-
"@remotion/renderer": "3.0.
|
|
34
|
+
"@remotion/bundler": "3.0.30",
|
|
35
|
+
"@remotion/cli": "3.0.30",
|
|
36
|
+
"@remotion/renderer": "3.0.30",
|
|
37
37
|
"aws-policies": "^1.0.1",
|
|
38
38
|
"mime-types": "2.1.34",
|
|
39
|
-
"remotion": "3.0.
|
|
39
|
+
"remotion": "3.0.30"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5af2bdb448a7ceadb6c3f9003b014d7566878c35"
|
|
65
65
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|