@remotion/lambda 3.2.25 → 3.2.27
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 +6 -6
- package/dist/api/render-media-on-lambda.js +6 -6
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +8 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js +7 -0
- package/dist/cli/index.js +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +1 -4
- package/dist/functions/launch.js +3 -0
- package/dist/functions/renderer.js +3 -0
- package/dist/functions/still.js +4 -1
- package/package.json +6 -6
- package/remotionlambda.zip +0 -0
|
@@ -8,16 +8,16 @@ export declare type RenderMediaOnLambdaInput = {
|
|
|
8
8
|
functionName: string;
|
|
9
9
|
serveUrl: string;
|
|
10
10
|
composition: string;
|
|
11
|
-
inputProps
|
|
11
|
+
inputProps?: unknown;
|
|
12
12
|
codec: LambdaCodec;
|
|
13
|
-
imageFormat
|
|
13
|
+
imageFormat?: ImageFormat;
|
|
14
14
|
crf?: number | undefined;
|
|
15
15
|
envVariables?: Record<string, string>;
|
|
16
16
|
pixelFormat?: PixelFormat;
|
|
17
17
|
proResProfile?: ProResProfile;
|
|
18
|
-
privacy
|
|
18
|
+
privacy?: Privacy;
|
|
19
19
|
quality?: number;
|
|
20
|
-
maxRetries
|
|
20
|
+
maxRetries?: number;
|
|
21
21
|
framesPerLambda?: number;
|
|
22
22
|
logLevel?: LogLevel;
|
|
23
23
|
frameRange?: FrameRange;
|
|
@@ -45,13 +45,13 @@ export declare type RenderMediaOnLambdaOutput = {
|
|
|
45
45
|
* @param params.composition The ID of the composition which should be rendered.
|
|
46
46
|
* @param params.inputProps The input props that should be passed to the composition.
|
|
47
47
|
* @param params.codec The media codec which should be used for encoding.
|
|
48
|
-
* @param params.imageFormat In which image format the frames should be rendered.
|
|
48
|
+
* @param params.imageFormat In which image format the frames should be rendered. Default "jpeg"
|
|
49
49
|
* @param params.crf The constant rate factor to be used during encoding.
|
|
50
50
|
* @param params.envVariables Object containing environment variables to be inserted into the video environment
|
|
51
51
|
* @param params.proResProfile The ProRes profile if rendering a ProRes video
|
|
52
52
|
* @param params.quality JPEG quality if JPEG was selected as the image format.
|
|
53
53
|
* @param params.region The AWS region in which the media should be rendered.
|
|
54
|
-
* @param params.maxRetries How often rendering a chunk may fail before the media render gets aborted.
|
|
54
|
+
* @param params.maxRetries How often rendering a chunk may fail before the media render gets aborted. Default "1"
|
|
55
55
|
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
56
56
|
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
57
57
|
*/
|
|
@@ -18,13 +18,13 @@ const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
|
18
18
|
* @param params.composition The ID of the composition which should be rendered.
|
|
19
19
|
* @param params.inputProps The input props that should be passed to the composition.
|
|
20
20
|
* @param params.codec The media codec which should be used for encoding.
|
|
21
|
-
* @param params.imageFormat In which image format the frames should be rendered.
|
|
21
|
+
* @param params.imageFormat In which image format the frames should be rendered. Default "jpeg"
|
|
22
22
|
* @param params.crf The constant rate factor to be used during encoding.
|
|
23
23
|
* @param params.envVariables Object containing environment variables to be inserted into the video environment
|
|
24
24
|
* @param params.proResProfile The ProRes profile if rendering a ProRes video
|
|
25
25
|
* @param params.quality JPEG quality if JPEG was selected as the image format.
|
|
26
26
|
* @param params.region The AWS region in which the media should be rendered.
|
|
27
|
-
* @param params.maxRetries How often rendering a chunk may fail before the media render gets aborted.
|
|
27
|
+
* @param params.maxRetries How often rendering a chunk may fail before the media render gets aborted. Default "1"
|
|
28
28
|
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
29
29
|
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
30
30
|
*/
|
|
@@ -46,16 +46,16 @@ const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
46
46
|
framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null,
|
|
47
47
|
composition,
|
|
48
48
|
serveUrl: realServeUrl,
|
|
49
|
-
inputProps,
|
|
49
|
+
inputProps: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
50
50
|
codec: actualCodec,
|
|
51
|
-
imageFormat,
|
|
51
|
+
imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : 'jpeg',
|
|
52
52
|
crf,
|
|
53
53
|
envVariables,
|
|
54
54
|
pixelFormat,
|
|
55
55
|
proResProfile,
|
|
56
56
|
quality,
|
|
57
|
-
maxRetries,
|
|
58
|
-
privacy,
|
|
57
|
+
maxRetries: maxRetries !== null && maxRetries !== void 0 ? maxRetries : 1,
|
|
58
|
+
privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
|
|
59
59
|
logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : 'info',
|
|
60
60
|
frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
|
|
61
61
|
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AwsRegion } from '../../client';
|
|
2
|
+
import type { LambdaRoutines } from '../../shared/constants';
|
|
3
|
+
export declare const getCloudwatchStreamUrl: ({ region, functionName, method, renderId, }: {
|
|
4
|
+
region: AwsRegion;
|
|
5
|
+
functionName: string;
|
|
6
|
+
method: LambdaRoutines;
|
|
7
|
+
renderId: string;
|
|
8
|
+
}) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
package/dist/cli/index.js
CHANGED
|
@@ -133,7 +133,7 @@ AWS returned an "TooManyRequestsException" error message which could mean you re
|
|
|
133
133
|
};
|
|
134
134
|
exports.executeCommand = executeCommand;
|
|
135
135
|
const cli = async () => {
|
|
136
|
-
await cli_1.CliInternals.
|
|
136
|
+
await cli_1.CliInternals.initializeCli(cli_1.CliInternals.findRemotionRoot());
|
|
137
137
|
await (0, exports.executeCommand)(args_1.parsedLambdaCli._);
|
|
138
138
|
};
|
|
139
139
|
exports.cli = cli;
|
package/dist/functions/launch.js
CHANGED
|
@@ -418,6 +418,9 @@ const launchHandler = async (params, options) => {
|
|
|
418
418
|
await innerLaunchHandler(params, options);
|
|
419
419
|
}
|
|
420
420
|
catch (err) {
|
|
421
|
+
if (process.env.NODE_ENV === 'test') {
|
|
422
|
+
throw err;
|
|
423
|
+
}
|
|
421
424
|
console.log('Error occurred', err);
|
|
422
425
|
await (0, write_lambda_error_1.writeLambdaError)({
|
|
423
426
|
bucketName: params.bucketName,
|
|
@@ -187,6 +187,9 @@ const rendererHandler = async (params, options) => {
|
|
|
187
187
|
await renderHandler(params, options, logs);
|
|
188
188
|
}
|
|
189
189
|
catch (err) {
|
|
190
|
+
if (process.env.NODE_ENV === 'test') {
|
|
191
|
+
throw err;
|
|
192
|
+
}
|
|
190
193
|
// If this error is encountered, we can just retry as it
|
|
191
194
|
// is a very rare error to occur
|
|
192
195
|
const isBrowserError = err.message.includes('FATAL:zygote_communication_linux.cc') ||
|
package/dist/functions/still.js
CHANGED
|
@@ -101,7 +101,10 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
|
|
|
101
101
|
serveUrl: lambdaParams.serveUrl,
|
|
102
102
|
dumpBrowserLogs: false,
|
|
103
103
|
envVariables: lambdaParams.envVariables,
|
|
104
|
-
frame:
|
|
104
|
+
frame: renderer_1.RenderInternals.convertToPositiveFrameIndex({
|
|
105
|
+
frame: lambdaParams.frame,
|
|
106
|
+
durationInFrames: composition.durationInFrames,
|
|
107
|
+
}),
|
|
105
108
|
imageFormat: lambdaParams.imageFormat,
|
|
106
109
|
inputProps: lambdaParams.inputProps,
|
|
107
110
|
overwrite: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.27",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/client-service-quotas": "3.58.0",
|
|
33
33
|
"@aws-sdk/lib-storage": "3.58.0",
|
|
34
34
|
"@aws-sdk/s3-request-presigner": "3.58.0",
|
|
35
|
-
"@remotion/bundler": "3.2.
|
|
36
|
-
"@remotion/cli": "3.2.
|
|
37
|
-
"@remotion/renderer": "3.2.
|
|
35
|
+
"@remotion/bundler": "3.2.27",
|
|
36
|
+
"@remotion/cli": "3.2.27",
|
|
37
|
+
"@remotion/renderer": "3.2.27",
|
|
38
38
|
"aws-policies": "^1.0.1",
|
|
39
39
|
"mime-types": "2.1.34",
|
|
40
|
-
"remotion": "3.2.
|
|
40
|
+
"remotion": "3.2.27"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "662c69bcb2fee4d51553b2f8e61635fb4d6688b1"
|
|
66
66
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|