@remotion/lambda 3.2.10 → 3.2.12-crf.6

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.
@@ -6,6 +6,7 @@ const get_functions_1 = require("../api/get-functions");
6
6
  const constants_1 = require("../shared/constants");
7
7
  const function_zip_path_1 = require("../shared/function-zip-path");
8
8
  const get_account_id_1 = require("../shared/get-account-id");
9
+ const lambda_version_string_1 = require("../shared/lambda-version-string");
9
10
  const validate_architecture_1 = require("../shared/validate-architecture");
10
11
  const validate_aws_region_1 = require("../shared/validate-aws-region");
11
12
  const validate_custom_role_arn_1 = require("../shared/validate-custom-role-arn");
@@ -37,7 +38,7 @@ const deployFunction = async (options) => {
37
38
  (0, validate_disk_size_in_mb_1.validateDiskSizeInMb)(diskSizeInMb);
38
39
  (0, validate_custom_role_arn_1.validateCustomRoleArn)(options.customRoleArn);
39
40
  const fnNameRender = [
40
- `${constants_1.RENDER_FN_PREFIX}${version_1.VERSION.replace(/\./g, '-')}`,
41
+ `${constants_1.RENDER_FN_PREFIX}${lambda_version_string_1.LAMBDA_VERSION_STRING}`,
41
42
  `mem${options.memorySizeInMb}mb`,
42
43
  `disk${diskSizeInMb}mb`,
43
44
  `${options.timeoutInSeconds}sec`,
@@ -1,6 +1,6 @@
1
1
  import type { AwsRegion } from '../../pricing/aws-regions';
2
2
  import type { LambdaCodec } from '../../shared/validate-lambda-codec';
3
- export declare const concatVideosS3: ({ bucket, expectedFiles, onProgress, numberOfFrames, renderId, region, codec, expectedBucketOwner, fps, numberOfGifLoops, }: {
3
+ export declare const concatVideosS3: ({ bucket, expectedFiles, onProgress, numberOfFrames, renderId, region, codec, expectedBucketOwner, fps, numberOfGifLoops, crf, }: {
4
4
  bucket: string;
5
5
  expectedFiles: number;
6
6
  onProgress: (frames: number, encodingStart: number) => void;
@@ -11,6 +11,7 @@ export declare const concatVideosS3: ({ bucket, expectedFiles, onProgress, numbe
11
11
  expectedBucketOwner: string;
12
12
  fps: number;
13
13
  numberOfGifLoops: number | null;
14
+ crf: number | null;
14
15
  }) => Promise<{
15
16
  outfile: string;
16
17
  cleanupChunksProm: Promise<void>;
@@ -112,7 +112,7 @@ const getAllFilesS3 = ({ bucket, expectedFiles, outdir, renderId, region, expect
112
112
  loop();
113
113
  });
114
114
  };
115
- const concatVideosS3 = async ({ bucket, expectedFiles, onProgress, numberOfFrames, renderId, region, codec, expectedBucketOwner, fps, numberOfGifLoops, }) => {
115
+ const concatVideosS3 = async ({ bucket, expectedFiles, onProgress, numberOfFrames, renderId, region, codec, expectedBucketOwner, fps, numberOfGifLoops, crf, }) => {
116
116
  var _a;
117
117
  const outdir = (0, path_1.join)(renderer_1.RenderInternals.tmpDir(constants_1.CONCAT_FOLDER_TOKEN), 'bucket');
118
118
  if ((0, fs_1.existsSync)(outdir)) {
@@ -143,6 +143,7 @@ const concatVideosS3 = async ({ bucket, expectedFiles, onProgress, numberOfFrame
143
143
  codec: codecForCombining,
144
144
  fps,
145
145
  numberOfGifLoops,
146
+ crf,
146
147
  });
147
148
  combine.end();
148
149
  const cleanupChunksProm = ((_a = fs_1.default.promises.rm) !== null && _a !== void 0 ? _a : fs_1.default.promises.rmdir)(outdir, {
@@ -62,7 +62,7 @@ const callFunctionWithRetry = async (payload, retries = 0) => {
62
62
  }
63
63
  };
64
64
  const innerLaunchHandler = async (params, options) => {
65
- var _a, _b;
65
+ var _a, _b, _c;
66
66
  if (params.type !== constants_1.LambdaRoutines.launch) {
67
67
  throw new Error('Expected launch type');
68
68
  }
@@ -253,6 +253,7 @@ const innerLaunchHandler = async (params, options) => {
253
253
  expectedBucketOwner: options.expectedBucketOwner,
254
254
  fps,
255
255
  numberOfGifLoops: params.numberOfGifLoops,
256
+ crf: (_c = params.crf) !== null && _c !== void 0 ? _c : null,
256
257
  });
257
258
  if (!encodingStop) {
258
259
  encodingStop = Date.now();
@@ -0,0 +1 @@
1
+ export declare const chunk: <T>(input: T[], size: number) => T[][];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chunk = void 0;
4
+ const chunk = (input, size) => {
5
+ return input.reduce((arr, item, idx) => {
6
+ return idx % size === 0
7
+ ? [...arr, [item]]
8
+ : [...arr.slice(0, -1), [...arr.slice(-1)[0], item]];
9
+ }, []);
10
+ };
11
+ exports.chunk = chunk;
@@ -0,0 +1 @@
1
+ export declare const LAMBDA_VERSION_STRING: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LAMBDA_VERSION_STRING = void 0;
4
+ const version_1 = require("remotion/version");
5
+ exports.LAMBDA_VERSION_STRING = version_1.VERSION.replace(/\./g, '-').replace(/\+/g, '-');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.2.10",
3
+ "version": "3.2.12-crf.6+134d2182f",
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.10",
36
- "@remotion/cli": "3.2.10",
37
- "@remotion/renderer": "3.2.10",
35
+ "@remotion/bundler": "3.2.12-crf.6+134d2182f",
36
+ "@remotion/cli": "3.2.12-crf.6+134d2182f",
37
+ "@remotion/renderer": "3.2.12-crf.6+134d2182f",
38
38
  "aws-policies": "^1.0.1",
39
39
  "mime-types": "2.1.34",
40
- "remotion": "3.2.10"
40
+ "remotion": "3.2.12-crf.6+134d2182f"
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": "66ad527dc06a14b7d6d5aab8ff8e736e67db8154"
65
+ "gitHead": "134d2182f5a94143835795bfcb2fb42476358c42"
66
66
  }
Binary file