@remotion/lambda 4.0.51 → 4.0.52
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/download-media.d.ts +2 -0
- package/dist/api/download-media.js +2 -1
- package/dist/cli/commands/render/render.js +2 -0
- package/dist/cli/commands/still.js +1 -0
- package/dist/cli/log.d.ts +4 -4
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +4 -1
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/read-with-progress.d.ts +3 -1
- package/dist/functions/helpers/read-with-progress.js +3 -1
- package/dist/functions/helpers/streaming-payloads.d.ts +3 -3
- package/dist/functions/renderer.js +1 -0
- package/dist/shared/invoke-webhook.d.ts +0 -2
- package/package.json +8 -8
- package/remotionlambda-arm64.zip +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
import type { LambdaReadFileProgress } from '../functions/helpers/read-with-progress';
|
|
2
3
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
3
4
|
import type { CustomCredentials } from '../shared/aws-clients';
|
|
@@ -8,6 +9,7 @@ export type DownloadMediaInput = {
|
|
|
8
9
|
outPath: string;
|
|
9
10
|
onProgress?: LambdaReadFileProgress;
|
|
10
11
|
customCredentials?: CustomCredentials;
|
|
12
|
+
logLevel?: LogLevel;
|
|
11
13
|
};
|
|
12
14
|
export type DownloadMediaOutput = {
|
|
13
15
|
outputPath: string;
|
|
@@ -22,7 +22,7 @@ const get_account_id_1 = require("../shared/get-account-id");
|
|
|
22
22
|
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
23
23
|
*/
|
|
24
24
|
const downloadMedia = async (input) => {
|
|
25
|
-
var _a, _b;
|
|
25
|
+
var _a, _b, _c;
|
|
26
26
|
const expectedBucketOwner = await (0, get_account_id_1.getAccountId)({
|
|
27
27
|
region: input.region,
|
|
28
28
|
});
|
|
@@ -43,6 +43,7 @@ const downloadMedia = async (input) => {
|
|
|
43
43
|
onProgress: (_b = input.onProgress) !== null && _b !== void 0 ? _b : (() => undefined),
|
|
44
44
|
outputPath,
|
|
45
45
|
customCredentials,
|
|
46
|
+
logLevel: (_c = input.logLevel) !== null && _c !== void 0 ? _c : 'info',
|
|
46
47
|
});
|
|
47
48
|
return {
|
|
48
49
|
outputPath,
|
|
@@ -91,6 +91,7 @@ const renderCommand = async (args, remotionRoot) => {
|
|
|
91
91
|
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
92
92
|
configFile: (_b = config_1.ConfigInternals.getOutputCodecOrUndefined()) !== null && _b !== void 0 ? _b : null,
|
|
93
93
|
uiCodec: null,
|
|
94
|
+
compositionCodec: null,
|
|
94
95
|
});
|
|
95
96
|
const imageFormat = cli_1.CliInternals.getVideoImageFormat({
|
|
96
97
|
codec,
|
|
@@ -216,6 +217,7 @@ const renderCommand = async (args, remotionRoot) => {
|
|
|
216
217
|
outPath: downloadName,
|
|
217
218
|
region: (0, get_aws_region_1.getAwsRegion)(),
|
|
218
219
|
renderId: res.renderId,
|
|
220
|
+
logLevel,
|
|
219
221
|
onProgress: ({ downloaded, totalSize }) => {
|
|
220
222
|
progressBar.update((0, progress_1.makeProgressString)({
|
|
221
223
|
progress: newProgress,
|
package/dist/cli/log.d.ts
CHANGED
|
@@ -2,24 +2,24 @@ export declare const Log: {
|
|
|
2
2
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
3
3
|
verboseAdvanced: (options: {
|
|
4
4
|
indent: boolean;
|
|
5
|
-
logLevel: "
|
|
5
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
6
6
|
} & {
|
|
7
7
|
tag?: string | undefined;
|
|
8
8
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
9
9
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
10
10
|
infoAdvanced: (options: {
|
|
11
11
|
indent: boolean;
|
|
12
|
-
logLevel: "
|
|
12
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
13
13
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
14
14
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
15
15
|
warnAdvanced: (options: {
|
|
16
16
|
indent: boolean;
|
|
17
|
-
logLevel: "
|
|
17
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
18
18
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
19
19
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
20
20
|
errorAdvanced: (options: {
|
|
21
21
|
indent: boolean;
|
|
22
|
-
logLevel: "
|
|
22
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
23
23
|
} & {
|
|
24
24
|
tag?: string | undefined;
|
|
25
25
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
@@ -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";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
import type { AwsRegion } from '../../pricing/aws-regions';
|
|
2
3
|
import type { CustomCredentials } from '../../shared/aws-clients';
|
|
3
4
|
export type LambdaReadFileProgress = (progress: {
|
|
@@ -5,7 +6,7 @@ export type LambdaReadFileProgress = (progress: {
|
|
|
5
6
|
downloaded: number;
|
|
6
7
|
percent: number;
|
|
7
8
|
}) => unknown;
|
|
8
|
-
export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, }: {
|
|
9
|
+
export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, }: {
|
|
9
10
|
bucketName: string;
|
|
10
11
|
key: string;
|
|
11
12
|
region: AwsRegion;
|
|
@@ -13,6 +14,7 @@ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region,
|
|
|
13
14
|
outputPath: string;
|
|
14
15
|
onProgress: LambdaReadFileProgress;
|
|
15
16
|
customCredentials: CustomCredentials | null;
|
|
17
|
+
logLevel: LogLevel;
|
|
16
18
|
}) => Promise<{
|
|
17
19
|
sizeInBytes: number;
|
|
18
20
|
to: string;
|
|
@@ -5,7 +5,7 @@ const client_s3_1 = require("@aws-sdk/client-s3");
|
|
|
5
5
|
const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
|
|
6
6
|
const renderer_1 = require("@remotion/renderer");
|
|
7
7
|
const aws_clients_1 = require("../../shared/aws-clients");
|
|
8
|
-
const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, }) => {
|
|
8
|
+
const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, }) => {
|
|
9
9
|
const client = (0, aws_clients_1.getS3Client)(region, customCredentials);
|
|
10
10
|
const command = new client_s3_1.GetObjectCommand({
|
|
11
11
|
Bucket: bucketName,
|
|
@@ -24,6 +24,8 @@ const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expecte
|
|
|
24
24
|
});
|
|
25
25
|
},
|
|
26
26
|
to: () => outputPath,
|
|
27
|
+
indent: false,
|
|
28
|
+
logLevel,
|
|
27
29
|
});
|
|
28
30
|
return { sizeInBytes, to };
|
|
29
31
|
};
|
|
@@ -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 {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.52",
|
|
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": "4.0.
|
|
32
|
-
"@remotion/
|
|
29
|
+
"@remotion/bundler": "4.0.52",
|
|
30
|
+
"@remotion/cli": "4.0.52",
|
|
31
|
+
"remotion": "4.0.52",
|
|
32
|
+
"@remotion/renderer": "4.0.52"
|
|
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/bundler": "4.0.
|
|
47
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
46
|
+
"@remotion/bundler": "4.0.52",
|
|
47
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.52"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@remotion/bundler": "4.0.
|
|
50
|
+
"@remotion/bundler": "4.0.52"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|