@remotion/lambda 4.0.351 → 4.0.353

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.
@@ -24,7 +24,7 @@ const quit_1 = require("../../helpers/quit");
24
24
  const log_1 = require("../../log");
25
25
  const progress_1 = require("./progress");
26
26
  exports.RENDER_COMMAND = 'render';
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;
27
+ const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
28
28
  const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
29
29
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
30
30
  const serveUrl = args[0];
@@ -50,6 +50,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
50
50
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
51
51
  commandLine: cli_1.CliInternals.parsedCli,
52
52
  }).value;
53
+ const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
54
+ commandLine: cli_1.CliInternals.parsedCli,
55
+ }).value;
53
56
  const offthreadVideoThreads = offthreadVideoThreadsOption.getValue({
54
57
  commandLine: cli_1.CliInternals.parsedCli,
55
58
  }).value;
@@ -163,6 +166,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
163
166
  quiet: cli_1.CliInternals.quietFlagProvided(),
164
167
  }),
165
168
  chromeMode: 'headless-shell',
169
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes,
166
170
  });
167
171
  composition = compositionId;
168
172
  }
@@ -238,6 +242,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
238
242
  colorSpace,
239
243
  downloadBehavior: { type: 'play-in-browser' },
240
244
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
245
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
241
246
  offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
242
247
  x264Preset: x264Preset !== null && x264Preset !== void 0 ? x264Preset : null,
243
248
  preferLossless,
@@ -21,7 +21,7 @@ const find_function_name_1 = require("../helpers/find-function-name");
21
21
  const quit_1 = require("../helpers/quit");
22
22
  const log_1 = require("../log");
23
23
  const progress_1 = require("./render/progress");
24
- const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, } = client_1.BrowserSafeApis.options;
24
+ const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
25
25
  const { parsedCli, determineFinalStillImageFormat, chalk, getCliOptions, formatBytes, getCompositionWithDimensionOverride, } = cli_1.CliInternals;
26
26
  exports.STILL_COMMAND = 'still';
27
27
  const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
@@ -68,6 +68,9 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
68
68
  const binariesDirectory = binariesDirectoryOption.getValue({
69
69
  commandLine: parsedCli,
70
70
  }).value;
71
+ const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
72
+ commandLine: parsedCli,
73
+ }).value;
71
74
  if (!composition) {
72
75
  log_1.Log.info({ indent: false, logLevel }, 'No compositions passed. Fetching compositions...');
73
76
  lambda_client_1.LambdaClientInternals.validateServeUrl(serveUrl);
@@ -115,6 +118,7 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
115
118
  quiet: cli_1.CliInternals.quietFlagProvided(),
116
119
  }),
117
120
  chromeMode: 'headless-shell',
121
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes,
118
122
  });
119
123
  composition = compositionId;
120
124
  }
@@ -183,6 +187,7 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
183
187
  offthreadVideoCacheSizeInBytes,
184
188
  offthreadVideoThreads: null,
185
189
  requestHandler: null,
190
+ mediaCacheSizeInBytes,
186
191
  });
