@remotion/lambda-client 4.0.500 → 4.0.502
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/cjs/index.js
CHANGED
|
@@ -70639,6 +70639,49 @@ var borderSchema = {
|
|
|
70639
70639
|
description: "Border color"
|
|
70640
70640
|
}
|
|
70641
70641
|
};
|
|
70642
|
+
var borderRadiusSchema = {
|
|
70643
|
+
"style.borderRadius": {
|
|
70644
|
+
type: "number",
|
|
70645
|
+
default: 0,
|
|
70646
|
+
min: 0,
|
|
70647
|
+
step: 1,
|
|
70648
|
+
description: "Border radius",
|
|
70649
|
+
hiddenFromList: false,
|
|
70650
|
+
keyframable: true
|
|
70651
|
+
},
|
|
70652
|
+
"style.borderTopLeftRadius": {
|
|
70653
|
+
type: "number",
|
|
70654
|
+
default: 0,
|
|
70655
|
+
min: 0,
|
|
70656
|
+
step: 1,
|
|
70657
|
+
description: "Top left radius",
|
|
70658
|
+
hiddenFromList: false
|
|
70659
|
+
},
|
|
70660
|
+
"style.borderTopRightRadius": {
|
|
70661
|
+
type: "number",
|
|
70662
|
+
default: 0,
|
|
70663
|
+
min: 0,
|
|
70664
|
+
step: 1,
|
|
70665
|
+
description: "Top right radius",
|
|
70666
|
+
hiddenFromList: false
|
|
70667
|
+
},
|
|
70668
|
+
"style.borderBottomRightRadius": {
|
|
70669
|
+
type: "number",
|
|
70670
|
+
default: 0,
|
|
70671
|
+
min: 0,
|
|
70672
|
+
step: 1,
|
|
70673
|
+
description: "Bottom right radius",
|
|
70674
|
+
hiddenFromList: false
|
|
70675
|
+
},
|
|
70676
|
+
"style.borderBottomLeftRadius": {
|
|
70677
|
+
type: "number",
|
|
70678
|
+
default: 0,
|
|
70679
|
+
min: 0,
|
|
70680
|
+
step: 1,
|
|
70681
|
+
description: "Bottom left radius",
|
|
70682
|
+
hiddenFromList: false
|
|
70683
|
+
}
|
|
70684
|
+
};
|
|
70642
70685
|
var backgroundSchema = {
|
|
70643
70686
|
"style.backgroundColor": {
|
|
70644
70687
|
type: "color",
|
|
@@ -70739,6 +70782,7 @@ var sequenceStyleSchema = {
|
|
|
70739
70782
|
...transformSchema,
|
|
70740
70783
|
...backgroundSchema,
|
|
70741
70784
|
...borderSchema,
|
|
70785
|
+
...borderRadiusSchema,
|
|
70742
70786
|
...sequencePremountSchema
|
|
70743
70787
|
};
|
|
70744
70788
|
var hiddenField = {
|
|
@@ -71547,7 +71591,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
71547
71591
|
}
|
|
71548
71592
|
}
|
|
71549
71593
|
};
|
|
71550
|
-
var VERSION = "4.0.
|
|
71594
|
+
var VERSION = "4.0.502";
|
|
71551
71595
|
var isColorSupported = () => {
|
|
71552
71596
|
const env = process.env || {};
|
|
71553
71597
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -72334,11 +72378,12 @@ var getFramesToRender = (frameRange, everyNthFrame) => {
|
|
|
72334
72378
|
if (everyNthFrame === 0) {
|
|
72335
72379
|
throw new Error("everyNthFrame cannot be 0");
|
|
72336
72380
|
}
|
|
72337
|
-
|
|
72338
|
-
|
|
72381
|
+
const ranges = Array.isArray(frameRange[0]) ? frameRange : [frameRange];
|
|
72382
|
+
return ranges.flatMap((range) => new Array(range[1] - range[0] + 1).fill(true).map((_, index) => {
|
|
72383
|
+
return index + range[0];
|
|
72339
72384
|
}).filter((frame) => {
|
|
72340
|
-
return (frame -
|
|
72341
|
-
});
|
|
72385
|
+
return (frame - range[0]) % everyNthFrame === 0;
|
|
72386
|
+
}));
|
|
72342
72387
|
};
|
|
72343
72388
|
var validCodecs2 = [
|
|
72344
72389
|
"h264",
|
|
@@ -76509,6 +76554,9 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
|
|
|
76509
76554
|
};
|
|
76510
76555
|
var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
|
|
76511
76556
|
var renderMediaOnLambda = (options) => {
|
|
76557
|
+
if (Array.isArray(options.frameRange) && Array.isArray(options.frameRange[0])) {
|
|
76558
|
+
throw new Error("Multiple frame ranges are not supported on Lambda. Use renderMedia() locally to render multiple ranges.");
|
|
76559
|
+
}
|
|
76512
76560
|
if (options.quality) {
|
|
76513
76561
|
throw new Error("quality has been renamed to jpegQuality. Please rename the option.");
|
|
76514
76562
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StorageClass } from '@aws-sdk/client-s3';
|
|
2
|
-
import type { _InternalTypes, AudioCodec, BrowserSafeApis, ChromiumOptions, ColorSpace, DeleteAfter, DownloadBehavior,
|
|
2
|
+
import type { _InternalTypes, AudioCodec, BrowserSafeApis, ChromiumOptions, ColorSpace, DeleteAfter, DownloadBehavior, LogLevel, OutNameInput, PixelFormat, Privacy, ServerlessCodec, SingleFrameRange, ServerlessStartPayload, ServerlessStatusPayload, ToOptions, VideoImageFormat, WebhookOption, X264Preset } from '@remotion/serverless-client';
|
|
3
3
|
import { ServerlessRoutines } from '@remotion/serverless-client';
|
|
4
4
|
import type { AwsProvider } from './aws-provider';
|
|
5
5
|
import type { GetRenderProgressInput } from './get-render-progress';
|
|
@@ -26,7 +26,7 @@ export type InnerRenderMediaOnLambdaInput = {
|
|
|
26
26
|
framesPerLambda: number | null;
|
|
27
27
|
concurrency: number | null;
|
|
28
28
|
logLevel: LogLevel;
|
|
29
|
-
frameRange:
|
|
29
|
+
frameRange: SingleFrameRange | null;
|
|
30
30
|
outName: OutNameInput<AwsProvider> | null;
|
|
31
31
|
timeoutInMilliseconds: number;
|
|
32
32
|
chromiumOptions: ChromiumOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StorageClass } from '@aws-sdk/client-s3';
|
|
2
|
-
import type { _InternalTypes, AudioCodec, BrowserSafeApis, ChromiumOptions, DownloadBehavior,
|
|
2
|
+
import type { _InternalTypes, AudioCodec, BrowserSafeApis, ChromiumOptions, DownloadBehavior, OutNameInput, PixelFormat, Privacy, ServerlessCodec, SingleFrameRange, ToOptions, VideoImageFormat, WebhookOption } from '@remotion/serverless-client';
|
|
3
3
|
import { type AwsProvider } from './aws-provider';
|
|
4
4
|
import type { InnerRenderMediaOnLambdaInput } from './make-lambda-payload';
|
|
5
5
|
import type { AwsRegion } from './regions';
|
|
@@ -25,7 +25,7 @@ export type RenderMediaOnLambdaInput = {
|
|
|
25
25
|
maxRetries?: number;
|
|
26
26
|
framesPerLambda?: number;
|
|
27
27
|
concurrency?: number;
|
|
28
|
-
frameRange?:
|
|
28
|
+
frameRange?: SingleFrameRange;
|
|
29
29
|
outName?: OutNameInput<AwsProvider>;
|
|
30
30
|
chromiumOptions?: Omit<ChromiumOptions, 'enableMultiProcessOnLinux'>;
|
|
31
31
|
scale?: number;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -69982,6 +69982,49 @@ var borderSchema = {
|
|
|
69982
69982
|
description: "Border color"
|
|
69983
69983
|
}
|
|
69984
69984
|
};
|
|
69985
|
+
var borderRadiusSchema = {
|
|
69986
|
+
"style.borderRadius": {
|
|
69987
|
+
type: "number",
|
|
69988
|
+
default: 0,
|
|
69989
|
+
min: 0,
|
|
69990
|
+
step: 1,
|
|
69991
|
+
description: "Border radius",
|
|
69992
|
+
hiddenFromList: false,
|
|
69993
|
+
keyframable: true
|
|
69994
|
+
},
|
|
69995
|
+
"style.borderTopLeftRadius": {
|
|
69996
|
+
type: "number",
|
|
69997
|
+
default: 0,
|
|
69998
|
+
min: 0,
|
|
69999
|
+
step: 1,
|
|
70000
|
+
description: "Top left radius",
|
|
70001
|
+
hiddenFromList: false
|
|
70002
|
+
},
|
|
70003
|
+
"style.borderTopRightRadius": {
|
|
70004
|
+
type: "number",
|
|
70005
|
+
default: 0,
|
|
70006
|
+
min: 0,
|
|
70007
|
+
step: 1,
|
|
70008
|
+
description: "Top right radius",
|
|
70009
|
+
hiddenFromList: false
|
|
70010
|
+
},
|
|
70011
|
+
"style.borderBottomRightRadius": {
|
|
70012
|
+
type: "number",
|
|
70013
|
+
default: 0,
|
|
70014
|
+
min: 0,
|
|
70015
|
+
step: 1,
|
|
70016
|
+
description: "Bottom right radius",
|
|
70017
|
+
hiddenFromList: false
|
|
70018
|
+
},
|
|
70019
|
+
"style.borderBottomLeftRadius": {
|
|
70020
|
+
type: "number",
|
|
70021
|
+
default: 0,
|
|
70022
|
+
min: 0,
|
|
70023
|
+
step: 1,
|
|
70024
|
+
description: "Bottom left radius",
|
|
70025
|
+
hiddenFromList: false
|
|
70026
|
+
}
|
|
70027
|
+
};
|
|
69985
70028
|
var backgroundSchema = {
|
|
69986
70029
|
"style.backgroundColor": {
|
|
69987
70030
|
type: "color",
|
|
@@ -70082,6 +70125,7 @@ var sequenceStyleSchema = {
|
|
|
70082
70125
|
...transformSchema,
|
|
70083
70126
|
...backgroundSchema,
|
|
70084
70127
|
...borderSchema,
|
|
70128
|
+
...borderRadiusSchema,
|
|
70085
70129
|
...sequencePremountSchema
|
|
70086
70130
|
};
|
|
70087
70131
|
var hiddenField = {
|
|
@@ -70890,7 +70934,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
70890
70934
|
}
|
|
70891
70935
|
}
|
|
70892
70936
|
};
|
|
70893
|
-
var VERSION = "4.0.
|
|
70937
|
+
var VERSION = "4.0.502";
|
|
70894
70938
|
var isColorSupported = () => {
|
|
70895
70939
|
const env = process.env || {};
|
|
70896
70940
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -71677,11 +71721,12 @@ var getFramesToRender = (frameRange, everyNthFrame) => {
|
|
|
71677
71721
|
if (everyNthFrame === 0) {
|
|
71678
71722
|
throw new Error("everyNthFrame cannot be 0");
|
|
71679
71723
|
}
|
|
71680
|
-
|
|
71681
|
-
|
|
71724
|
+
const ranges = Array.isArray(frameRange[0]) ? frameRange : [frameRange];
|
|
71725
|
+
return ranges.flatMap((range) => new Array(range[1] - range[0] + 1).fill(true).map((_, index) => {
|
|
71726
|
+
return index + range[0];
|
|
71682
71727
|
}).filter((frame) => {
|
|
71683
|
-
return (frame -
|
|
71684
|
-
});
|
|
71728
|
+
return (frame - range[0]) % everyNthFrame === 0;
|
|
71729
|
+
}));
|
|
71685
71730
|
};
|
|
71686
71731
|
var validCodecs2 = [
|
|
71687
71732
|
"h264",
|
|
@@ -76336,6 +76381,9 @@ var renderMediaOnLambdaOptionalToRequired = (options) => {
|
|
|
76336
76381
|
};
|
|
76337
76382
|
var wrapped = wrapWithErrorHandling(internalRenderMediaOnLambdaRaw);
|
|
76338
76383
|
var renderMediaOnLambda = (options) => {
|
|
76384
|
+
if (Array.isArray(options.frameRange) && Array.isArray(options.frameRange[0])) {
|
|
76385
|
+
throw new Error("Multiple frame ranges are not supported on Lambda. Use renderMedia() locally to render multiple ranges.");
|
|
76386
|
+
}
|
|
76339
76387
|
if (options.quality) {
|
|
76340
76388
|
throw new Error("quality has been renamed to jpegQuality. Please rename the option.");
|
|
76341
76389
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda-client"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/lambda-client",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.502",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"formatting": "oxfmt src --check",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@aws-sdk/lib-storage": "3.986.0",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"@aws-sdk/credential-provider-ini": "3.972.5",
|
|
29
|
-
"@remotion/serverless-client": "4.0.
|
|
29
|
+
"@remotion/serverless-client": "4.0.502",
|
|
30
30
|
"@types/express": "5.0.1",
|
|
31
31
|
"express": "4.21.0",
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.502",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.2.11",
|
|
35
35
|
"@types/mime-types": "2.1.1",
|