@remotion/lambda 4.0.0-preload.13 → 4.0.0-preload.17
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/helpers/get-progress.js +2 -1
- package/dist/functions/helpers/validate-composition.d.ts +7 -3
- package/dist/functions/helpers/validate-composition.js +5 -1
- package/dist/functions/launch.js +4 -0
- package/dist/functions/renderer.js +3 -5
- package/dist/functions/still.js +5 -0
- package/dist/shared/constants.d.ts +1 -1
- package/dist/shared/constants.js +1 -1
- package/package.json +6 -6
- package/remotionlambda.zip +0 -0
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getProgress = void 0;
|
|
4
4
|
const remotion_1 = require("remotion");
|
|
5
5
|
const constants_1 = require("../../shared/constants");
|
|
6
|
+
const docs_url_1 = require("../../shared/docs-url");
|
|
6
7
|
const calculate_chunk_times_1 = require("./calculate-chunk-times");
|
|
7
8
|
const calculate_price_from_bucket_1 = require("./calculate-price-from-bucket");
|
|
8
9
|
const expected_out_name_1 = require("./expected-out-name");
|
|
@@ -155,7 +156,7 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
155
156
|
? {
|
|
156
157
|
attempt: 1,
|
|
157
158
|
chunk: null,
|
|
158
|
-
explanation: `The main function timed out after ${timeoutInMiliseconds}ms. Consider increasing the timeout of your function
|
|
159
|
+
explanation: `The main function timed out after ${timeoutInMiliseconds}ms. Consider increasing the timeout of your function. You can use the "--timeout" parameter when deploying a function via CLI, or the "timeoutInSeconds" parameter when using the deployFunction API. ${docs_url_1.DOCS_URL}/docs/lambda/cli/functions#deploy`,
|
|
159
160
|
frame: null,
|
|
160
161
|
isFatal: true,
|
|
161
162
|
s3Location: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBrowser } from '@remotion/renderer';
|
|
2
|
-
import { TCompMetadata } from 'remotion';
|
|
1
|
+
import { ChromiumOptions, openBrowser } from '@remotion/renderer';
|
|
2
|
+
import { FfmpegExecutable, TCompMetadata } from 'remotion';
|
|
3
3
|
import { Await } from '../../shared/await';
|
|
4
4
|
declare type ValidateCompositionOptions = {
|
|
5
5
|
serveUrl: string;
|
|
@@ -7,6 +7,10 @@ declare type ValidateCompositionOptions = {
|
|
|
7
7
|
browserInstance: Await<ReturnType<typeof openBrowser>>;
|
|
8
8
|
inputProps: unknown;
|
|
9
9
|
envVariables: Record<string, string> | undefined;
|
|
10
|
+
ffmpegExecutable: FfmpegExecutable;
|
|
11
|
+
timeoutInMilliseconds: number;
|
|
12
|
+
chromiumOptions: ChromiumOptions;
|
|
13
|
+
port: number | null;
|
|
10
14
|
};
|
|
11
|
-
export declare const validateComposition: ({ serveUrl, composition, browserInstance, inputProps, envVariables, }: ValidateCompositionOptions) => Promise<TCompMetadata>;
|
|
15
|
+
export declare const validateComposition: ({ serveUrl, composition, browserInstance, inputProps, envVariables, timeoutInMilliseconds, ffmpegExecutable, chromiumOptions, port, }: ValidateCompositionOptions) => Promise<TCompMetadata>;
|
|
12
16
|
export {};
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateComposition = void 0;
|
|
4
4
|
const renderer_1 = require("@remotion/renderer");
|
|
5
|
-
const validateComposition = async ({ serveUrl, composition, browserInstance, inputProps, envVariables, }) => {
|
|
5
|
+
const validateComposition = async ({ serveUrl, composition, browserInstance, inputProps, envVariables, timeoutInMilliseconds, ffmpegExecutable, chromiumOptions, port, }) => {
|
|
6
6
|
const compositions = await (0, renderer_1.getCompositions)(serveUrl, {
|
|
7
7
|
puppeteerInstance: browserInstance,
|
|
8
8
|
inputProps: inputProps,
|
|
9
9
|
envVariables,
|
|
10
|
+
ffmpegExecutable,
|
|
11
|
+
timeoutInMilliseconds,
|
|
12
|
+
chromiumOptions,
|
|
13
|
+
port,
|
|
10
14
|
});
|
|
11
15
|
const found = compositions.find((c) => c.id === composition);
|
|
12
16
|
if (!found) {
|
package/dist/functions/launch.js
CHANGED
|
@@ -61,6 +61,10 @@ const innerLaunchHandler = async (params, options) => {
|
|
|
61
61
|
browserInstance,
|
|
62
62
|
inputProps: params.inputProps,
|
|
63
63
|
envVariables: params.envVariables,
|
|
64
|
+
ffmpegExecutable: null,
|
|
65
|
+
timeoutInMilliseconds: params.timeoutInMilliseconds,
|
|
66
|
+
chromiumOptions: params.chromiumOptions,
|
|
67
|
+
port: null,
|
|
64
68
|
});
|
|
65
69
|
remotion_1.Internals.validateDurationInFrames(comp.durationInFrames, 'passed to <Component />');
|
|
66
70
|
remotion_1.Internals.validateFps(comp.fps, 'passed to <Component />');
|
|
@@ -101,15 +101,13 @@ const renderHandler = async (params, options, logs) => {
|
|
|
101
101
|
proResProfile: params.proResProfile,
|
|
102
102
|
onDownload: (src) => {
|
|
103
103
|
console.log('Downloading', src);
|
|
104
|
-
return (
|
|
105
|
-
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(params.logLevel, 'verbose')) {
|
|
106
|
-
console.log(`Download progress of ${src}: ${percent}`);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
104
|
+
return () => undefined;
|
|
109
105
|
},
|
|
110
106
|
overwrite: false,
|
|
111
107
|
chromiumOptions: params.chromiumOptions,
|
|
112
108
|
scale: params.scale,
|
|
109
|
+
timeoutInMilliseconds: params.timeoutInMilliseconds,
|
|
110
|
+
port: null,
|
|
113
111
|
});
|
|
114
112
|
const endRendered = Date.now();
|
|
115
113
|
console.log('Adding silent audio, chunk', params.chunk);
|
package/dist/functions/still.js
CHANGED
|
@@ -48,6 +48,10 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
|
|
|
48
48
|
composition: lambdaParams.composition,
|
|
49
49
|
inputProps: lambdaParams.inputProps,
|
|
50
50
|
envVariables: lambdaParams.envVariables,
|
|
51
|
+
ffmpegExecutable: null,
|
|
52
|
+
chromiumOptions: lambdaParams.chromiumOptions,
|
|
53
|
+
timeoutInMilliseconds: lambdaParams.timeoutInMilliseconds,
|
|
54
|
+
port: null,
|
|
51
55
|
});
|
|
52
56
|
const renderMetadata = {
|
|
53
57
|
startedDate: Date.now(),
|
|
@@ -91,6 +95,7 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
|
|
|
91
95
|
quality: lambdaParams.quality,
|
|
92
96
|
chromiumOptions: lambdaParams.chromiumOptions,
|
|
93
97
|
scale: lambdaParams.scale,
|
|
98
|
+
timeoutInMilliseconds: lambdaParams.timeoutInMilliseconds,
|
|
94
99
|
});
|
|
95
100
|
const { key: outName, renderBucketName } = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName);
|
|
96
101
|
const { size } = await fs_1.default.promises.stat(outputPath);
|
|
@@ -210,7 +210,7 @@ export declare type RenderMetadata = {
|
|
|
210
210
|
renderId: string;
|
|
211
211
|
outName: OutNameInput | undefined;
|
|
212
212
|
};
|
|
213
|
-
export declare type LambdaVersions = '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';
|
|
213
|
+
export declare type LambdaVersions = '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';
|
|
214
214
|
export declare const CURRENT_VERSION: LambdaVersions;
|
|
215
215
|
export declare type PostRenderData = {
|
|
216
216
|
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-05-
|
|
87
|
+
exports.CURRENT_VERSION = '2022-05-27';
|
|
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": "4.0.0-preload.
|
|
3
|
+
"version": "4.0.0-preload.17+14cd6033f",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,14 +31,14 @@
|
|
|
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": "4.0.0-preload.
|
|
35
|
-
"@remotion/cli": "4.0.0-preload.
|
|
36
|
-
"@remotion/renderer": "4.0.0-preload.
|
|
34
|
+
"@remotion/bundler": "4.0.0-preload.17+14cd6033f",
|
|
35
|
+
"@remotion/cli": "4.0.0-preload.17+14cd6033f",
|
|
36
|
+
"@remotion/renderer": "4.0.0-preload.17+14cd6033f",
|
|
37
37
|
"aws-policies": "^1.0.1",
|
|
38
38
|
"dotenv": "^10.0.0",
|
|
39
39
|
"mime-types": "2.1.34",
|
|
40
40
|
"minimist": "1.2.6",
|
|
41
|
-
"remotion": "4.0.0-preload.
|
|
41
|
+
"remotion": "4.0.0-preload.17+14cd6033f"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "14cd6033f4ad0fa75af142d54a4cd1a23aff3f21"
|
|
68
68
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|