@remotion/lambda 3.3.33 → 3.3.35
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/functions/helpers/concat-videos.js +2 -3
- package/dist/functions/helpers/expected-out-name.js +1 -1
- package/dist/functions/launch.js +1 -1
- package/dist/functions/renderer.js +4 -2
- package/dist/shared/constants.d.ts +1 -1
- package/dist/shared/validate-lambda-codec.d.ts +1 -1
- package/dist/shared/validate-lambda-codec.js +0 -1
- package/package.json +8 -8
- package/remotionlambda-arm64.zip +0 -0
- package/remotionlambda-x64.zip +0 -0
- package/remotionlambda.zip +0 -0
|
@@ -130,17 +130,16 @@ const getAllFilesS3 = ({ bucket, expectedFiles, outdir, renderId, region, expect
|
|
|
130
130
|
exports.getAllFilesS3 = getAllFilesS3;
|
|
131
131
|
const concatVideosS3 = async ({ onProgress, numberOfFrames, codec, fps, numberOfGifLoops, ffmpegExecutable, remotionRoot, files, outdir, }) => {
|
|
132
132
|
var _a;
|
|
133
|
-
const outfile = (0, path_1.join)(renderer_1.RenderInternals.tmpDir(constants_1.REMOTION_CONCATED_TOKEN), 'concat.' + renderer_1.RenderInternals.getFileExtensionFromCodec(codec
|
|
133
|
+
const outfile = (0, path_1.join)(renderer_1.RenderInternals.tmpDir(constants_1.REMOTION_CONCATED_TOKEN), 'concat.' + renderer_1.RenderInternals.getFileExtensionFromCodec(codec));
|
|
134
134
|
const combine = (0, timer_1.timer)('Combine videos');
|
|
135
135
|
const filelistDir = renderer_1.RenderInternals.tmpDir(constants_1.REMOTION_FILELIST_TOKEN);
|
|
136
|
-
const codecForCombining = codec === 'h264-mkv' ? 'h264' : codec;
|
|
137
136
|
await renderer_1.RenderInternals.combineVideos({
|
|
138
137
|
files,
|
|
139
138
|
filelistDir,
|
|
140
139
|
output: outfile,
|
|
141
140
|
onProgress: (p) => onProgress(p),
|
|
142
141
|
numberOfFrames,
|
|
143
|
-
codec
|
|
142
|
+
codec,
|
|
144
143
|
fps,
|
|
145
144
|
numberOfGifLoops,
|
|
146
145
|
ffmpegExecutable,
|
|
@@ -38,7 +38,7 @@ const getExpectedOutName = (renderMetadata, bucketName, customCredentials) => {
|
|
|
38
38
|
if (renderMetadata.type === 'video') {
|
|
39
39
|
return {
|
|
40
40
|
renderBucketName: bucketName,
|
|
41
|
-
key: (0, defaults_1.outName)(renderMetadata.renderId, renderer_1.RenderInternals.getFileExtensionFromCodec(renderMetadata.codec
|
|
41
|
+
key: (0, defaults_1.outName)(renderMetadata.renderId, renderer_1.RenderInternals.getFileExtensionFromCodec(renderMetadata.codec)),
|
|
42
42
|
customCredentials: null,
|
|
43
43
|
};
|
|
44
44
|
}
|
package/dist/functions/launch.js
CHANGED
|
@@ -198,7 +198,7 @@ const innerLaunchHandler = async (params, options) => {
|
|
|
198
198
|
inputProps: params.inputProps,
|
|
199
199
|
renderId: params.renderId,
|
|
200
200
|
imageFormat: params.imageFormat,
|
|
201
|
-
codec: params.codec
|
|
201
|
+
codec: params.codec,
|
|
202
202
|
crf: params.crf,
|
|
203
203
|
envVariables: params.envVariables,
|
|
204
204
|
pixelFormat: params.pixelFormat,
|
|
@@ -43,8 +43,10 @@ const renderHandler = async (params, options, logs) => {
|
|
|
43
43
|
startDate: start,
|
|
44
44
|
};
|
|
45
45
|
const outdir = renderer_1.RenderInternals.tmpDir(constants_1.RENDERER_PATH_TOKEN);
|
|
46
|
-
const
|
|
47
|
-
|
|
46
|
+
const chunkCodec = params.codec === 'gif' || params.codec === 'h264'
|
|
47
|
+
? 'h264-mkv'
|
|
48
|
+
: params.codec;
|
|
49
|
+
const outputLocation = path_1.default.join(outdir, `localchunk-${String(params.chunk).padStart(8, '0')}.${renderer_1.RenderInternals.getFileExtensionFromCodec(chunkCodec)}`);
|
|
48
50
|
const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
|
|
49
51
|
const downloads = {};
|
|
50
52
|
const inputProps = await inputPropsPromise;
|
|
@@ -201,7 +201,7 @@ export declare type LambdaPayloads = {
|
|
|
201
201
|
inputProps: SerializedInputProps;
|
|
202
202
|
renderId: string;
|
|
203
203
|
imageFormat: ImageFormat;
|
|
204
|
-
codec:
|
|
204
|
+
codec: LambdaCodec;
|
|
205
205
|
crf: number | undefined;
|
|
206
206
|
proResProfile: ProResProfile | undefined;
|
|
207
207
|
pixelFormat: PixelFormat | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const lambdaCodecs: readonly ["h264
|
|
1
|
+
declare const lambdaCodecs: readonly ["h264", "vp8", "mp3", "aac", "wav", "gif", "prores"];
|
|
2
2
|
export declare type LambdaCodec = typeof lambdaCodecs[number];
|
|
3
3
|
export declare const validateLambdaCodec: (codec: unknown) => LambdaCodec;
|
|
4
4
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.35",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"@aws-sdk/credential-providers": "3.215.0",
|
|
34
34
|
"@aws-sdk/lib-storage": "3.215.0",
|
|
35
35
|
"@aws-sdk/s3-request-presigner": "3.215.0",
|
|
36
|
-
"@remotion/bundler": "3.3.
|
|
37
|
-
"@remotion/cli": "3.3.
|
|
38
|
-
"@remotion/renderer": "3.3.
|
|
36
|
+
"@remotion/bundler": "3.3.35",
|
|
37
|
+
"@remotion/cli": "3.3.35",
|
|
38
|
+
"@remotion/renderer": "3.3.35",
|
|
39
39
|
"aws-policies": "^1.0.1",
|
|
40
40
|
"mime-types": "2.1.34",
|
|
41
|
-
"remotion": "3.3.
|
|
41
|
+
"remotion": "3.3.35"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8.0",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@jonny/eslint-config": "3.0.266",
|
|
49
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
50
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
49
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.35",
|
|
50
|
+
"@remotion/compositor-linux-x64-musl": "3.3.35",
|
|
51
51
|
"@types/mime-types": "2.1.1",
|
|
52
52
|
"@types/minimist": "1.2.2",
|
|
53
53
|
"@types/node": "^14.14.14",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "92344ca937e4c51b8484f79528e3c38d598f7053"
|
|
67
67
|
}
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|
package/remotionlambda-x64.zip
CHANGED
|
Binary file
|
|
Binary file
|