@remotion/lambda 4.0.321 → 4.0.323

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.
@@ -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
- (0, serverless_1.validateFramesPerFunction)({
191
- framesPerFunction: framesPerLambda,
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: (_f = args_1.parsedLambdaCli['out-name']) !== null && _f !== void 0 ? _f : null,
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: (_g = args_1.parsedLambdaCli['concurrency-per-lambda']) !== null && _g !== void 0 ? _g : 1,
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: (_h = args_1.parsedLambdaCli['webhook-secret']) !== null && _h !== void 0 ? _h : null,
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: (_j = args_1.parsedLambdaCli['renderer-function-name']) !== null && _j !== void 0 ? _j : null,
236
- forceBucketName: (_k = args_1.parsedLambdaCli['force-bucket-name']) !== null && _k !== void 0 ? _k : null,
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: (_l = args_1.parsedLambdaCli['force-path-style']) !== null && _l !== void 0 ? _l : false,
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: (_m = args_1.parsedLambdaCli[client_1.BrowserSafeApis.options.apiKeyOption.cliFlag]) !== null && _m !== void 0 ? _m : null,
249
- storageClass: (_o = args_1.parsedLambdaCli['storage-class']) !== null && _o !== void 0 ? _o : null,
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} deploy <entry-file.ts>`);
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
  }
@@ -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.321",
8607
+ version: "4.0.323",
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
- validateFramesPerFunction({
11786
- framesPerFunction: framesPerLambda,
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: parsedLambdaCli["concurrency-per-lambda"] ?? 1,
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} deploy <entry-file.ts>`);
12096
+ Log.info({ indent: false, logLevel }, `${BINARY_NAME10} lambda sites create <entry-file.ts>`);
12101
12097
  quit(1);
12102
12098
  return;
12103
12099
  }
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.321",
6
+ "version": "4.0.323",
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/cli": "4.0.321",
25
- "@remotion/bundler": "4.0.321",
26
- "@remotion/renderer": "4.0.321",
27
- "@remotion/lambda-client": "4.0.321",
28
- "@remotion/streaming": "4.0.321",
29
- "@remotion/serverless": "4.0.321",
30
- "remotion": "4.0.321"
24
+ "@remotion/cli": "4.0.323",
25
+ "@remotion/renderer": "4.0.323",
26
+ "remotion": "4.0.323",
27
+ "@remotion/lambda-client": "4.0.323",
28
+ "@remotion/serverless": "4.0.323",
29
+ "@remotion/bundler": "4.0.323",
30
+ "@remotion/streaming": "4.0.323"
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.321",
44
- "@remotion/compositor-linux-arm64-gnu": "4.0.321",
45
- "@remotion/eslint-config-internal": "4.0.321"
43
+ "@remotion/bundler": "4.0.323",
44
+ "@remotion/eslint-config-internal": "4.0.323",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.323"
46
46
  },
47
47
  "peerDependencies": {
48
- "@remotion/bundler": "4.0.321"
48
+ "@remotion/bundler": "4.0.323"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
Binary file