@remotion/lambda 4.0.320 → 4.0.322
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/cli/args.d.ts +1 -0
- package/dist/cli/commands/render/render.js +12 -13
- package/dist/cli/commands/sites/create.js +1 -1
- package/dist/esm/index.mjs +9 -12
- package/dist/internals.d.ts +4 -0
- package/dist/internals.js +2 -0
- package/package.json +12 -12
- package/remotionlambda-arm64.zip +0 -0
package/dist/cli/args.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ type LambdaCommandLineOptions = {
|
|
|
21
21
|
[BrowserSafeApis.options.enableLambdaInsights.cliFlag]: boolean;
|
|
22
22
|
['max-retries']?: number;
|
|
23
23
|
['frames-per-lambda']?: number;
|
|
24
|
+
['concurrency']?: number;
|
|
24
25
|
['concurrency-per-lambda']?: number;
|
|
25
26
|
['out-name']: string | undefined;
|
|
26
27
|
['custom-role-arn']: string | undefined;
|
|
@@ -26,7 +26,7 @@ const progress_1 = require("./progress");
|
|
|
26
26
|
exports.RENDER_COMMAND = 'render';
|
|
27
27
|
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, } = client_1.BrowserSafeApis.options;
|
|
28
28
|
const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
30
30
|
const serveUrl = args[0];
|
|
31
31
|
if (!serveUrl) {
|
|
32
32
|
log_1.Log.error({ indent: false, logLevel }, 'No serve URL passed.');
|
|
@@ -187,10 +187,8 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
|
|
|
187
187
|
const privacy = (_d = args_1.parsedLambdaCli.privacy) !== null && _d !== void 0 ? _d : constants_1.DEFAULT_OUTPUT_PRIVACY;
|
|
188
188
|
(0, serverless_1.validatePrivacy)(privacy, true);
|
|
189
189
|
const framesPerLambda = (_e = args_1.parsedLambdaCli['frames-per-lambda']) !== null && _e !== void 0 ? _e : undefined;
|
|
190
|
-
(
|
|
191
|
-
|
|
192
|
-
durationInFrames: 1,
|
|
193
|
-
});
|
|
190
|
+
const concurrency = (_f = args_1.parsedLambdaCli['concurrency']) !== null && _f !== void 0 ? _f : undefined;
|
|
191
|
+
const concurrencyPerLambda = (_g = args_1.parsedLambdaCli['concurrency-per-lambda']) !== null && _g !== void 0 ? _g : 1;
|
|
194
192
|
const webhookCustomData = (0, get_webhook_custom_data_1.getWebhookCustomData)(logLevel);
|
|
195
193
|
const res = await lambda_client_1.LambdaClientInternals.internalRenderMediaOnLambdaRaw({
|
|
196
194
|
functionName,
|
|
@@ -207,16 +205,17 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
|
|
|
207
205
|
maxRetries,
|
|
208
206
|
composition,
|
|
209
207
|
framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null,
|
|
208
|
+
concurrency: concurrency !== null && concurrency !== void 0 ? concurrency : null,
|
|
210
209
|
privacy,
|
|
211
210
|
logLevel,
|
|
212
211
|
frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
|
|
213
|
-
outName: (
|
|
212
|
+
outName: (_h = args_1.parsedLambdaCli['out-name']) !== null && _h !== void 0 ? _h : null,
|
|
214
213
|
timeoutInMilliseconds,
|
|
215
214
|
chromiumOptions,
|
|
216
215
|
scale,
|
|
217
216
|
numberOfGifLoops,
|
|
218
217
|
everyNthFrame,
|
|
219
|
-
concurrencyPerLambda
|
|
218
|
+
concurrencyPerLambda,
|
|
220
219
|
muted,
|
|
221
220
|
overwrite,
|
|
222
221
|
audioBitrate,
|
|
@@ -228,12 +227,12 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
|
|
|
228
227
|
webhook: args_1.parsedLambdaCli.webhook
|
|
229
228
|
? {
|
|
230
229
|
url: args_1.parsedLambdaCli.webhook,
|
|
231
|
-
secret: (
|
|
230
|
+
secret: (_j = args_1.parsedLambdaCli['webhook-secret']) !== null && _j !== void 0 ? _j : null,
|
|
232
231
|
customData: webhookCustomData,
|
|
233
232
|
}
|
|
234
233
|
: null,
|
|
235
|
-
rendererFunctionName: (
|
|
236
|
-
forceBucketName: (
|
|
234
|
+
rendererFunctionName: (_k = args_1.parsedLambdaCli['renderer-function-name']) !== null && _k !== void 0 ? _k : null,
|
|
235
|
+
forceBucketName: (_l = args_1.parsedLambdaCli['force-bucket-name']) !== null && _l !== void 0 ? _l : null,
|
|
237
236
|
audioCodec: cli_1.CliInternals.parsedCli[client_1.BrowserSafeApis.options.audioCodecOption.cliFlag],
|
|
238
237
|
deleteAfter: deleteAfter !== null && deleteAfter !== void 0 ? deleteAfter : null,
|
|
239
238
|
colorSpace,
|
|
@@ -243,10 +242,10 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
|
|
|
243
242
|
x264Preset: x264Preset !== null && x264Preset !== void 0 ? x264Preset : null,
|
|
244
243
|
preferLossless,
|
|
245
244
|
indent: false,
|
|
246
|
-
forcePathStyle: (
|
|
245
|
+
forcePathStyle: (_m = args_1.parsedLambdaCli['force-path-style']) !== null && _m !== void 0 ? _m : false,
|
|
247
246
|
metadata: metadata !== null && metadata !== void 0 ? metadata : null,
|
|
248
|
-
apiKey: (
|
|
249
|
-
storageClass: (
|
|
247
|
+
apiKey: (_o = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.apiKeyOption.cliFlag]) !== null && _o !== void 0 ? _o : null,
|
|
248
|
+
storageClass: (_p = args_1.parsedLambdaCli['storage-class']) !== null && _p !== void 0 ? _p : null,
|
|
250
249
|
requestHandler: null,
|
|
251
250
|
});
|
|
252
251
|
const progressBar = cli_1.CliInternals.createOverwriteableCliOutput({
|
|
@@ -29,7 +29,7 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementatio
|
|
|
29
29
|
log_1.Log.error({ indent: false, logLevel }, 'No entry file passed.');
|
|
30
30
|
log_1.Log.info({ indent: false, logLevel }, 'Pass an additional argument specifying the entry file of your Remotion project:');
|
|
31
31
|
log_1.Log.info({ indent: false, logLevel });
|
|
32
|
-
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME}
|
|
32
|
+
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} lambda sites create <entry-file.ts>`);
|
|
33
33
|
(0, quit_1.quit)(1);
|
|
34
34
|
return;
|
|
35
35
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -8604,7 +8604,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
8604
8604
|
url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
|
|
8605
8605
|
},
|
|
8606
8606
|
name: "@remotion/lambda",
|
|
8607
|
-
version: "4.0.
|
|
8607
|
+
version: "4.0.322",
|
|
8608
8608
|
description: "Render Remotion videos on AWS Lambda",
|
|
8609
8609
|
main: "dist/index.js",
|
|
8610
8610
|
sideEffects: false,
|
|
@@ -11367,10 +11367,7 @@ import {
|
|
|
11367
11367
|
DEFAULT_MAX_RETRIES,
|
|
11368
11368
|
DEFAULT_OUTPUT_PRIVACY
|
|
11369
11369
|
} from "@remotion/lambda-client/constants";
|
|
11370
|
-
import {
|
|
11371
|
-
validateFramesPerFunction,
|
|
11372
|
-
validatePrivacy as validatePrivacy2
|
|
11373
|
-
} from "@remotion/serverless";
|
|
11370
|
+
import { validatePrivacy as validatePrivacy2 } from "@remotion/serverless";
|
|
11374
11371
|
|
|
11375
11372
|
// src/shared/sleep.ts
|
|
11376
11373
|
var sleep = (duration) => {
|
|
@@ -11782,10 +11779,8 @@ var renderCommand = async ({
|
|
|
11782
11779
|
const privacy = parsedLambdaCli.privacy ?? DEFAULT_OUTPUT_PRIVACY;
|
|
11783
11780
|
validatePrivacy2(privacy, true);
|
|
11784
11781
|
const framesPerLambda = parsedLambdaCli["frames-per-lambda"] ?? undefined;
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
durationInFrames: 1
|
|
11788
|
-
});
|
|
11782
|
+
const concurrency = parsedLambdaCli["concurrency"] ?? undefined;
|
|
11783
|
+
const concurrencyPerLambda = parsedLambdaCli["concurrency-per-lambda"] ?? 1;
|
|
11789
11784
|
const webhookCustomData = getWebhookCustomData(logLevel);
|
|
11790
11785
|
const res = await LambdaClientInternals19.internalRenderMediaOnLambdaRaw({
|
|
11791
11786
|
functionName,
|
|
@@ -11802,6 +11797,7 @@ var renderCommand = async ({
|
|
|
11802
11797
|
maxRetries,
|
|
11803
11798
|
composition,
|
|
11804
11799
|
framesPerLambda: framesPerLambda ?? null,
|
|
11800
|
+
concurrency: concurrency ?? null,
|
|
11805
11801
|
privacy,
|
|
11806
11802
|
logLevel,
|
|
11807
11803
|
frameRange: frameRange ?? null,
|
|
@@ -11811,7 +11807,7 @@ var renderCommand = async ({
|
|
|
11811
11807
|
scale,
|
|
11812
11808
|
numberOfGifLoops,
|
|
11813
11809
|
everyNthFrame,
|
|
11814
|
-
concurrencyPerLambda
|
|
11810
|
+
concurrencyPerLambda,
|
|
11815
11811
|
muted,
|
|
11816
11812
|
overwrite,
|
|
11817
11813
|
audioBitrate,
|
|
@@ -12097,7 +12093,7 @@ var sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation)
|
|
|
12097
12093
|
Log.error({ indent: false, logLevel }, "No entry file passed.");
|
|
12098
12094
|
Log.info({ indent: false, logLevel }, "Pass an additional argument specifying the entry file of your Remotion project:");
|
|
12099
12095
|
Log.info({ indent: false, logLevel });
|
|
12100
|
-
Log.info({ indent: false, logLevel }, `${BINARY_NAME10}
|
|
12096
|
+
Log.info({ indent: false, logLevel }, `${BINARY_NAME10} lambda sites create <entry-file.ts>`);
|
|
12101
12097
|
quit(1);
|
|
12102
12098
|
return;
|
|
12103
12099
|
}
|
|
@@ -12885,7 +12881,8 @@ AWS returned an error message "The security token included in the request is inv
|
|
|
12885
12881
|
// src/internals.ts
|
|
12886
12882
|
var LambdaInternals = {
|
|
12887
12883
|
executeCommand,
|
|
12888
|
-
internalDeploySite
|
|
12884
|
+
internalDeploySite,
|
|
12885
|
+
getLayers
|
|
12889
12886
|
};
|
|
12890
12887
|
|
|
12891
12888
|
// src/index.ts
|
package/dist/internals.d.ts
CHANGED
|
@@ -65,5 +65,9 @@ export declare const LambdaInternals: {
|
|
|
65
65
|
untouchedFiles: number;
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
|
+
getLayers: ({ option, region, }: {
|
|
69
|
+
option: import("@remotion/lambda-client").RuntimePreference;
|
|
70
|
+
region: import("@remotion/lambda-client").AwsRegion;
|
|
71
|
+
}) => import("./shared/hosted-layers").AwsLayer[];
|
|
68
72
|
};
|
|
69
73
|
export type { OverallRenderProgress as _InternalOverallRenderProgress } from '@remotion/serverless';
|
package/dist/internals.js
CHANGED
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LambdaInternals = void 0;
|
|
4
4
|
const deploy_site_1 = require("./api/deploy-site");
|
|
5
5
|
const index_1 = require("./cli/index");
|
|
6
|
+
const get_layers_1 = require("./shared/get-layers");
|
|
6
7
|
exports.LambdaInternals = {
|
|
7
8
|
executeCommand: index_1.executeCommand,
|
|
8
9
|
internalDeploySite: deploy_site_1.internalDeploySite,
|
|
10
|
+
getLayers: get_layers_1.getLayers,
|
|
9
11
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/lambda",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.322",
|
|
7
7
|
"description": "Render Remotion videos on AWS Lambda",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@aws-sdk/lib-storage": "3.787.0",
|
|
22
22
|
"@smithy/abort-controller": "4.0.1",
|
|
23
23
|
"zod": "3.22.3",
|
|
24
|
-
"@remotion/bundler": "4.0.
|
|
25
|
-
"@remotion/
|
|
26
|
-
"@remotion/
|
|
27
|
-
"@remotion/
|
|
28
|
-
"remotion": "4.0.
|
|
29
|
-
"@remotion/
|
|
30
|
-
"@remotion/
|
|
24
|
+
"@remotion/bundler": "4.0.322",
|
|
25
|
+
"@remotion/serverless": "4.0.322",
|
|
26
|
+
"@remotion/streaming": "4.0.322",
|
|
27
|
+
"@remotion/renderer": "4.0.322",
|
|
28
|
+
"remotion": "4.0.322",
|
|
29
|
+
"@remotion/lambda-client": "4.0.322",
|
|
30
|
+
"@remotion/cli": "4.0.322"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/express": "^5.0.0",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"next": "15.2.4",
|
|
41
41
|
"pureimage": "0.4.13",
|
|
42
42
|
"zip-lib": "^0.7.2",
|
|
43
|
-
"@remotion/bundler": "4.0.
|
|
44
|
-
"@remotion/
|
|
45
|
-
"@remotion/
|
|
43
|
+
"@remotion/bundler": "4.0.322",
|
|
44
|
+
"@remotion/eslint-config-internal": "4.0.322",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.322"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@remotion/bundler": "4.0.
|
|
48
|
+
"@remotion/bundler": "4.0.322"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|