@remotion/lambda 4.0.215 → 4.0.216
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/make-lambda-payload.d.ts +2 -1
- package/dist/api/make-lambda-payload.js +2 -1
- package/dist/api/render-media-on-lambda.d.ts +1 -0
- package/dist/api/render-media-on-lambda.js +2 -1
- package/dist/cli/commands/render/render.js +5 -1
- package/dist/cli/log.d.ts +3 -3
- package/dist/functions/helpers/concat-videos.d.ts +2 -1
- package/dist/functions/helpers/concat-videos.js +2 -1
- package/dist/functions/helpers/merge-chunks.js +1 -0
- package/dist/functions/helpers/stream-renderer.js +3 -1
- package/dist/functions/launch.js +2 -0
- package/dist/functions/renderer.js +1 -0
- package/dist/functions/start.js +1 -0
- package/dist/functions/still.js +12 -5
- package/dist/internals.d.ts +1 -1
- package/package.json +11 -11
- package/remotionlambda-arm64.zip +0 -0
|
@@ -49,7 +49,8 @@ export type InnerRenderMediaOnLambdaInput = {
|
|
|
49
49
|
deleteAfter: DeleteAfter | null;
|
|
50
50
|
indent: boolean;
|
|
51
51
|
forcePathStyle: boolean;
|
|
52
|
+
metadata: Record<string, string> | null;
|
|
52
53
|
} & ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda>;
|
|
53
|
-
export declare const 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, preferLossless, forcePathStyle, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
|
|
54
|
+
export declare const 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, preferLossless, forcePathStyle, metadata, }: InnerRenderMediaOnLambdaInput) => Promise<ServerlessStartPayload<AwsProvider>>;
|
|
54
55
|
export declare const getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: GetRenderProgressInput) => ServerlessStatusPayload<AwsProvider>;
|
|
55
56
|
export declare const makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, }: RenderStillOnLambdaNonNullInput) => Promise<ServerlessPayloads<AwsProvider>[ServerlessRoutines.still]>;
|
|
@@ -10,7 +10,7 @@ const validate_download_behavior_1 = require("../shared/validate-download-behavi
|
|
|
10
10
|
const validate_frames_per_lambda_1 = require("../shared/validate-frames-per-lambda");
|
|
11
11
|
const validate_lambda_codec_1 = require("../shared/validate-lambda-codec");
|
|
12
12
|
const validate_serveurl_1 = require("../shared/validate-serveurl");
|
|
13
|
-
const makeLambdaRenderMediaPayload = async ({ 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, preferLossless, forcePathStyle, }) => {
|
|
13
|
+
const makeLambdaRenderMediaPayload = async ({ 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, preferLossless, forcePathStyle, metadata, }) => {
|
|
14
14
|
const actualCodec = (0, validate_lambda_codec_1.validateLambdaCodec)(codec);
|
|
15
15
|
(0, validate_serveurl_1.validateServeUrl)(serveUrl);
|
|
16
16
|
(0, validate_frames_per_lambda_1.validateFramesPerLambda)({
|
|
@@ -76,6 +76,7 @@ const makeLambdaRenderMediaPayload = async ({ rendererFunctionName, frameRange,
|
|
|
76
76
|
colorSpace: colorSpace !== null && colorSpace !== void 0 ? colorSpace : null,
|
|
77
77
|
preferLossless: preferLossless !== null && preferLossless !== void 0 ? preferLossless : false,
|
|
78
78
|
forcePathStyle: forcePathStyle !== null && forcePathStyle !== void 0 ? forcePathStyle : false,
|
|
79
|
+
metadata: metadata !== null && metadata !== void 0 ? metadata : null,
|
|
79
80
|
};
|
|
80
81
|
};
|
|
81
82
|
exports.makeLambdaRenderMediaPayload = makeLambdaRenderMediaPayload;
|
|
@@ -43,6 +43,7 @@ export type RenderMediaOnLambdaInput = {
|
|
|
43
43
|
*/
|
|
44
44
|
dumpBrowserLogs?: boolean;
|
|
45
45
|
forcePathStyle?: boolean;
|
|
46
|
+
metadata?: Record<string, string> | null;
|
|
46
47
|
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnLambda>>;
|
|
47
48
|
export type RenderMediaOnLambdaOutput = {
|
|
48
49
|
renderId: string;
|
|
@@ -59,7 +59,7 @@ const internalRenderMediaOnLambdaRaw = async (input) => {
|
|
|
59
59
|
};
|
|
60
60
|
exports.internalRenderMediaOnLambdaRaw = internalRenderMediaOnLambdaRaw;
|
|
61
61
|
const renderMediaOnLambdaOptionalToRequired = (options) => {
|
|
62
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
|
|
62
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
|
|
63
63
|
return {
|
|
64
64
|
audioBitrate: (_a = options.audioBitrate) !== null && _a !== void 0 ? _a : null,
|
|
65
65
|
audioCodec: (_b = options.audioCodec) !== null && _b !== void 0 ? _b : null,
|
|
@@ -105,6 +105,7 @@ const renderMediaOnLambdaOptionalToRequired = (options) => {
|
|
|
105
105
|
preferLossless: (_11 = options.preferLossless) !== null && _11 !== void 0 ? _11 : false,
|
|
106
106
|
forcePathStyle: (_12 = options.forcePathStyle) !== null && _12 !== void 0 ? _12 : false,
|
|
107
107
|
indent: false,
|
|
108
|
+
metadata: (_13 = options.metadata) !== null && _13 !== void 0 ? _13 : null,
|
|
108
109
|
};
|
|
109
110
|
};
|
|
110
111
|
exports.renderMediaOnLambdaOptionalToRequired = renderMediaOnLambdaOptionalToRequired;
|
|
@@ -27,7 +27,7 @@ const quit_1 = require("../../helpers/quit");
|
|
|
27
27
|
const log_1 = require("../../log");
|
|
28
28
|
const progress_1 = require("./progress");
|
|
29
29
|
exports.RENDER_COMMAND = 'render';
|
|
30
|
-
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, } = client_1.BrowserSafeApis.options;
|
|
30
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, } = client_1.BrowserSafeApis.options;
|
|
31
31
|
const renderCommand = async (args, remotionRoot, logLevel, implementation) => {
|
|
32
32
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
33
33
|
const serveUrl = args[0];
|
|
@@ -104,6 +104,9 @@ const renderCommand = async (args, remotionRoot, logLevel, implementation) => {
|
|
|
104
104
|
const preferLossless = preferLosslessOption.getValue({
|
|
105
105
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
106
106
|
}).value;
|
|
107
|
+
const metadata = metadataOption.getValue({
|
|
108
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
109
|
+
}).value;
|
|
107
110
|
const chromiumOptions = {
|
|
108
111
|
disableWebSecurity,
|
|
109
112
|
enableMultiProcessOnLinux,
|
|
@@ -235,6 +238,7 @@ const renderCommand = async (args, remotionRoot, logLevel, implementation) => {
|
|
|
235
238
|
preferLossless,
|
|
236
239
|
indent: false,
|
|
237
240
|
forcePathStyle: (_l = args_1.parsedLambdaCli['force-path-style']) !== null && _l !== void 0 ? _l : false,
|
|
241
|
+
metadata: metadata !== null && metadata !== void 0 ? metadata : null,
|
|
238
242
|
});
|
|
239
243
|
const progressBar = cli_1.CliInternals.createOverwriteableCliOutput({
|
|
240
244
|
quiet: cli_1.CliInternals.quietFlagProvided(),
|
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
|
-
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
2
|
+
verbose: (options: import("@remotion/renderer/dist/logger").LogOptions & {
|
|
3
3
|
tag?: string;
|
|
4
4
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
5
5
|
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
6
|
-
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
|
-
error: (options: import("@remotion/renderer").LogOptions & {
|
|
6
|
+
warn: (options: import("@remotion/renderer/dist/logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
|
+
error: (options: import("@remotion/renderer/dist/logger").LogOptions & {
|
|
8
8
|
tag?: string;
|
|
9
9
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AudioCodec, CancelSignal, LogLevel } from '@remotion/renderer';
|
|
2
2
|
import type { ServerlessCodec } from '@remotion/serverless/client';
|
|
3
|
-
export declare const concatVideos: ({ onProgress, numberOfFrames, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, muted, }: {
|
|
3
|
+
export declare const concatVideos: ({ onProgress, numberOfFrames, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, muted, metadata, }: {
|
|
4
4
|
onProgress: (frames: number) => void;
|
|
5
5
|
numberOfFrames: number;
|
|
6
6
|
codec: ServerlessCodec;
|
|
@@ -16,6 +16,7 @@ export declare const concatVideos: ({ onProgress, numberOfFrames, codec, fps, nu
|
|
|
16
16
|
cancelSignal: CancelSignal | undefined;
|
|
17
17
|
preferLossless: boolean;
|
|
18
18
|
muted: boolean;
|
|
19
|
+
metadata: Record<string, string> | null;
|
|
19
20
|
}) => Promise<{
|
|
20
21
|
outfile: string;
|
|
21
22
|
cleanupChunksProm: Promise<void>;
|
|
@@ -10,7 +10,7 @@ const node_path_1 = require("node:path");
|
|
|
10
10
|
const constants_1 = require("../../shared/constants");
|
|
11
11
|
const can_concat_seamlessly_1 = require("./can-concat-seamlessly");
|
|
12
12
|
const timer_1 = require("./timer");
|
|
13
|
-
const concatVideos = async ({ onProgress, numberOfFrames, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, muted, }) => {
|
|
13
|
+
const concatVideos = async ({ onProgress, numberOfFrames, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, muted, metadata, }) => {
|
|
14
14
|
const outfile = (0, node_path_1.join)(renderer_1.RenderInternals.tmpDir(constants_1.REMOTION_CONCATED_TOKEN), `concat.${renderer_1.RenderInternals.getFileExtensionFromCodec(codec, audioCodec)}`);
|
|
15
15
|
const combine = (0, timer_1.timer)('Combine chunks', logLevel);
|
|
16
16
|
const filelistDir = renderer_1.RenderInternals.tmpDir(constants_1.REMOTION_FILELIST_TOKEN);
|
|
@@ -42,6 +42,7 @@ const concatVideos = async ({ onProgress, numberOfFrames, codec, fps, numberOfGi
|
|
|
42
42
|
seamlessAudio,
|
|
43
43
|
seamlessVideo,
|
|
44
44
|
muted,
|
|
45
|
+
metadata,
|
|
45
46
|
});
|
|
46
47
|
combine.end();
|
|
47
48
|
const cleanupChunksProm = node_fs_1.default.promises.rm(outdir, {
|
|
@@ -35,6 +35,7 @@ const mergeChunksAndFinishRender = async (options) => {
|
|
|
35
35
|
cancelSignal: undefined,
|
|
36
36
|
preferLossless: options.preferLossless,
|
|
37
37
|
muted: options.renderMetadata.muted,
|
|
38
|
+
metadata: options.renderMetadata.metadata,
|
|
38
39
|
});
|
|
39
40
|
const encodingStop = Date.now();
|
|
40
41
|
options.overallProgress.setTimeToCombine(encodingStop - encodingStart);
|
|
@@ -96,10 +96,12 @@ const streamRenderer = ({ payload, functionName, outdir, overallProgress, files,
|
|
|
96
96
|
});
|
|
97
97
|
})
|
|
98
98
|
.catch((err) => {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
const shouldRetry = (_b = (_a = err.message) === null || _a === void 0 ? void 0 : _a.includes('Error: aborted')) !== null && _b !== void 0 ? _b : false;
|
|
99
101
|
resolve({
|
|
100
102
|
type: 'error',
|
|
101
103
|
error: err.stack,
|
|
102
|
-
shouldRetry
|
|
104
|
+
shouldRetry,
|
|
103
105
|
});
|
|
104
106
|
});
|
|
105
107
|
});
|
package/dist/functions/launch.js
CHANGED
|
@@ -192,6 +192,7 @@ const innerLaunchHandler = async ({ functionName, params, options, overallProgre
|
|
|
192
192
|
framesPerLambda,
|
|
193
193
|
progressEveryNthFrame,
|
|
194
194
|
forcePathStyle: params.forcePathStyle,
|
|
195
|
+
metadata: params.metadata,
|
|
195
196
|
};
|
|
196
197
|
return payload;
|
|
197
198
|
});
|
|
@@ -227,6 +228,7 @@ const innerLaunchHandler = async ({ functionName, params, options, overallProgre
|
|
|
227
228
|
downloadBehavior: params.downloadBehavior,
|
|
228
229
|
audioBitrate: params.audioBitrate,
|
|
229
230
|
muted: params.muted,
|
|
231
|
+
metadata: params.metadata,
|
|
230
232
|
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
231
233
|
};
|
|
232
234
|
const { key, renderBucketName, customCredentials } = (0, client_1.getExpectedOutName)(renderMetadata, params.bucketName, typeof params.outName === 'string' || typeof params.outName === 'undefined'
|
|
@@ -215,6 +215,7 @@ const renderHandler = async ({ params, options, logs, onStream, providerSpecific
|
|
|
215
215
|
throw new Error('Should not download a browser in Lambda');
|
|
216
216
|
},
|
|
217
217
|
onArtifact,
|
|
218
|
+
metadata: params.metadata,
|
|
218
219
|
})
|
|
219
220
|
.then(({ slowestFrames }) => {
|
|
220
221
|
renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel: params.logLevel }, `Slowest frames:`);
|
package/dist/functions/start.js
CHANGED
|
@@ -87,6 +87,7 @@ const startHandler = async (params, options, providerSpecifics) => {
|
|
|
87
87
|
colorSpace: params.colorSpace,
|
|
88
88
|
preferLossless: params.preferLossless,
|
|
89
89
|
forcePathStyle: params.forcePathStyle,
|
|
90
|
+
metadata: params.metadata,
|
|
90
91
|
};
|
|
91
92
|
const stringifiedPayload = JSON.stringify(payload);
|
|
92
93
|
if (stringifiedPayload.length > 256 * 1024) {
|
package/dist/functions/still.js
CHANGED
|
@@ -21,7 +21,7 @@ const format_costs_info_1 = require("./helpers/format-costs-info");
|
|
|
21
21
|
const get_output_url_from_metadata_1 = require("./helpers/get-output-url-from-metadata");
|
|
22
22
|
const on_downloads_logger_1 = require("./helpers/on-downloads-logger");
|
|
23
23
|
const overall_render_progress_1 = require("./helpers/overall-render-progress");
|
|
24
|
-
const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, renderId, onStream, timeoutInMilliseconds, providerSpecifics, }) => {
|
|
24
|
+
const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, renderId, onStream, timeoutInMilliseconds, providerSpecifics, }, cleanup) => {
|
|
25
25
|
var _a, _b, _c, _d, _e;
|
|
26
26
|
if (lambdaParams.type !== client_1.ServerlessRoutines.still) {
|
|
27
27
|
throw new TypeError('Expected still type');
|
|
@@ -72,7 +72,7 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
72
72
|
region,
|
|
73
73
|
bucketName,
|
|
74
74
|
});
|
|
75
|
-
const server = await renderer_1.RenderInternals.
|
|
75
|
+
const { server, cleanupServer } = await renderer_1.RenderInternals.makeOrReuseServer(undefined, {
|
|
76
76
|
concurrency: 1,
|
|
77
77
|
indent: false,
|
|
78
78
|
port: null,
|
|
@@ -82,7 +82,10 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
82
82
|
offthreadVideoCacheSizeInBytes: lambdaParams.offthreadVideoCacheSizeInBytes,
|
|
83
83
|
binariesDirectory: null,
|
|
84
84
|
forceIPv4: false,
|
|
85
|
+
}, {
|
|
86
|
+
onDownload: () => undefined,
|
|
85
87
|
});
|
|
88
|
+
cleanup.push(() => cleanupServer(true));
|
|
86
89
|
const browserInstance = await browserInstancePromise;
|
|
87
90
|
const composition = await (0, serverless_1.validateComposition)({
|
|
88
91
|
serveUrl,
|
|
@@ -127,6 +130,7 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
127
130
|
numberOfGifLoops: null,
|
|
128
131
|
downloadBehavior: lambdaParams.downloadBehavior,
|
|
129
132
|
audioBitrate: null,
|
|
133
|
+
metadata: null,
|
|
130
134
|
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
131
135
|
};
|
|
132
136
|
const still = (0, overall_render_progress_1.makeInitialOverallRenderProgress)(timeoutInMilliseconds);
|
|
@@ -262,14 +266,16 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
262
266
|
type: 'still-rendered',
|
|
263
267
|
payload,
|
|
264
268
|
});
|
|
269
|
+
await server.closeServer(true);
|
|
265
270
|
};
|
|
266
271
|
const stillHandler = async (options) => {
|
|
267
272
|
const { params } = options;
|
|
273
|
+
const cleanUpFn = [];
|
|
268
274
|
if (params.type !== client_1.ServerlessRoutines.still) {
|
|
269
275
|
throw new Error('Params must be renderer');
|
|
270
276
|
}
|
|
271
277
|
try {
|
|
272
|
-
await innerStillHandler(options);
|
|
278
|
+
await innerStillHandler(options, cleanUpFn);
|
|
273
279
|
return { type: 'success' };
|
|
274
280
|
}
|
|
275
281
|
catch (err) {
|
|
@@ -280,7 +286,7 @@ const stillHandler = async (options) => {
|
|
|
280
286
|
renderer_1.RenderInternals.Log.error({
|
|
281
287
|
indent: false,
|
|
282
288
|
logLevel: params.logLevel,
|
|
283
|
-
}, 'Got error:', err.stack,
|
|
289
|
+
}, 'Got error:', err.stack, `Will retry = ${willRetry}`);
|
|
284
290
|
if (params.streamed) {
|
|
285
291
|
await options.onStream({
|
|
286
292
|
type: 'error-occurred',
|
|
@@ -298,7 +304,7 @@ const stillHandler = async (options) => {
|
|
|
298
304
|
tmpDir: (0, serverless_1.getTmpDirStateIfENoSp)(err.stack, options.providerSpecifics),
|
|
299
305
|
attempt: params.attempt,
|
|
300
306
|
totalAttempts: 1 + params.maxRetries,
|
|
301
|
-
willRetry
|
|
307
|
+
willRetry,
|
|
302
308
|
},
|
|
303
309
|
},
|
|
304
310
|
});
|
|
@@ -313,6 +319,7 @@ const stillHandler = async (options) => {
|
|
|
313
319
|
(0, serverless_1.forgetBrowserEventLoop)(options.params.type === client_1.ServerlessRoutines.still
|
|
314
320
|
? options.params.logLevel
|
|
315
321
|
: 'error');
|
|
322
|
+
cleanUpFn.forEach((c) => c());
|
|
316
323
|
}
|
|
317
324
|
};
|
|
318
325
|
exports.stillHandler = stillHandler;
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const LambdaInternals: {
|
|
2
2
|
executeCommand: (args: string[], remotionRoot: string, logLevel: import("@remotion/renderer").LogLevel, implementation: import("@remotion/serverless").ProviderSpecifics<import("./functions/aws-implementation").AwsProvider> | null) => Promise<void>;
|
|
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, preferLossless, forcePathStyle, }: import("./api/make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless/client").ServerlessStartPayload<import("./functions/aws-implementation").AwsProvider>>;
|
|
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, preferLossless, forcePathStyle, metadata, }: import("./api/make-lambda-payload").InnerRenderMediaOnLambdaInput) => Promise<import("@remotion/serverless/client").ServerlessStartPayload<import("./functions/aws-implementation").AwsProvider>>;
|
|
4
4
|
getRenderProgressPayload: ({ bucketName, renderId, s3OutputProvider, logLevel, forcePathStyle, }: import("./client").GetRenderProgressInput) => import("@remotion/serverless/client").ServerlessStatusPayload<import("./functions/aws-implementation").AwsProvider>;
|
|
5
5
|
makeLambdaRenderStillPayload: ({ serveUrl, inputProps, imageFormat, envVariables, quality, jpegQuality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, chromiumOptions, scale, downloadBehavior, forceHeight, forceWidth, forceBucketName, offthreadVideoCacheSizeInBytes, deleteAfter, forcePathStyle, }: import("./api/render-still-on-lambda").RenderStillOnLambdaNonNullInput) => Promise<import("@remotion/serverless/client").ServerlessPayloads<import("./functions/aws-implementation").AwsProvider>[import("@remotion/serverless/client").ServerlessRoutines.still]>;
|
|
6
6
|
internalDeploySite: (args_0: {
|
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.
|
|
6
|
+
"version": "4.0.216",
|
|
7
7
|
"description": "Render Remotion videos on AWS Lambda",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@aws-sdk/s3-request-presigner": "3.645.0",
|
|
23
23
|
"mime-types": "2.1.34",
|
|
24
24
|
"zod": "3.22.3",
|
|
25
|
-
"@remotion/bundler": "4.0.
|
|
26
|
-
"@remotion/cli": "4.0.
|
|
27
|
-
"@remotion/
|
|
28
|
-
"@remotion/
|
|
29
|
-
"@remotion/streaming": "4.0.
|
|
30
|
-
"@remotion/
|
|
31
|
-
"remotion": "4.0.
|
|
25
|
+
"@remotion/bundler": "4.0.216",
|
|
26
|
+
"@remotion/cli": "4.0.216",
|
|
27
|
+
"@remotion/renderer": "4.0.216",
|
|
28
|
+
"@remotion/serverless": "4.0.216",
|
|
29
|
+
"@remotion/streaming": "4.0.216",
|
|
30
|
+
"@remotion/studio-server": "4.0.216",
|
|
31
|
+
"remotion": "4.0.216"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/mime-types": "2.1.1",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"pureimage": "0.4.13",
|
|
38
38
|
"vitest": "0.31.1",
|
|
39
39
|
"zip-lib": "^0.7.2",
|
|
40
|
-
"@remotion/bundler": "4.0.
|
|
41
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
40
|
+
"@remotion/bundler": "4.0.216",
|
|
41
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.216"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@remotion/bundler": "4.0.
|
|
44
|
+
"@remotion/bundler": "4.0.216"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|