@remotion/lambda 3.0.25 → 3.0.26
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/api/render-media-on-lambda.d.ts +2 -1
- package/dist/api/render-media-on-lambda.js +3 -1
- package/dist/cli/commands/render/progress.d.ts +1 -1
- package/dist/cli/commands/render/progress.js +11 -3
- package/dist/cli/commands/render/render.js +1 -2
- package/dist/cli/commands/sites/ls.js +1 -2
- package/dist/cli/commands/sites/rm.js +2 -3
- package/dist/cli/commands/sites/rmall.js +2 -3
- package/dist/cli/commands/still.js +1 -2
- package/dist/cli/helpers/progress-bar.js +1 -2
- package/dist/functions/helpers/concat-videos.d.ts +2 -2
- package/dist/functions/helpers/read-with-progress.d.ts +3 -2
- package/dist/functions/helpers/read-with-progress.js +6 -1
- package/dist/functions/launch.js +1 -1
- package/dist/shared/constants.d.ts +5 -4
- package/dist/shared/constants.js +1 -1
- package/dist/shared/validate-lambda-codec.d.ts +4 -0
- package/dist/shared/validate-lambda-codec.js +21 -0
- package/package.json +6 -6
- package/remotionlambda.zip +0 -0
|
@@ -2,13 +2,14 @@ import type { ChromiumOptions } from '@remotion/renderer';
|
|
|
2
2
|
import type { FrameRange, ImageFormat, LogLevel, PixelFormat, ProResProfile } from 'remotion';
|
|
3
3
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
4
4
|
import type { Privacy } from '../shared/constants';
|
|
5
|
+
import type { LambdaCodec } from '../shared/validate-lambda-codec';
|
|
5
6
|
export declare type RenderMediaOnLambdaInput = {
|
|
6
7
|
region: AwsRegion;
|
|
7
8
|
functionName: string;
|
|
8
9
|
serveUrl: string;
|
|
9
10
|
composition: string;
|
|
10
11
|
inputProps: unknown;
|
|
11
|
-
codec:
|
|
12
|
+
codec: LambdaCodec;
|
|
12
13
|
imageFormat: ImageFormat;
|
|
13
14
|
crf?: number | undefined;
|
|
14
15
|
envVariables?: Record<string, string>;
|
|
@@ -6,6 +6,7 @@ const call_lambda_1 = require("../shared/call-lambda");
|
|
|
6
6
|
const constants_1 = require("../shared/constants");
|
|
7
7
|
const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
|
|
8
8
|
const validate_frames_per_lambda_1 = require("../shared/validate-frames-per-lambda");
|
|
9
|
+
const validate_lambda_codec_1 = require("../shared/validate-lambda-codec");
|
|
9
10
|
const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
10
11
|
/**
|
|
11
12
|
* @description Triggers a render on a lambda given a composition and a lambda function.
|
|
@@ -26,6 +27,7 @@ const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
|
26
27
|
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
27
28
|
*/
|
|
28
29
|
const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, logLevel, frameRange, outName, timeoutInMilliseconds, chromiumOptions, scale, }) => {
|
|
30
|
+
const actualCodec = (0, validate_lambda_codec_1.validateLambdaCodec)(codec);
|
|
29
31
|
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
30
32
|
(0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null);
|
|
31
33
|
const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
|
|
@@ -37,7 +39,7 @@ const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
37
39
|
composition,
|
|
38
40
|
serveUrl: realServeUrl,
|
|
39
41
|
inputProps,
|
|
40
|
-
codec,
|
|
42
|
+
codec: actualCodec,
|
|
41
43
|
imageFormat,
|
|
42
44
|
crf,
|
|
43
45
|
envVariables,
|
|
@@ -18,7 +18,7 @@ export declare type MultiRenderProgress = {
|
|
|
18
18
|
};
|
|
19
19
|
export declare const makeMultiProgressFromStatus: (status: RenderProgress) => MultiRenderProgress;
|
|
20
20
|
declare type DownloadedInfo = {
|
|
21
|
-
totalSize: number;
|
|
21
|
+
totalSize: number | null;
|
|
22
22
|
downloaded: number;
|
|
23
23
|
doneIn: number | null;
|
|
24
24
|
};
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makeProgressString = exports.makeMultiProgressFromStatus = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const remotion_1 = require("remotion");
|
|
6
|
-
const format_bytes_1 = require("../../helpers/format-bytes");
|
|
7
6
|
const makeInvokeProgress = (invokeProgress, totalSteps, retriesInfo) => {
|
|
8
7
|
const { lambdasInvoked, totalLambdas, doneIn } = invokeProgress;
|
|
9
8
|
const progress = doneIn
|
|
@@ -78,10 +77,19 @@ const makeDownloadProgress = (downloadInfo, totalSteps) => {
|
|
|
78
77
|
return [
|
|
79
78
|
'💾',
|
|
80
79
|
`(5/${totalSteps})`,
|
|
81
|
-
|
|
80
|
+
downloadInfo.totalSize === null
|
|
81
|
+
? cli_1.CliInternals.getFileSizeDownloadBar(downloadInfo.downloaded)
|
|
82
|
+
: cli_1.CliInternals.makeProgressBar(downloadInfo.downloaded / downloadInfo.totalSize),
|
|
82
83
|
`${downloadInfo.doneIn === null ? 'Downloading' : 'Downloaded'} video`,
|
|
83
84
|
downloadInfo.doneIn === null
|
|
84
|
-
?
|
|
85
|
+
? [
|
|
86
|
+
`${cli_1.CliInternals.formatBytes(downloadInfo.downloaded)}`,
|
|
87
|
+
downloadInfo.totalSize === null
|
|
88
|
+
? null
|
|
89
|
+
: `${cli_1.CliInternals.formatBytes(downloadInfo.totalSize)}`,
|
|
90
|
+
]
|
|
91
|
+
.filter(remotion_1.Internals.truthy)
|
|
92
|
+
.join('/')
|
|
85
93
|
: cli_1.CliInternals.chalk.gray(`${downloadInfo.doneIn}ms`),
|
|
86
94
|
].join(' ');
|
|
87
95
|
};
|
|
@@ -14,7 +14,6 @@ const validate_retries_1 = require("../../../shared/validate-retries");
|
|
|
14
14
|
const args_1 = require("../../args");
|
|
15
15
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
16
16
|
const find_function_name_1 = require("../../helpers/find-function-name");
|
|
17
|
-
const format_bytes_1 = require("../../helpers/format-bytes");
|
|
18
17
|
const get_cloudwatch_stream_url_1 = require("../../helpers/get-cloudwatch-stream-url");
|
|
19
18
|
const quit_1 = require("../../helpers/quit");
|
|
20
19
|
const log_1 = require("../../log");
|
|
@@ -151,7 +150,7 @@ const renderCommand = async (args) => {
|
|
|
151
150
|
}));
|
|
152
151
|
log_1.Log.info();
|
|
153
152
|
log_1.Log.info();
|
|
154
|
-
log_1.Log.info('Done!', outputPath,
|
|
153
|
+
log_1.Log.info('Done!', outputPath, cli_1.CliInternals.formatBytes(sizeInBytes));
|
|
155
154
|
}
|
|
156
155
|
else {
|
|
157
156
|
log_1.Log.info();
|
|
@@ -6,7 +6,6 @@ const log_1 = require("@remotion/cli/dist/log");
|
|
|
6
6
|
const get_sites_1 = require("../../../api/get-sites");
|
|
7
7
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
8
8
|
const date_string_1 = require("../../helpers/date-string");
|
|
9
|
-
const format_bytes_1 = require("../../helpers/format-bytes");
|
|
10
9
|
exports.SITES_LS_SUBCOMMAND = 'ls';
|
|
11
10
|
const COLS = [20, 30, 10, 15];
|
|
12
11
|
const logRow = (data) => {
|
|
@@ -40,7 +39,7 @@ const sitesLsSubcommand = async () => {
|
|
|
40
39
|
log_1.Log.info(logRow([
|
|
41
40
|
site.id,
|
|
42
41
|
site.bucketName,
|
|
43
|
-
|
|
42
|
+
cli_1.CliInternals.formatBytes(site.sizeInBytes),
|
|
44
43
|
site.lastModified ? (0, date_string_1.dateString)(new Date(site.lastModified)) : 'n/a',
|
|
45
44
|
]));
|
|
46
45
|
log_1.Log.info(site.serveUrl);
|
|
@@ -7,7 +7,6 @@ const get_buckets_1 = require("../../../api/get-buckets");
|
|
|
7
7
|
const get_sites_1 = require("../../../api/get-sites");
|
|
8
8
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
9
9
|
const confirm_1 = require("../../helpers/confirm");
|
|
10
|
-
const format_bytes_1 = require("../../helpers/format-bytes");
|
|
11
10
|
const quit_1 = require("../../helpers/quit");
|
|
12
11
|
const log_1 = require("../../log");
|
|
13
12
|
exports.SITES_RM_COMMAND = 'rm';
|
|
@@ -44,7 +43,7 @@ const sitesRmSubcommand = async (args) => {
|
|
|
44
43
|
return (0, quit_1.quit)(1);
|
|
45
44
|
}
|
|
46
45
|
await (0, confirm_1.confirmCli)({
|
|
47
|
-
delMessage: `Site ${site.id} in bucket ${site.bucketName} (${
|
|
46
|
+
delMessage: `Site ${site.id} in bucket ${site.bucketName} (${cli_1.CliInternals.formatBytes(site.sizeInBytes)}): Delete? (Y/n)`,
|
|
48
47
|
allowForceFlag: true,
|
|
49
48
|
});
|
|
50
49
|
const { totalSizeInBytes: totalSize } = await (0, delete_site_1.deleteSite)({
|
|
@@ -55,7 +54,7 @@ const sitesRmSubcommand = async (args) => {
|
|
|
55
54
|
log_1.Log.info(cli_1.CliInternals.chalk.gray(`Deleted ${itemName}`));
|
|
56
55
|
},
|
|
57
56
|
});
|
|
58
|
-
log_1.Log.info(`Deleted site ${siteName} and freed up ${
|
|
57
|
+
log_1.Log.info(`Deleted site ${siteName} and freed up ${cli_1.CliInternals.formatBytes(totalSize)}.`);
|
|
59
58
|
}
|
|
60
59
|
};
|
|
61
60
|
exports.sitesRmSubcommand = sitesRmSubcommand;
|
|
@@ -7,7 +7,6 @@ const get_buckets_1 = require("../../../api/get-buckets");
|
|
|
7
7
|
const get_sites_1 = require("../../../api/get-sites");
|
|
8
8
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
9
9
|
const confirm_1 = require("../../helpers/confirm");
|
|
10
|
-
const format_bytes_1 = require("../../helpers/format-bytes");
|
|
11
10
|
const quit_1 = require("../../helpers/quit");
|
|
12
11
|
const log_1 = require("../../log");
|
|
13
12
|
exports.SITES_RMALL_COMMAND = 'rmall';
|
|
@@ -31,7 +30,7 @@ const sitesRmallSubcommand = async () => {
|
|
|
31
30
|
}
|
|
32
31
|
for (const site of deployedSites.sites) {
|
|
33
32
|
await (0, confirm_1.confirmCli)({
|
|
34
|
-
delMessage: `Site ${site.id} in bucket ${site.bucketName} (${
|
|
33
|
+
delMessage: `Site ${site.id} in bucket ${site.bucketName} (${cli_1.CliInternals.formatBytes(site.sizeInBytes)}): Delete? (Y/n)`,
|
|
35
34
|
allowForceFlag: true,
|
|
36
35
|
});
|
|
37
36
|
const { totalSizeInBytes: totalSize } = await (0, delete_site_1.deleteSite)({
|
|
@@ -42,7 +41,7 @@ const sitesRmallSubcommand = async () => {
|
|
|
42
41
|
log_1.Log.info(cli_1.CliInternals.chalk.gray(`Deleted ${itemName}`));
|
|
43
42
|
},
|
|
44
43
|
});
|
|
45
|
-
log_1.Log.info(`Deleted site ${site.id} and freed up ${
|
|
44
|
+
log_1.Log.info(`Deleted site ${site.id} and freed up ${cli_1.CliInternals.formatBytes(totalSize)}.`);
|
|
46
45
|
}
|
|
47
46
|
};
|
|
48
47
|
exports.sitesRmallSubcommand = sitesRmallSubcommand;
|
|
@@ -11,7 +11,6 @@ const validate_retries_1 = require("../../shared/validate-retries");
|
|
|
11
11
|
const args_1 = require("../args");
|
|
12
12
|
const get_aws_region_1 = require("../get-aws-region");
|
|
13
13
|
const find_function_name_1 = require("../helpers/find-function-name");
|
|
14
|
-
const format_bytes_1 = require("../helpers/format-bytes");
|
|
15
14
|
const get_cloudwatch_stream_url_1 = require("../helpers/get-cloudwatch-stream-url");
|
|
16
15
|
const quit_1 = require("../helpers/quit");
|
|
17
16
|
const log_1 = require("../log");
|
|
@@ -78,7 +77,7 @@ const stillCommand = async (args) => {
|
|
|
78
77
|
region: (0, get_aws_region_1.getAwsRegion)(),
|
|
79
78
|
renderId: res.renderId,
|
|
80
79
|
});
|
|
81
|
-
log_1.Log.info('Done!', outputPath,
|
|
80
|
+
log_1.Log.info('Done!', outputPath, cli_1.CliInternals.formatBytes(sizeInBytes));
|
|
82
81
|
}
|
|
83
82
|
else {
|
|
84
83
|
log_1.Log.info(`Finished still!`);
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makeDeployProgressBar = exports.makeBucketProgress = exports.makeBundleProgress = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const remotion_1 = require("remotion");
|
|
6
|
-
const format_bytes_1 = require("./format-bytes");
|
|
7
6
|
const makeBundleProgress = ({ progress, doneIn }) => {
|
|
8
7
|
return [
|
|
9
8
|
'📦',
|
|
@@ -40,7 +39,7 @@ const makeDeployProgressBar = ({ sizeUploaded, totalSize, doneIn, }) => {
|
|
|
40
39
|
`${doneIn === null ? 'Uploading' : 'Uploaded'} to S3`,
|
|
41
40
|
doneIn === null
|
|
42
41
|
? typeof totalSize === 'number'
|
|
43
|
-
? `${
|
|
42
|
+
? `${cli_1.CliInternals.formatBytes(sizeUploaded)}/${cli_1.CliInternals.formatBytes(totalSize)}`
|
|
44
43
|
: ''
|
|
45
44
|
: cli_1.CliInternals.chalk.gray(`${doneIn}ms`),
|
|
46
45
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Codec } from 'remotion';
|
|
2
1
|
import type { AwsRegion } from '../../pricing/aws-regions';
|
|
2
|
+
import type { LambdaCodec } from '../../shared/validate-lambda-codec';
|
|
3
3
|
export declare const concatVideosS3: ({ bucket, expectedFiles, onProgress, numberOfFrames, renderId, region, codec, expectedBucketOwner, fps, }: {
|
|
4
4
|
bucket: string;
|
|
5
5
|
expectedFiles: number;
|
|
@@ -7,7 +7,7 @@ export declare const concatVideosS3: ({ bucket, expectedFiles, onProgress, numbe
|
|
|
7
7
|
numberOfFrames: number;
|
|
8
8
|
renderId: string;
|
|
9
9
|
region: AwsRegion;
|
|
10
|
-
codec:
|
|
10
|
+
codec: LambdaCodec;
|
|
11
11
|
expectedBucketOwner: string;
|
|
12
12
|
fps: number;
|
|
13
13
|
}) => Promise<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AwsRegion } from '../../pricing/aws-regions';
|
|
2
2
|
export declare type LambdaReadFileProgress = (progress: {
|
|
3
|
-
totalSize: number;
|
|
3
|
+
totalSize: number | null;
|
|
4
4
|
downloaded: number;
|
|
5
|
-
|
|
5
|
+
percent: number | null;
|
|
6
6
|
}) => unknown;
|
|
7
7
|
export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, }: {
|
|
8
8
|
bucketName: string;
|
|
@@ -13,4 +13,5 @@ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region,
|
|
|
13
13
|
onProgress: LambdaReadFileProgress;
|
|
14
14
|
}) => Promise<{
|
|
15
15
|
sizeInBytes: number;
|
|
16
|
+
to: string;
|
|
16
17
|
}>;
|
|
@@ -13,6 +13,11 @@ const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expecte
|
|
|
13
13
|
Key: key,
|
|
14
14
|
});
|
|
15
15
|
const presigned = await (0, s3_request_presigner_1.getSignedUrl)(client, command);
|
|
16
|
-
|
|
16
|
+
const { to, sizeInBytes } = await renderer_1.RenderInternals.downloadFile({
|
|
17
|
+
url: presigned,
|
|
18
|
+
onProgress,
|
|
19
|
+
to: () => outputPath,
|
|
20
|
+
});
|
|
21
|
+
return { sizeInBytes, to };
|
|
17
22
|
};
|
|
18
23
|
exports.lambdaDownloadFileWithProgress = lambdaDownloadFileWithProgress;
|
package/dist/functions/launch.js
CHANGED
|
@@ -110,7 +110,7 @@ const innerLaunchHandler = async (params, options) => {
|
|
|
110
110
|
inputProps: params.inputProps,
|
|
111
111
|
renderId: params.renderId,
|
|
112
112
|
imageFormat: params.imageFormat,
|
|
113
|
-
codec: params.codec,
|
|
113
|
+
codec: params.codec === 'h264' ? 'h264-mkv' : params.codec,
|
|
114
114
|
crf: params.crf,
|
|
115
115
|
envVariables: params.envVariables,
|
|
116
116
|
pixelFormat: params.pixelFormat,
|
|
@@ -5,6 +5,7 @@ import type { EnhancedErrorInfo } from '../functions/helpers/write-lambda-error'
|
|
|
5
5
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
6
6
|
import type { ExpensiveChunk } from './get-most-expensive-chunks';
|
|
7
7
|
import type { LambdaArchitecture } from './validate-architecture';
|
|
8
|
+
import type { LambdaCodec } from './validate-lambda-codec';
|
|
8
9
|
export declare const MIN_MEMORY = 512;
|
|
9
10
|
export declare const MAX_MEMORY = 10240;
|
|
10
11
|
export declare const DEFAULT_MEMORY_SIZE = 2048;
|
|
@@ -92,7 +93,7 @@ export declare type LambdaPayloads = {
|
|
|
92
93
|
composition: string;
|
|
93
94
|
framesPerLambda: number | null;
|
|
94
95
|
inputProps: unknown;
|
|
95
|
-
codec:
|
|
96
|
+
codec: LambdaCodec;
|
|
96
97
|
imageFormat: ImageFormat;
|
|
97
98
|
crf: number | undefined;
|
|
98
99
|
envVariables: Record<string, string> | undefined;
|
|
@@ -117,7 +118,7 @@ export declare type LambdaPayloads = {
|
|
|
117
118
|
inputProps: unknown;
|
|
118
119
|
renderId: string;
|
|
119
120
|
imageFormat: ImageFormat;
|
|
120
|
-
codec:
|
|
121
|
+
codec: LambdaCodec;
|
|
121
122
|
crf: number | undefined;
|
|
122
123
|
envVariables: Record<string, string> | undefined;
|
|
123
124
|
pixelFormat: PixelFormat | undefined;
|
|
@@ -152,7 +153,7 @@ export declare type LambdaPayloads = {
|
|
|
152
153
|
inputProps: unknown;
|
|
153
154
|
renderId: string;
|
|
154
155
|
imageFormat: ImageFormat;
|
|
155
|
-
codec: Codec
|
|
156
|
+
codec: Exclude<Codec, 'h264'>;
|
|
156
157
|
crf: number | undefined;
|
|
157
158
|
proResProfile: ProResProfile | undefined;
|
|
158
159
|
pixelFormat: PixelFormat | undefined;
|
|
@@ -211,7 +212,7 @@ export declare type RenderMetadata = {
|
|
|
211
212
|
renderId: string;
|
|
212
213
|
outName: OutNameInput | undefined;
|
|
213
214
|
};
|
|
214
|
-
export declare type LambdaVersions = '2022-06-30' | '2022-06-29' | '2022-06-25' | '2022-06-22' | '2022-06-21' | '2022-06-14' | '2022-06-08' | '2022-06-07' | '2022-06-02' | '2022-05-31' | '2022-05-28' | '2022-05-27' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
|
|
215
|
+
export declare type LambdaVersions = '2022-07-04' | '2022-06-30' | '2022-06-29' | '2022-06-25' | '2022-06-22' | '2022-06-21' | '2022-06-14' | '2022-06-08' | '2022-06-07' | '2022-06-02' | '2022-05-31' | '2022-05-28' | '2022-05-27' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
|
|
215
216
|
export declare const CURRENT_VERSION: LambdaVersions;
|
|
216
217
|
export declare type PostRenderData = {
|
|
217
218
|
cost: {
|
package/dist/shared/constants.js
CHANGED
|
@@ -84,6 +84,6 @@ var LambdaRoutines;
|
|
|
84
84
|
LambdaRoutines["renderer"] = "renderer";
|
|
85
85
|
LambdaRoutines["still"] = "still";
|
|
86
86
|
})(LambdaRoutines = exports.LambdaRoutines || (exports.LambdaRoutines = {}));
|
|
87
|
-
exports.CURRENT_VERSION = '2022-
|
|
87
|
+
exports.CURRENT_VERSION = '2022-07-04';
|
|
88
88
|
exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = 'L-B99A9384';
|
|
89
89
|
exports.LAMBDA_BURST_LIMIT_QUOTA = 'L-548AE339';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateLambdaCodec = void 0;
|
|
4
|
+
const lambdaCodecs = ['h264-mkv', 'h264', 'vp8', 'mp3', 'aac', 'wav'];
|
|
5
|
+
const validateLambdaCodec = (codec) => {
|
|
6
|
+
if (typeof codec !== 'string') {
|
|
7
|
+
throw new TypeError('"codec" must be a string ');
|
|
8
|
+
}
|
|
9
|
+
if (!lambdaCodecs.includes(codec)) {
|
|
10
|
+
throw new TypeError("'" +
|
|
11
|
+
codec +
|
|
12
|
+
"' is not a valid codec for Lambda. The following values are supported: " +
|
|
13
|
+
lambdaCodecs.join(', '));
|
|
14
|
+
}
|
|
15
|
+
if (codec === 'h264-mkv') {
|
|
16
|
+
console.warn('The "h264-mkv" codec for renderMediaOnLambda() is deprecated - it\'s now just "h264".');
|
|
17
|
+
return 'h264';
|
|
18
|
+
}
|
|
19
|
+
return codec;
|
|
20
|
+
};
|
|
21
|
+
exports.validateLambdaCodec = validateLambdaCodec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.26",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@aws-sdk/client-service-quotas": "3.58.0",
|
|
32
32
|
"@aws-sdk/lib-storage": "3.58.0",
|
|
33
33
|
"@aws-sdk/s3-request-presigner": "3.58.0",
|
|
34
|
-
"@remotion/bundler": "3.0.
|
|
35
|
-
"@remotion/cli": "3.0.
|
|
36
|
-
"@remotion/renderer": "3.0.
|
|
34
|
+
"@remotion/bundler": "3.0.26",
|
|
35
|
+
"@remotion/cli": "3.0.26",
|
|
36
|
+
"@remotion/renderer": "3.0.26",
|
|
37
37
|
"aws-policies": "^1.0.1",
|
|
38
38
|
"mime-types": "2.1.34",
|
|
39
|
-
"remotion": "3.0.
|
|
39
|
+
"remotion": "3.0.26"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "790e9bb2d66f2fe97efc209237cc57d7cad2e793"
|
|
65
65
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|