@remotion/lambda 4.0.113 → 4.0.115
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 +1 -10
- package/dist/api/render-still-on-lambda.d.ts +1 -2
- package/dist/cli/args.d.ts +1 -1
- package/dist/cli/commands/compositions/index.js +15 -1
- package/dist/cli/commands/render/render.js +59 -3
- package/dist/cli/commands/sites/create.js +4 -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 +24 -2
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/lifecycle.js +1 -1
- package/dist/functions/helpers/streaming-payloads.d.ts +3 -3
- package/dist/functions/renderer.js +2 -2
- package/dist/internals.d.ts +2 -2
- package/dist/shared/invoke-webhook.d.ts +0 -2
- package/package.json +8 -8
- package/remotionlambda-arm64.zip +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { AudioCodec, ChromiumOptions,
|
|
1
|
+
import type { AudioCodec, ChromiumOptions, FrameRange, LogLevel, PixelFormat, ProResProfile, ToOptions, VideoImageFormat } from '@remotion/renderer';
|
|
2
2
|
import type { BrowserSafeApis } from '@remotion/renderer/client';
|
|
3
|
-
import type { DeleteAfter } from '../functions/helpers/lifecycle';
|
|
4
3
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
5
4
|
import type { OutNameInput, Privacy, WebhookOption } from '../shared/constants';
|
|
6
5
|
import type { DownloadBehavior } from '../shared/content-disposition-header';
|
|
@@ -18,7 +17,6 @@ export type RenderMediaOnLambdaInput = {
|
|
|
18
17
|
envVariables?: Record<string, string>;
|
|
19
18
|
pixelFormat?: PixelFormat;
|
|
20
19
|
proResProfile?: ProResProfile;
|
|
21
|
-
x264Preset?: X264Preset;
|
|
22
20
|
privacy?: Privacy;
|
|
23
21
|
/**
|
|
24
22
|
* @deprecated Renamed to `jpegQuality`
|
|
@@ -36,12 +34,7 @@ export type RenderMediaOnLambdaInput = {
|
|
|
36
34
|
everyNthFrame?: number;
|
|
37
35
|
concurrencyPerLambda?: number;
|
|
38
36
|
downloadBehavior?: DownloadBehavior | null;
|
|
39
|
-
muted?: boolean;
|
|
40
37
|
overwrite?: boolean;
|
|
41
|
-
audioBitrate?: string | null;
|
|
42
|
-
videoBitrate?: string | null;
|
|
43
|
-
encodingMaxRate?: string | null;
|
|
44
|
-
encodingBufferSize?: string | null;
|
|
45
38
|
webhook?: WebhookOption | null;
|
|
46
39
|
forceWidth?: number | null;
|
|
47
40
|
forceHeight?: number | null;
|
|
@@ -52,8 +45,6 @@ export type RenderMediaOnLambdaInput = {
|
|
|
52
45
|
* @deprecated in favor of `logLevel`: true
|
|
53
46
|
*/
|
|
54
47
|
dumpBrowserLogs?: boolean;
|
|
55
|
-
colorSpace?: ColorSpace;
|
|
56
|
-
deleteAfter?: DeleteAfter | null;
|
|
57
48
|
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda>>;
|
|
58
49
|
export type RenderMediaOnLambdaOutput = {
|
|
59
50
|
renderId: string;
|
|
@@ -18,7 +18,6 @@ export type RenderStillOnLambdaInput = {
|
|
|
18
18
|
* @deprecated Renamed to `jpegQuality`
|
|
19
19
|
*/
|
|
20
20
|
quality?: never;
|
|
21
|
-
jpegQuality?: number;
|
|
22
21
|
frame?: number;
|
|
23
22
|
logLevel?: LogLevel;
|
|
24
23
|
outName?: OutNameInput;
|
|
@@ -39,7 +38,7 @@ export type RenderStillOnLambdaInput = {
|
|
|
39
38
|
lambdaInsightsUrl: string;
|
|
40
39
|
}) => void;
|
|
41
40
|
deleteAfter?: DeleteAfter | null;
|
|
42
|
-
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.
|
|
41
|
+
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnLambda>>;
|
|
43
42
|
export type RenderStillOnLambdaOutput = {
|
|
44
43
|
estimatedPrice: CostsInfo;
|
|
45
44
|
url: string;
|
package/dist/cli/args.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ type LambdaCommandLineOptions = {
|
|
|
19
19
|
['disable-chunk-optimization']: boolean;
|
|
20
20
|
['save-browser-logs']: boolean;
|
|
21
21
|
['disable-cloudwatch']: boolean;
|
|
22
|
-
[
|
|
22
|
+
[BrowserSafeApis.options.enableLambdaInsights.cliFlag]: boolean;
|
|
23
23
|
['max-retries']?: number;
|
|
24
24
|
['frames-per-lambda']?: number;
|
|
25
25
|
['concurrency-per-lambda']?: number;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.compositionsCommand = exports.COMPOSITIONS_COMMAND = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
|
+
const client_1 = require("@remotion/renderer/client");
|
|
5
6
|
const __1 = require("../../..");
|
|
6
7
|
const constants_1 = require("../../../shared/constants");
|
|
7
8
|
const validate_serveurl_1 = require("../../../shared/validate-serveurl");
|
|
@@ -11,6 +12,7 @@ const find_function_name_1 = require("../../helpers/find-function-name");
|
|
|
11
12
|
const quit_1 = require("../../helpers/quit");
|
|
12
13
|
const log_1 = require("../../log");
|
|
13
14
|
exports.COMPOSITIONS_COMMAND = 'compositions';
|
|
15
|
+
const { enableMultiprocessOnLinuxOption, glOption } = client_1.BrowserSafeApis.options;
|
|
14
16
|
const compositionsCommand = async (args, remotionRoot, logLevel) => {
|
|
15
17
|
const serveUrl = args[0];
|
|
16
18
|
if (!serveUrl) {
|
|
@@ -20,12 +22,24 @@ const compositionsCommand = async (args, remotionRoot, logLevel) => {
|
|
|
20
22
|
log_1.Log.info(`${constants_1.BINARY_NAME} ${exports.COMPOSITIONS_COMMAND} <serve-url>`);
|
|
21
23
|
(0, quit_1.quit)(1);
|
|
22
24
|
}
|
|
23
|
-
const {
|
|
25
|
+
const { envVariables, inputProps, puppeteerTimeout, headless, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
|
|
24
26
|
type: 'get-compositions',
|
|
25
27
|
isLambda: true,
|
|
26
28
|
remotionRoot,
|
|
27
29
|
logLevel,
|
|
28
30
|
});
|
|
31
|
+
const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
|
|
32
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
33
|
+
}).value;
|
|
34
|
+
const gl = glOption.getValue({ commandLine: cli_1.CliInternals.parsedCli }).value;
|
|
35
|
+
const chromiumOptions = {
|
|
36
|
+
disableWebSecurity,
|
|
37
|
+
enableMultiProcessOnLinux,
|
|
38
|
+
gl,
|
|
39
|
+
headless,
|
|
40
|
+
ignoreCertificateErrors,
|
|
41
|
+
userAgent,
|
|
42
|
+
};
|
|
29
43
|
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
30
44
|
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
31
45
|
const functionName = await (0, find_function_name_1.findFunctionName)(logLevel);
|
|
@@ -4,6 +4,7 @@ exports.renderCommand = exports.RENDER_COMMAND = void 0;
|
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const config_1 = require("@remotion/cli/config");
|
|
6
6
|
const renderer_1 = require("@remotion/renderer");
|
|
7
|
+
const client_1 = require("@remotion/renderer/client");
|
|
7
8
|
const no_react_1 = require("remotion/no-react");
|
|
8
9
|
const download_media_1 = require("../../../api/download-media");
|
|
9
10
|
const get_render_progress_1 = require("../../../api/get-render-progress");
|
|
@@ -27,6 +28,7 @@ function getTotalFrames(status) {
|
|
|
27
28
|
? renderer_1.RenderInternals.getFramesToRender(status.renderMetadata.frameRange, status.renderMetadata.everyNthFrame).length
|
|
28
29
|
: null;
|
|
29
30
|
}
|
|
31
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, } = client_1.BrowserSafeApis.options;
|
|
30
32
|
const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
31
33
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
32
34
|
const serveUrl = args[0];
|
|
@@ -38,12 +40,65 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
|
38
40
|
(0, quit_1.quit)(1);
|
|
39
41
|
}
|
|
40
42
|
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
41
|
-
const {
|
|
43
|
+
const { envVariables, frameRange, inputProps, pixelFormat, proResProfile, puppeteerTimeout, everyNthFrame, overwrite, height, width, browserExecutable, headless, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
|
|
42
44
|
type: 'series',
|
|
43
45
|
isLambda: true,
|
|
44
46
|
remotionRoot,
|
|
45
47
|
logLevel,
|
|
46
48
|
});
|
|
49
|
+
const x264Preset = x264Option.getValue({
|
|
50
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
51
|
+
}).value;
|
|
52
|
+
const audioBitrate = audioBitrateOption.getValue({
|
|
53
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
54
|
+
}).value;
|
|
55
|
+
const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
|
|
56
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
57
|
+
}).value;
|
|
58
|
+
const scale = scaleOption.getValue({
|
|
59
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
60
|
+
}).value;
|
|
61
|
+
const crf = crfOption.getValue({
|
|
62
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
63
|
+
}).value;
|
|
64
|
+
const jpegQuality = jpegQualityOption.getValue({
|
|
65
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
66
|
+
}).value;
|
|
67
|
+
const videoBitrate = videoBitrateOption.getValue({
|
|
68
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
69
|
+
}).value;
|
|
70
|
+
const muted = mutedOption.getValue({
|
|
71
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
72
|
+
}).value;
|
|
73
|
+
const colorSpace = colorSpaceOption.getValue({
|
|
74
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
75
|
+
}).value;
|
|
76
|
+
const deleteAfter = deleteAfterOption.getValue({
|
|
77
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
78
|
+
}).value;
|
|
79
|
+
const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
|
|
80
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
81
|
+
}).value;
|
|
82
|
+
const gl = glOption.getValue({
|
|
83
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
84
|
+
}).value;
|
|
85
|
+
const numberOfGifLoops = numberOfGifLoopsOption.getValue({
|
|
86
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
87
|
+
}).value;
|
|
88
|
+
const encodingMaxRate = encodingMaxRateOption.getValue({
|
|
89
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
90
|
+
}).value;
|
|
91
|
+
const encodingBufferSize = encodingBufferSizeOption.getValue({
|
|
92
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
93
|
+
}).value;
|
|
94
|
+
const chromiumOptions = {
|
|
95
|
+
disableWebSecurity,
|
|
96
|
+
enableMultiProcessOnLinux,
|
|
97
|
+
gl,
|
|
98
|
+
headless,
|
|
99
|
+
ignoreCertificateErrors,
|
|
100
|
+
userAgent,
|
|
101
|
+
};
|
|
47
102
|
let composition = args[1];
|
|
48
103
|
if (!composition) {
|
|
49
104
|
log_1.Log.info('No compositions passed. Fetching compositions...');
|
|
@@ -86,8 +141,9 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
|
86
141
|
}
|
|
87
142
|
const outName = args_1.parsedLambdaCli['out-name'];
|
|
88
143
|
const downloadName = (_a = args[2]) !== null && _a !== void 0 ? _a : null;
|
|
89
|
-
const { codec, reason } =
|
|
90
|
-
|
|
144
|
+
const { value: codec, source: reason } = client_1.BrowserSafeApis.options.videoCodecOption.getValue({
|
|
145
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
146
|
+
}, {
|
|
91
147
|
downloadName,
|
|
92
148
|
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
93
149
|
configFile: (_b = config_1.ConfigInternals.getOutputCodecOrUndefined()) !== null && _b !== void 0 ? _b : null,
|
|
@@ -61,11 +61,13 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
61
61
|
].join('\n'), false);
|
|
62
62
|
};
|
|
63
63
|
const bucketStart = Date.now();
|
|
64
|
-
const enableFolderExpiry =
|
|
64
|
+
const enableFolderExpiry = client_1.BrowserSafeApis.options.folderExpiryOption.getValue({
|
|
65
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
66
|
+
}).value;
|
|
65
67
|
const cliBucketName = (_b = args_1.parsedLambdaCli['force-bucket-name']) !== null && _b !== void 0 ? _b : null;
|
|
66
68
|
const bucketName = cliBucketName !== null && cliBucketName !== void 0 ? cliBucketName : (await (0, get_or_create_bucket_1.internalGetOrCreateBucket)({
|
|
67
69
|
region: (0, get_aws_region_1.getAwsRegion)(),
|
|
68
|
-
enableFolderExpiry
|
|
70
|
+
enableFolderExpiry,
|
|
69
71
|
customCredentials: null,
|
|
70
72
|
})).bucketName;
|
|
71
73
|
multiProgress.bucketProgress.doneIn = Date.now() - bucketStart;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sitesRmSubcommand = exports.SITES_RM_COMMAND = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
|
-
const client_1 = require("@remotion/renderer/client");
|
|
6
5
|
const delete_site_1 = require("../../../api/delete-site");
|
|
7
6
|
const get_or_create_bucket_1 = require("../../../api/get-or-create-bucket");
|
|
8
7
|
const get_sites_1 = require("../../../api/get-sites");
|
|
@@ -13,7 +12,7 @@ const quit_1 = require("../../helpers/quit");
|
|
|
13
12
|
const log_1 = require("../../log");
|
|
14
13
|
exports.SITES_RM_COMMAND = 'rm';
|
|
15
14
|
const sitesRmSubcommand = async (args) => {
|
|
16
|
-
var _a
|
|
15
|
+
var _a;
|
|
17
16
|
if (args.length === 0) {
|
|
18
17
|
log_1.Log.error('No site name was passed. Run the command again and pass another argument <site-name>.');
|
|
19
18
|
(0, quit_1.quit)(1);
|
|
@@ -29,7 +28,7 @@ const sitesRmSubcommand = async (args) => {
|
|
|
29
28
|
});
|
|
30
29
|
const bucketName = (_a = args_1.parsedLambdaCli['force-bucket-name']) !== null && _a !== void 0 ? _a : (await (0, get_or_create_bucket_1.internalGetOrCreateBucket)({
|
|
31
30
|
region,
|
|
32
|
-
enableFolderExpiry:
|
|
31
|
+
enableFolderExpiry: false,
|
|
33
32
|
customCredentials: null,
|
|
34
33
|
})).bucketName;
|
|
35
34
|
for (const siteName of args) {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sitesRmallSubcommand = exports.SITES_RMALL_COMMAND = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
|
-
const client_1 = require("@remotion/renderer/client");
|
|
6
5
|
const delete_site_1 = require("../../../api/delete-site");
|
|
7
6
|
const get_or_create_bucket_1 = require("../../../api/get-or-create-bucket");
|
|
8
7
|
const get_sites_1 = require("../../../api/get-sites");
|
|
@@ -12,14 +11,14 @@ const confirm_1 = require("../../helpers/confirm");
|
|
|
12
11
|
const log_1 = require("../../log");
|
|
13
12
|
exports.SITES_RMALL_COMMAND = 'rmall';
|
|
14
13
|
const sitesRmallSubcommand = async () => {
|
|
15
|
-
var _a
|
|
14
|
+
var _a;
|
|
16
15
|
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
17
16
|
const deployedSites = await (0, get_sites_1.getSites)({
|
|
18
17
|
region,
|
|
19
18
|
});
|
|
20
19
|
const bucketName = (_a = args_1.parsedLambdaCli['force-bucket-name']) !== null && _a !== void 0 ? _a : (await (0, get_or_create_bucket_1.internalGetOrCreateBucket)({
|
|
21
20
|
region,
|
|
22
|
-
enableFolderExpiry:
|
|
21
|
+
enableFolderExpiry: false,
|
|
23
22
|
customCredentials: null,
|
|
24
23
|
})).bucketName;
|
|
25
24
|
for (const site of deployedSites.sites) {
|
|
@@ -17,6 +17,7 @@ const get_aws_region_1 = require("../get-aws-region");
|
|
|
17
17
|
const find_function_name_1 = require("../helpers/find-function-name");
|
|
18
18
|
const quit_1 = require("../helpers/quit");
|
|
19
19
|
const log_1 = require("../log");
|
|
20
|
+
const { offthreadVideoCacheSizeInBytesOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, } = client_1.BrowserSafeApis.options;
|
|
20
21
|
exports.STILL_COMMAND = 'still';
|
|
21
22
|
const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
22
23
|
var _a, _b, _c, _d, _e;
|
|
@@ -28,7 +29,7 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
|
28
29
|
log_1.Log.info(`${constants_1.BINARY_NAME} ${exports.STILL_COMMAND} <serve-url> <composition-id> [output-location]`);
|
|
29
30
|
(0, quit_1.quit)(1);
|
|
30
31
|
}
|
|
31
|
-
const {
|
|
32
|
+
const { envVariables, inputProps, puppeteerTimeout, stillFrame, height, width, browserExecutable, headless, userAgent, disableWebSecurity, ignoreCertificateErrors, } = cli_1.CliInternals.getCliOptions({
|
|
32
33
|
type: 'still',
|
|
33
34
|
isLambda: true,
|
|
34
35
|
remotionRoot,
|
|
@@ -36,12 +37,27 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
|
36
37
|
});
|
|
37
38
|
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
38
39
|
let composition = args[1];
|
|
40
|
+
const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
|
|
41
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
42
|
+
}).value;
|
|
43
|
+
const gl = glOption.getValue({ commandLine: cli_1.CliInternals.parsedCli }).value;
|
|
44
|
+
const chromiumOptions = {
|
|
45
|
+
disableWebSecurity,
|
|
46
|
+
enableMultiProcessOnLinux,
|
|
47
|
+
gl,
|
|
48
|
+
headless,
|
|
49
|
+
ignoreCertificateErrors,
|
|
50
|
+
userAgent,
|
|
51
|
+
};
|
|
39
52
|
if (!composition) {
|
|
40
53
|
log_1.Log.info('No compositions passed. Fetching compositions...');
|
|
41
54
|
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
42
55
|
if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {
|
|
43
56
|
throw Error('Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.');
|
|
44
57
|
}
|
|
58
|
+
const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
|
|
59
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
60
|
+
}).value;
|
|
45
61
|
const server = await renderer_1.RenderInternals.prepareServer({
|
|
46
62
|
concurrency: 1,
|
|
47
63
|
indent: false,
|
|
@@ -91,7 +107,13 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
|
91
107
|
configImageFormat: (_e = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _e !== void 0 ? _e : null,
|
|
92
108
|
});
|
|
93
109
|
log_1.Log.info(cli_1.CliInternals.chalk.gray(`functionName = ${functionName}, imageFormat = ${imageFormat} (${imageFormatReason})`));
|
|
94
|
-
const deleteAfter = args_1.parsedLambdaCli[
|
|
110
|
+
const deleteAfter = args_1.parsedLambdaCli[deleteAfterOption.cliFlag];
|
|
111
|
+
const scale = scaleOption.getValue({
|
|
112
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
113
|
+
}).value;
|
|
114
|
+
const jpegQuality = jpegQualityOption.getValue({
|
|
115
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
116
|
+
}).value;
|
|
95
117
|
const res = await (0, render_still_on_lambda_1.renderStillOnLambda)({
|
|
96
118
|
functionName,
|
|
97
119
|
serveUrl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "
|
|
1
|
+
export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-south-1" | "ap-east-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "me-south-1" | "sa-east-1";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validateDeleteAfter = exports.generateRandomHashWithLifeCycleRule = exports.getLifeCycleRules = exports.getEnabledLifeCycleRule = void 0;
|
|
4
4
|
const random_hash_1 = require("../../shared/random-hash");
|
|
5
5
|
const truthy_1 = require("../../shared/truthy");
|
|
6
|
-
// Needs to be in sync with
|
|
6
|
+
// Needs to be in sync with renderer/src/options/delete-after.ts#L7
|
|
7
7
|
const expiryDays = {
|
|
8
8
|
'1-day': 1,
|
|
9
9
|
'3-days': 3,
|
|
@@ -4,16 +4,16 @@ declare const streamingPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
4
4
|
type: z.ZodLiteral<"render-id-determined">;
|
|
5
5
|
renderId: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
renderId: string;
|
|
8
7
|
type: "render-id-determined";
|
|
9
|
-
}, {
|
|
10
8
|
renderId: string;
|
|
9
|
+
}, {
|
|
11
10
|
type: "render-id-determined";
|
|
11
|
+
renderId: string;
|
|
12
12
|
}>]>;
|
|
13
13
|
export type StreamingPayloads = z.infer<typeof streamingPayloadSchema>;
|
|
14
14
|
export declare const isStreamingPayload: (str: string) => false | {
|
|
15
|
-
renderId: string;
|
|
16
15
|
type: "render-id-determined";
|
|
16
|
+
renderId: string;
|
|
17
17
|
};
|
|
18
18
|
export declare const sendProgressEvent: (responseStream: ResponseStream, payload: StreamingPayloads) => void;
|
|
19
19
|
export {};
|
|
@@ -69,7 +69,7 @@ const renderHandler = async (params, options, logs) => {
|
|
|
69
69
|
const resolvedProps = await resolvedPropsPromise;
|
|
70
70
|
const serializedInputPropsWithCustomSchema = await inputPropsPromise;
|
|
71
71
|
await new Promise((resolve, reject) => {
|
|
72
|
-
var _a, _b, _c, _d
|
|
72
|
+
var _a, _b, _c, _d;
|
|
73
73
|
renderer_1.RenderInternals.internalRenderMedia({
|
|
74
74
|
repro: false,
|
|
75
75
|
composition: {
|
|
@@ -131,7 +131,7 @@ const renderHandler = async (params, options, logs) => {
|
|
|
131
131
|
crf: (_c = params.crf) !== null && _c !== void 0 ? _c : null,
|
|
132
132
|
pixelFormat: (_d = params.pixelFormat) !== null && _d !== void 0 ? _d : renderer_1.RenderInternals.DEFAULT_PIXEL_FORMAT,
|
|
133
133
|
proResProfile: params.proResProfile,
|
|
134
|
-
x264Preset:
|
|
134
|
+
x264Preset: params.x264Preset,
|
|
135
135
|
onDownload: (0, on_downloads_logger_1.onDownloadsHelper)(),
|
|
136
136
|
overwrite: false,
|
|
137
137
|
chromiumOptions: params.chromiumOptions,
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const LambdaInternals: {
|
|
2
|
-
executeCommand: (args: string[], remotionRoot: string, logLevel: "
|
|
2
|
+
executeCommand: (args: string[], remotionRoot: string, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
|
|
3
3
|
makeLambdaRenderMediaPayload: ({ rendererFunctionName, frameRange, framesPerLambda, forceBucketName: bucketName, codec, composition, serveUrl, imageFormat, inputProps, region, crf, envVariables, pixelFormat, proResProfile, x264Preset, maxRetries, privacy, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, everyNthFrame, numberOfGifLoops, audioBitrate, concurrencyPerLambda, audioCodec, forceHeight, forceWidth, webhook, videoBitrate, encodingMaxRate, encodingBufferSize, downloadBehavior, muted, overwrite, jpegQuality, offthreadVideoCacheSizeInBytes, deleteAfter, colorSpace, }: import("./api/make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("./defaults").LambdaStartPayload>;
|
|
4
4
|
getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, }: import(".").GetRenderProgressInput) => import("./defaults").LambdaStatusPayload;
|
|
5
5
|
makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, dumpBrowserLogs, offthreadVideoCacheSizeInBytes, deleteAfter, }: import(".").RenderStillOnLambdaInput) => Promise<{
|
|
@@ -14,7 +14,7 @@ export declare const LambdaInternals: {
|
|
|
14
14
|
maxRetries: number;
|
|
15
15
|
frame: number;
|
|
16
16
|
privacy: import("./defaults").Privacy;
|
|
17
|
-
logLevel: "
|
|
17
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
18
18
|
outName: import("./defaults").OutNameInput | null;
|
|
19
19
|
timeoutInMilliseconds: number;
|
|
20
20
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.115",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"aws-policies": "^1.0.1",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"zod": "3.22.3",
|
|
29
|
-
"@remotion/bundler": "4.0.
|
|
30
|
-
"@remotion/
|
|
31
|
-
"@remotion/
|
|
32
|
-
"remotion": "4.0.
|
|
29
|
+
"@remotion/bundler": "4.0.115",
|
|
30
|
+
"@remotion/renderer": "4.0.115",
|
|
31
|
+
"@remotion/cli": "4.0.115",
|
|
32
|
+
"remotion": "4.0.115"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@jonny/eslint-config": "3.0.276",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"ts-node": "^10.8.0",
|
|
44
44
|
"vitest": "0.31.1",
|
|
45
45
|
"zip-lib": "^0.7.2",
|
|
46
|
-
"@remotion/
|
|
47
|
-
"@remotion/
|
|
46
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.115",
|
|
47
|
+
"@remotion/bundler": "4.0.115"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@remotion/bundler": "4.0.
|
|
50
|
+
"@remotion/bundler": "4.0.115"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|