187
192
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Render ID: ${cli_1.CliInternals.makeHyperlink({ text: res.renderId, fallback: res.renderId, url: lambda_client_1.LambdaClientInternals.getS3RenderUrl({ bucketName: res.bucketName, renderId: res.renderId, region: (0, get_aws_region_1.getAwsRegion)() }) })}`));
188
193
  log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray(`Bucket: ${cli_1.CliInternals.makeHyperlink({ text: res.bucketName, fallback: res.bucketName, url: `https://${(0, get_aws_region_1.getAwsRegion)()}.console.aws.amazon.com/s3/buckets/${res.bucketName}/?region=${(0, get_aws_region_1.getAwsRegion)()}` })}`));
@@ -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.351",
8607
+ version: "4.0.353",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
@@ -11597,7 +11597,8 @@ var {
11597
11597
  overwriteOption,
11598
11598
  binariesDirectoryOption,
11599
11599
  preferLosslessOption,
11600
- metadataOption
11600
+ metadataOption,
11601
+ mediaCacheSizeInBytesOption
11601
11602
  } = BrowserSafeApis3.options;
11602
11603
  var renderCommand = async ({
11603
11604
  args,
@@ -11641,6 +11642,9 @@ var renderCommand = async ({
11641
11642
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
11642
11643
  commandLine: CliInternals14.parsedCli
11643
11644
  }).value;
11645
+ const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
11646
+ commandLine: CliInternals14.parsedCli
11647
+ }).value;
11644
11648
  const offthreadVideoThreads = offthreadVideoThreadsOption.getValue({
11645
11649
  commandLine: CliInternals14.parsedCli
11646
11650
  }).value;
@@ -11754,7 +11758,8 @@ var renderCommand = async ({
11754
11758
  logLevel,
11755
11759
  quiet: CliInternals14.quietFlagProvided()
11756
11760
  }),
11757
- chromeMode: "headless-shell"
11761
+ chromeMode: "headless-shell",
11762
+ mediaCacheSizeInBytes
11758
11763
  });
11759
11764
  composition = compositionId;
11760
11765
  }
@@ -11828,6 +11833,7 @@ var renderCommand = async ({
11828
11833
  colorSpace,
11829
11834
  downloadBehavior: { type: "play-in-browser" },
11830
11835
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes ?? null,
11836
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes ?? null,
11831
11837
  offthreadVideoThreads: offthreadVideoThreads ?? null,
11832
11838
  x264Preset: x264Preset ?? null,
11833
11839
  preferLossless,
@@ -12454,7 +12460,8 @@ var {
12454
12460
  glOption: glOption3,
12455
12461
  headlessOption: headlessOption3,
12456
12462
  delayRenderTimeoutInMillisecondsOption: delayRenderTimeoutInMillisecondsOption3,
12457
- binariesDirectoryOption: binariesDirectoryOption2
12463
+ binariesDirectoryOption: binariesDirectoryOption2,
12464
+ mediaCacheSizeInBytesOption: mediaCacheSizeInBytesOption2
12458
12465
  } = BrowserSafeApis5.options;
12459
12466
  var {
12460
12467
  parsedCli,
@@ -12523,6 +12530,9 @@ var stillCommand = async ({
12523
12530
  const binariesDirectory = binariesDirectoryOption2.getValue({
12524
12531
  commandLine: parsedCli
12525
12532
  }).value;
12533
+ const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption2.getValue({
12534
+ commandLine: parsedCli
12535
+ }).value;
12526
12536
  if (!composition) {
12527
12537
  Log.info({ indent: false, logLevel }, "No compositions passed. Fetching compositions...");
12528
12538
  LambdaClientInternals20.validateServeUrl(serveUrl);
@@ -12570,7 +12580,8 @@ var stillCommand = async ({
12570
12580
  logLevel,
12571
12581
  quiet: CliInternals21.quietFlagProvided()
12572
12582
  }),
12573
- chromeMode: "headless-shell"
12583
+ chromeMode: "headless-shell",
12584
+ mediaCacheSizeInBytes
12574
12585
  });
12575
12586
  composition = compositionId;
12576
12587
  }
@@ -12638,7 +12649,8 @@ var stillCommand = async ({
12638
12649
  indent: false,
12639
12650
  offthreadVideoCacheSizeInBytes,
12640
12651
  offthreadVideoThreads: null,
12641
- requestHandler: null
12652
+ requestHandler: null,
12653
+ mediaCacheSizeInBytes
12642
12654
  });
12643
12655
  Log.info({ indent: false, logLevel }, CliInternals21.chalk.gray(`Render ID: ${CliInternals21.makeHyperlink({ text: res.renderId, fallback: res.renderId, url: LambdaClientInternals20.getS3RenderUrl({ bucketName: res.bucketName, renderId: res.renderId, region: getAwsRegion() }) })}`));
12644
12656
  Log.info({ indent: false, logLevel }, CliInternals21.chalk.gray(`Bucket: ${CliInternals21.makeHyperlink({ text: res.bucketName, fallback: res.bucketName, url: `https://${getAwsRegion()}.console.aws.amazon.com/s3/buckets/${res.bucketName}/?region=${getAwsRegion()}` })}`));
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.351",
6
+ "version": "4.0.353",
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.351",
25
- "@remotion/cli": "4.0.351",
26
- "@remotion/lambda-client": "4.0.351",
27
- "@remotion/serverless": "4.0.351",
28
- "@remotion/renderer": "4.0.351",
29
- "remotion": "4.0.351",
30
- "@remotion/streaming": "4.0.351"
24
+ "@remotion/bundler": "4.0.353",
25
+ "@remotion/lambda-client": "4.0.353",
26
+ "@remotion/cli": "4.0.353",
27
+ "@remotion/serverless": "4.0.353",
28
+ "@remotion/renderer": "4.0.353",
29
+ "remotion": "4.0.353",
30
+ "@remotion/streaming": "4.0.353"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/express": "^5.0.0",
@@ -40,12 +40,12 @@
40
40
  "next": "15.4.7",
41
41
  "pureimage": "0.4.13",
42
42
  "zip-lib": "^0.7.2",
43
- "@remotion/bundler": "4.0.351",
44
- "@remotion/compositor-linux-arm64-gnu": "4.0.351",
45
- "@remotion/eslint-config-internal": "4.0.351"
43
+ "@remotion/bundler": "4.0.353",
44
+ "@remotion/compositor-linux-arm64-gnu": "4.0.353",
45
+ "@remotion/eslint-config-internal": "4.0.353"
46
46
  },
47
47
  "peerDependencies": {
48
- "@remotion/bundler": "4.0.351"
48
+ "@remotion/bundler": "4.0.353"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
Binary file