@remotion/lambda 3.0.0-lambda.143 → 3.0.0-lambda.151
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/.prettierrc.js +15 -0
- package/dist/admin/replicate-binaries.d.ts +2 -0
- package/dist/admin/replicate-binaries.d.ts.map +1 -0
- package/dist/admin/replicate-binaries.js +50 -0
- package/dist/admin/replicate-binaries.js.map +1 -0
- package/dist/api/bucket-exists.d.ts +1 -1
- package/dist/api/bucket-exists.d.ts.map +1 -1
- package/dist/api/bundle-lambda.d.ts +2 -0
- package/dist/api/bundle-lambda.d.ts.map +1 -0
- package/dist/api/bundle-lambda.js +34 -0
- package/dist/api/bundle-lambda.js.map +1 -0
- package/dist/api/bundle-remotion.d.ts +6 -0
- package/dist/api/bundle-remotion.d.ts.map +1 -0
- package/dist/api/bundle-remotion.js +12 -0
- package/dist/api/bundle-remotion.js.map +1 -0
- package/dist/api/create-bucket.d.ts +1 -1
- package/dist/api/create-bucket.d.ts.map +1 -1
- package/dist/api/create-function.d.ts +1 -1
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js.map +1 -1
- package/dist/api/delete-site.d.ts +1 -1
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/deploy-function.js +2 -2
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-lambda.d.ts +7 -0
- package/dist/api/deploy-lambda.d.ts.map +1 -0
- package/dist/api/deploy-lambda.js +48 -0
- package/dist/api/deploy-lambda.js.map +1 -0
- package/dist/api/deploy-project.d.ts +28 -0
- package/dist/api/deploy-project.d.ts.map +1 -0
- package/dist/api/deploy-project.js +58 -0
- package/dist/api/deploy-project.js.map +1 -0
- package/dist/api/download-video.d.ts +2 -0
- package/dist/api/download-video.d.ts.map +1 -1
- package/dist/api/download-video.js +14 -25
- package/dist/api/download-video.js.map +1 -1
- package/dist/api/enable-s3-website.d.ts +1 -1
- package/dist/api/enable-s3-website.d.ts.map +1 -1
- package/dist/api/ensure-lambda-binaries.d.ts +11 -0
- package/dist/api/ensure-lambda-binaries.d.ts.map +1 -0
- package/dist/api/ensure-lambda-binaries.js +60 -0
- package/dist/api/ensure-lambda-binaries.js.map +1 -0
- package/dist/api/get-deployed-lambdas.d.ts +10 -0
- package/dist/api/get-deployed-lambdas.d.ts.map +1 -0
- package/dist/api/get-deployed-lambdas.js +31 -0
- package/dist/api/get-deployed-lambdas.js.map +1 -0
- package/dist/api/get-function-version.d.ts +7 -0
- package/dist/api/get-function-version.d.ts.map +1 -0
- package/dist/api/get-function-version.js +27 -0
- package/dist/api/get-function-version.js.map +1 -0
- package/dist/api/mock-functions.d.ts +1 -1
- package/dist/api/mock-functions.d.ts.map +1 -1
- package/dist/api/upload-dir.d.ts +1 -1
- package/dist/api/upload-dir.d.ts.map +1 -1
- package/dist/benchmark.d.ts +2 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +30 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/build-render/index.js +126181 -0
- package/dist/chunked-upload.d.ts +2 -0
- package/dist/chunked-upload.d.ts.map +1 -0
- package/dist/chunked-upload.js +34 -0
- package/dist/chunked-upload.js.map +1 -0
- package/dist/cli/cleanup.d.ts +3 -1
- package/dist/cli/cleanup.d.ts.map +1 -1
- package/dist/cli/cleanup.js +74 -0
- package/dist/cli/cleanup.js.map +1 -1
- package/dist/cli/commands/render/progress.d.ts +7 -3
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +9 -10
- package/dist/cli/commands/render/progress.js.map +1 -1
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +22 -8
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/render.d.ts +3 -0
- package/dist/cli/commands/render.d.ts.map +1 -0
- package/dist/cli/commands/render.js +75 -0
- package/dist/cli/commands/render.js.map +1 -0
- package/dist/cli/commands/sites/upload.d.ts +3 -0
- package/dist/cli/commands/sites/upload.d.ts.map +1 -0
- package/dist/cli/commands/sites/upload.js +111 -0
- package/dist/cli/commands/sites/upload.js.map +1 -0
- package/dist/cli/deploy.d.ts +3 -0
- package/dist/cli/deploy.d.ts.map +1 -0
- package/dist/cli/deploy.js +13 -0
- package/dist/cli/deploy.js.map +1 -0
- package/dist/cli/get-aws-region.js +2 -2
- package/dist/cli/get-aws-region.js.map +1 -1
- package/dist/cli/policies.d.ts +3 -0
- package/dist/cli/policies.d.ts.map +1 -0
- package/dist/cli/policies.js +59 -0
- package/dist/cli/policies.js.map +1 -0
- package/dist/cli/render.d.ts +3 -0
- package/dist/cli/render.d.ts.map +1 -0
- package/dist/cli/render.js +96 -0
- package/dist/cli/render.js.map +1 -0
- package/dist/cli/upload.d.ts +3 -0
- package/dist/cli/upload.d.ts.map +1 -0
- package/dist/cli/upload.js +112 -0
- package/dist/cli/upload.js.map +1 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +1 -4
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/optimize-profile.d.ts +2 -8
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +1 -4
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +1 -4
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/write-profile.d.ts +8 -0
- package/dist/functions/chunk-optimization/write-profile.d.ts.map +1 -0
- package/dist/functions/chunk-optimization/write-profile.js +18 -0
- package/dist/functions/chunk-optimization/write-profile.js.map +1 -0
- package/dist/functions/get-progress.d.ts +27 -0
- package/dist/functions/get-progress.d.ts.map +1 -0
- package/dist/functions/get-progress.js +161 -0
- package/dist/functions/get-progress.js.map +1 -0
- package/dist/functions/helpers/calculate-chunk-times.js +5 -5
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.d.ts.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.js +1 -0
- package/dist/functions/helpers/clean-tmpdir.js.map +1 -1
- package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
- package/dist/functions/helpers/concat-videos.js +3 -5
- package/dist/functions/helpers/concat-videos.js.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +1 -1
- package/dist/functions/helpers/create-post-render-data.js.map +1 -1
- package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
- package/dist/functions/helpers/expected-out-name.js +2 -1
- package/dist/functions/helpers/expected-out-name.js.map +1 -1
- package/dist/functions/helpers/get-browser-instance.d.ts +2 -2
- package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
- package/dist/functions/helpers/get-browser-instance.js +1 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-current-region.js +2 -2
- package/dist/functions/helpers/get-current-region.js.map +1 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +1 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +3 -2
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -1
- package/dist/functions/helpers/read-with-progress.d.ts +15 -0
- package/dist/functions/helpers/read-with-progress.d.ts.map +1 -0
- package/dist/functions/helpers/read-with-progress.js +27 -0
- package/dist/functions/helpers/read-with-progress.js.map +1 -0
- package/dist/functions/helpers/validate-composition.d.ts +2 -2
- package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
- package/dist/functions/helpers/validate-composition.js +1 -1
- package/dist/functions/helpers/validate-composition.js.map +1 -1
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +2 -1
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +14 -47
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +0 -1
- package/dist/functions/still.js.map +1 -1
- package/dist/rendering/chunked-concatenation.d.ts +3 -0
- package/dist/rendering/chunked-concatenation.d.ts.map +1 -0
- package/dist/rendering/chunked-concatenation.js +38 -0
- package/dist/rendering/chunked-concatenation.js.map +1 -0
- package/dist/rendering/create-named-pipe.d.ts +8 -0
- package/dist/rendering/create-named-pipe.d.ts.map +1 -0
- package/dist/rendering/create-named-pipe.js +41 -0
- package/dist/rendering/create-named-pipe.js.map +1 -0
- package/dist/rendering/mount-tmp-fs.d.ts +2 -0
- package/dist/rendering/mount-tmp-fs.d.ts.map +1 -0
- package/dist/rendering/mount-tmp-fs.js +19 -0
- package/dist/rendering/mount-tmp-fs.js.map +1 -0
- package/dist/scripts2.d.ts +1 -0
- package/dist/scripts2.d.ts.map +1 -0
- package/dist/scripts2.js +2 -0
- package/dist/scripts2.js.map +1 -0
- package/dist/shared/constants.d.ts +3 -5
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +4 -6
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/download-with-progress.d.ts +1 -0
- package/dist/shared/download-with-progress.d.ts.map +1 -0
- package/dist/shared/download-with-progress.js +2 -0
- package/dist/shared/download-with-progress.js.map +1 -0
- package/dist/shared/parse-chunk-timing-key.d.ts +7 -0
- package/dist/shared/parse-chunk-timing-key.d.ts.map +1 -0
- package/dist/shared/parse-chunk-timing-key.js +17 -0
- package/dist/shared/parse-chunk-timing-key.js.map +1 -0
- package/dist/shared/parse-lambda-timings-key.d.ts +0 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
- package/dist/shared/parse-lambda-timings-key.js +1 -2
- package/dist/shared/parse-lambda-timings-key.js.map +1 -1
- package/package.json +12 -11
- package/remotionlambda.zip +0 -0
- package/dist/cli/helpers/__mocks__.d.ts +0 -2
- package/dist/cli/helpers/__mocks__.d.ts.map +0 -1
- package/dist/cli/helpers/__mocks__.js +0 -8
- package/dist/cli/helpers/__mocks__.js.map +0 -1
- package/dist/functions/helpers/upload-logs.d.ts +0 -1
- package/dist/functions/helpers/upload-logs.d.ts.map +0 -1
- package/dist/functions/helpers/upload-logs.js +0 -2
- package/dist/functions/helpers/upload-logs.js.map +0 -1
- package/dist/shared/normalize-serve-url.d.ts +0 -2
- package/dist/shared/normalize-serve-url.d.ts.map +0 -1
- package/dist/shared/normalize-serve-url.js +0 -20
- package/dist/shared/normalize-serve-url.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-deployed-lambdas.d.ts","sourceRoot":"","sources":["../../src/api/get-deployed-lambdas.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAMjD,eAAO,MAAM,kBAAkB,YAAmB;IAAC,MAAM,EAAE,SAAS,CAAA;CAAC;;;;;IA0BpE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDeployedLambdas = void 0;
|
|
4
|
+
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
5
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
6
|
+
const constants_1 = require("../shared/constants");
|
|
7
|
+
const get_function_version_1 = require("./get-function-version");
|
|
8
|
+
// TODO: Rename to getDeployedFunctions
|
|
9
|
+
const getDeployedLambdas = async (options) => {
|
|
10
|
+
const lambdas = await aws_clients_1.getLambdaClient(options.region).send(new client_lambda_1.ListFunctionsCommand({}));
|
|
11
|
+
const remotionLambdas = (lambdas.Functions || []).filter((f) => {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = f.FunctionName) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.RENDER_FN_PREFIX);
|
|
14
|
+
});
|
|
15
|
+
const configs = await Promise.all(remotionLambdas.map((fn) => {
|
|
16
|
+
return get_function_version_1.getFunctionVersion({
|
|
17
|
+
functionName: fn.FunctionName,
|
|
18
|
+
region: options.region,
|
|
19
|
+
});
|
|
20
|
+
}));
|
|
21
|
+
return remotionLambdas.map((lambda, i) => {
|
|
22
|
+
return {
|
|
23
|
+
name: lambda.FunctionName,
|
|
24
|
+
version: configs[i],
|
|
25
|
+
memory: lambda.MemorySize,
|
|
26
|
+
timeout: lambda.Timeout,
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.getDeployedLambdas = getDeployedLambdas;
|
|
31
|
+
//# sourceMappingURL=get-deployed-lambdas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-deployed-lambdas.js","sourceRoot":"","sources":["../../src/api/get-deployed-lambdas.ts"],"names":[],"mappings":";;;AAAA,0DAA4D;AAE5D,uDAAsD;AACtD,mDAAqD;AACrD,iEAA0D;AAE1D,uCAAuC;AAChC,MAAM,kBAAkB,GAAG,KAAK,EAAE,OAA4B,EAAE,EAAE;IACxE,MAAM,OAAO,GAAG,MAAM,6BAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CACzD,IAAI,oCAAoB,CAAC,EAAE,CAAC,CAC5B,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;;QAC9D,OAAO,MAAA,CAAC,CAAC,YAAY,0CAAE,UAAU,CAAC,4BAAgB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAChC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QAC1B,OAAO,yCAAkB,CAAC;YACzB,YAAY,EAAE,EAAE,CAAC,YAAsB;YACvC,MAAM,EAAE,OAAO,CAAC,MAAM;SACtB,CAAC,CAAC;IACJ,CAAC,CAAC,CACF,CAAC;IAEF,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,OAAO;YACN,IAAI,EAAE,MAAM,CAAC,YAAsB;YACnC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;YACnB,MAAM,EAAE,MAAM,CAAC,UAAoB;YACnC,OAAO,EAAE,MAAM,CAAC,OAAiB;SACjC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,kBAAkB,sBA0B7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
import { LambdaVersions } from '../shared/constants';
|
|
3
|
+
export declare const getFunctionVersion: ({ functionName, region, }: {
|
|
4
|
+
functionName: string;
|
|
5
|
+
region: AwsRegion;
|
|
6
|
+
}) => Promise<LambdaVersions>;
|
|
7
|
+
//# sourceMappingURL=get-function-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-function-version.d.ts","sourceRoot":"","sources":["../../src/api/get-function-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAGN,cAAc,EACd,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,kBAAkB;kBAIhB,MAAM;YACZ,SAAS;MACd,QAAQ,cAAc,CAmBzB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFunctionVersion = void 0;
|
|
4
|
+
const call_lambda_1 = require("../shared/call-lambda");
|
|
5
|
+
const constants_1 = require("../shared/constants");
|
|
6
|
+
const getFunctionVersion = async ({ functionName, region, }) => {
|
|
7
|
+
try {
|
|
8
|
+
const result = await call_lambda_1.callLambda({
|
|
9
|
+
functionName,
|
|
10
|
+
payload: {
|
|
11
|
+
type: constants_1.LambdaRoutines.info,
|
|
12
|
+
},
|
|
13
|
+
region,
|
|
14
|
+
type: constants_1.LambdaRoutines.info,
|
|
15
|
+
});
|
|
16
|
+
return result.version;
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
// Prerelease versions had no info command
|
|
20
|
+
if (err.message.includes(constants_1.COMMAND_NOT_FOUND)) {
|
|
21
|
+
return 'n/a';
|
|
22
|
+
}
|
|
23
|
+
throw err;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.getFunctionVersion = getFunctionVersion;
|
|
27
|
+
//# sourceMappingURL=get-function-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-function-version.js","sourceRoot":"","sources":["../../src/api/get-function-version.ts"],"names":[],"mappings":";;;AACA,uDAAiD;AACjD,mDAI6B;AAEtB,MAAM,kBAAkB,GAAG,KAAK,EAAE,EACxC,YAAY,EACZ,MAAM,GAIN,EAA2B,EAAE;IAC7B,IAAI;QACH,MAAM,MAAM,GAAG,MAAM,wBAAU,CAAC;YAC/B,YAAY;YACZ,OAAO,EAAE;gBACR,IAAI,EAAE,0BAAc,CAAC,IAAI;aACzB;YACD,MAAM;YACN,IAAI,EAAE,0BAAc,CAAC,IAAI;SACzB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,OAAO,CAAC;KACtB;IAAC,OAAO,GAAG,EAAE;QACb,0CAA0C;QAC1C,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,6BAAiB,CAAC,EAAE;YAC5C,OAAO,KAAK,CAAC;SACb;QAED,MAAM,GAAG,CAAC;KACV;AACF,CAAC,CAAC;AAzBW,QAAA,kBAAkB,sBAyB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-functions.d.ts","sourceRoot":"","sources":["../../src/api/mock-functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"mock-functions.d.ts","sourceRoot":"","sources":["../../src/api/mock-functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,eAAO,IAAI,kBAAkB,EAAE,CAAC,YAAY,GAAG;IAC9C,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;CACxB,CAAC,EAAO,CAAC;AAEV,eAAO,MAAM,WAAW,OAAQ,YAAY,UAAU,SAAS,SAM9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,UAAU,MAAM,SAI9D,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,MAAM,UAAU,MAAM;YAlBhD,SAAS;aACR,cAAc;cAqBvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,WACvB,MAAM,WACL,cAAc,GAAG,IAAI;YA1BtB,SAAS;aACR,cAAc;IA8BvB,CAAC;AAEF,eAAO,MAAM,YAAY,YAExB,CAAC;AAEF,eAAO,MAAM,0BAA0B,iBAAkB,MAAM,SAM9D,CAAC"}
|
package/dist/api/upload-dir.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-dir.d.ts","sourceRoot":"","sources":["../../src/api/upload-dir.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"upload-dir.d.ts","sourceRoot":"","sources":["../../src/api/upload-dir.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAQpC,oBAAY,iBAAiB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,QAAQ,EAInD,CAAC;AAEF,eAAO,MAAM,SAAS;YAQb,MAAM;YACN,SAAS;SACZ,MAAM;YACH,MAAM;2BACS,iBAAiB,KAAK,IAAI;aACxC,OAAO;mBA2EhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benchmark.d.ts","sourceRoot":"","sources":["../src/benchmark.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,qBAuBpB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.benchmark = void 0;
|
|
4
|
+
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
5
|
+
const cli_1 = require("@remotion/cli");
|
|
6
|
+
const aws_clients_1 = require("./shared/aws-clients");
|
|
7
|
+
const toTest = [12, 15, 20, 100];
|
|
8
|
+
const runs = [1, 2, 3, 4, 5];
|
|
9
|
+
exports.benchmark = cli_1.CliInternals.xns(async () => {
|
|
10
|
+
for (const chunkSize of toTest) {
|
|
11
|
+
for (const run of runs) {
|
|
12
|
+
const id = `invoking with ${chunkSize},run ${run}/${runs.length}`;
|
|
13
|
+
console.time(id);
|
|
14
|
+
const res = await aws_clients_1.getLambdaClient('eu-central-1').send(new client_lambda_1.InvokeCommand({
|
|
15
|
+
FunctionName: 'remotion-render-test-5455111895707452',
|
|
16
|
+
// @ts-expect-error
|
|
17
|
+
Payload: JSON.stringify({
|
|
18
|
+
serveUrl: 'http://remotion-bucket-0.0469902062423555.s3.eu-central-1.amazonaws.com',
|
|
19
|
+
type: 'launch',
|
|
20
|
+
composition: 'my-video',
|
|
21
|
+
chunkSize,
|
|
22
|
+
}),
|
|
23
|
+
}));
|
|
24
|
+
console.timeEnd(id);
|
|
25
|
+
const string = Buffer.from(res.Payload).toString();
|
|
26
|
+
console.log(string);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=benchmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../src/benchmark.ts"],"names":[],"mappings":";;;AAAA,0DAAqD;AACrD,uCAA2C;AAC3C,sDAAqD;AAErD,MAAM,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AACjC,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEhB,QAAA,SAAS,GAAG,kBAAY,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;IACpD,KAAK,MAAM,SAAS,IAAI,MAAM,EAAE;QAC/B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACvB,MAAM,EAAE,GAAG,kBAAkB,SAAS,QAAQ,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACnE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjB,MAAM,GAAG,GAAG,MAAM,6BAAe,CAAC,cAAc,CAAC,CAAC,IAAI,CACrD,IAAI,6BAAa,CAAC;gBACjB,YAAY,EAAE,uCAAuC;gBACrD,mBAAmB;gBACnB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;oBACvB,QAAQ,EACP,yEAAyE;oBAC1E,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,UAAU;oBACvB,SAAS;iBACT,CAAC;aACF,CAAC,CACF,CAAC;YACF,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACpB,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC;YACjE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACpB;KACD;AACF,CAAC,CAAC,CAAC"}
|