@remotion/renderer 4.0.252 → 4.0.254
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/client.d.ts +47 -2
- package/dist/get-codec-name.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/options/api-key.d.ts +15 -0
- package/dist/options/api-key.js +29 -0
- package/dist/options/gl.d.ts +1 -1
- package/dist/options/index.d.ts +17 -2
- package/dist/options/index.js +2 -0
- package/dist/options/metadata.d.ts +1 -1
- package/dist/options/options-map.d.ts +30 -0
- package/dist/options/options-map.js +3 -0
- package/dist/options/webhook-custom-data.d.ts +1 -1
- package/dist/path-normalize.js +0 -1
- package/package.json +12 -12
package/dist/client.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ export declare const BrowserSafeApis: {
|
|
|
394
394
|
webhookCustomDataOption: {
|
|
395
395
|
name: string;
|
|
396
396
|
cliFlag: "webhook-custom-data";
|
|
397
|
-
description: (type: "
|
|
397
|
+
description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
|
|
398
398
|
ssrName: "customData";
|
|
399
399
|
docLink: string;
|
|
400
400
|
type: Record<string, unknown> | null;
|
|
@@ -807,7 +807,7 @@ export declare const BrowserSafeApis: {
|
|
|
807
807
|
metadataOption: {
|
|
808
808
|
name: string;
|
|
809
809
|
cliFlag: "metadata";
|
|
810
|
-
description: (mode: "
|
|
810
|
+
description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
|
|
811
811
|
docLink: string;
|
|
812
812
|
type: import("./options/metadata").Metadata;
|
|
813
813
|
getValue: ({ commandLine }: {
|
|
@@ -851,6 +851,21 @@ export declare const BrowserSafeApis: {
|
|
|
851
851
|
setConfig: (newChromeMode: import("./options/chrome-mode").ChromeMode) => void;
|
|
852
852
|
type: import("./options/chrome-mode").ChromeMode;
|
|
853
853
|
};
|
|
854
|
+
apiKeyOption: {
|
|
855
|
+
name: string;
|
|
856
|
+
cliFlag: "api-key";
|
|
857
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
858
|
+
ssrName: "apiKey";
|
|
859
|
+
docLink: string;
|
|
860
|
+
type: string | null;
|
|
861
|
+
getValue: ({ commandLine }: {
|
|
862
|
+
commandLine: Record<string, unknown>;
|
|
863
|
+
}) => {
|
|
864
|
+
source: string;
|
|
865
|
+
value: string | null;
|
|
866
|
+
};
|
|
867
|
+
setConfig: (value: string | null) => void;
|
|
868
|
+
};
|
|
854
869
|
};
|
|
855
870
|
validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
|
|
856
871
|
optionsMap: {
|
|
@@ -1862,6 +1877,21 @@ export declare const BrowserSafeApis: {
|
|
|
1862
1877
|
};
|
|
1863
1878
|
setConfig: (value: number) => void;
|
|
1864
1879
|
};
|
|
1880
|
+
readonly apiKey: {
|
|
1881
|
+
name: string;
|
|
1882
|
+
cliFlag: "api-key";
|
|
1883
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1884
|
+
ssrName: "apiKey";
|
|
1885
|
+
docLink: string;
|
|
1886
|
+
type: string | null;
|
|
1887
|
+
getValue: ({ commandLine }: {
|
|
1888
|
+
commandLine: Record<string, unknown>;
|
|
1889
|
+
}) => {
|
|
1890
|
+
source: string;
|
|
1891
|
+
value: string | null;
|
|
1892
|
+
};
|
|
1893
|
+
setConfig: (value: string | null) => void;
|
|
1894
|
+
};
|
|
1865
1895
|
};
|
|
1866
1896
|
readonly renderStillOnLambda: {
|
|
1867
1897
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -1960,6 +1990,21 @@ export declare const BrowserSafeApis: {
|
|
|
1960
1990
|
};
|
|
1961
1991
|
setConfig: (value: number) => void;
|
|
1962
1992
|
};
|
|
1993
|
+
readonly apiKey: {
|
|
1994
|
+
name: string;
|
|
1995
|
+
cliFlag: "api-key";
|
|
1996
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1997
|
+
ssrName: "apiKey";
|
|
1998
|
+
docLink: string;
|
|
1999
|
+
type: string | null;
|
|
2000
|
+
getValue: ({ commandLine }: {
|
|
2001
|
+
commandLine: Record<string, unknown>;
|
|
2002
|
+
}) => {
|
|
2003
|
+
source: string;
|
|
2004
|
+
value: string | null;
|
|
2005
|
+
};
|
|
2006
|
+
setConfig: (value: string | null) => void;
|
|
2007
|
+
};
|
|
1963
2008
|
};
|
|
1964
2009
|
readonly getCompositionsOnLambda: {
|
|
1965
2010
|
readonly offthreadVideoCacheSizeInBytes: {
|
package/dist/get-codec-name.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const hasSpecifiedUnsupportedHardwareQualifySettings: ({ encoding
|
|
|
9
9
|
encodingMaxRate: string | null;
|
|
10
10
|
encodingBufferSize: string | null;
|
|
11
11
|
crf: unknown;
|
|
12
|
-
}) => "
|
|
12
|
+
}) => "crf" | "encodingBufferSize" | "encodingMaxRate" | null;
|
|
13
13
|
export declare const getCodecName: ({ codec, encodingMaxRate, encodingBufferSize, crf, hardwareAcceleration, logLevel, indent, }: {
|
|
14
14
|
codec: Codec;
|
|
15
15
|
hardwareAcceleration: HardwareAccelerationOption;
|
package/dist/index.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ export declare const RenderInternals: {
|
|
|
140
140
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
141
141
|
DEFAULT_BROWSER: "chrome";
|
|
142
142
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
143
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
143
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
144
144
|
validateOpenGlRenderer: (option: unknown) => import("./options/gl").OpenGlRenderer | null;
|
|
145
145
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
146
146
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -353,8 +353,8 @@ export declare const RenderInternals: {
|
|
|
353
353
|
}) => execa.ExecaChildProcess<string>;
|
|
354
354
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
355
355
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
356
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
357
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
356
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
357
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
358
358
|
DEFAULT_JPEG_QUALITY: number;
|
|
359
359
|
chalk: {
|
|
360
360
|
enabled: () => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const apiKeyOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "api-key";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "apiKey";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: string | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: string | null;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: string | null) => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.apiKeyOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let currentApiKey = null;
|
|
6
|
+
const cliFlag = 'api-key';
|
|
7
|
+
exports.apiKeyOption = {
|
|
8
|
+
name: 'API key',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["API key for sending a usage event using ", (0, jsx_runtime_1.jsx)("code", { children: "@remotion/licensing" }), "."] })),
|
|
11
|
+
ssrName: 'apiKey',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/licensing',
|
|
13
|
+
type: null,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
return {
|
|
17
|
+
source: 'cli',
|
|
18
|
+
value: commandLine[cliFlag],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
source: 'default',
|
|
23
|
+
value: currentApiKey,
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
setConfig: (value) => {
|
|
27
|
+
currentApiKey = value;
|
|
28
|
+
},
|
|
29
|
+
};
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
2
2
|
export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
|
|
3
3
|
export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
|
|
4
|
-
export declare const getChromiumOpenGlRenderer: () => "
|
|
4
|
+
export declare const getChromiumOpenGlRenderer: () => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
5
5
|
export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
|
|
6
6
|
export declare const glOption: {
|
|
7
7
|
cliFlag: "gl";
|
package/dist/options/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export declare const allOptions: {
|
|
|
171
171
|
webhookCustomDataOption: {
|
|
172
172
|
name: string;
|
|
173
173
|
cliFlag: "webhook-custom-data";
|
|
174
|
-
description: (type: "
|
|
174
|
+
description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
|
|
175
175
|
ssrName: "customData";
|
|
176
176
|
docLink: string;
|
|
177
177
|
type: Record<string, unknown> | null;
|
|
@@ -584,7 +584,7 @@ export declare const allOptions: {
|
|
|
584
584
|
metadataOption: {
|
|
585
585
|
name: string;
|
|
586
586
|
cliFlag: "metadata";
|
|
587
|
-
description: (mode: "
|
|
587
|
+
description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
|
|
588
588
|
docLink: string;
|
|
589
589
|
type: import("./metadata").Metadata;
|
|
590
590
|
getValue: ({ commandLine }: {
|
|
@@ -628,6 +628,21 @@ export declare const allOptions: {
|
|
|
628
628
|
setConfig: (newChromeMode: import("./chrome-mode").ChromeMode) => void;
|
|
629
629
|
type: import("./chrome-mode").ChromeMode;
|
|
630
630
|
};
|
|
631
|
+
apiKeyOption: {
|
|
632
|
+
name: string;
|
|
633
|
+
cliFlag: "api-key";
|
|
634
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
635
|
+
ssrName: "apiKey";
|
|
636
|
+
docLink: string;
|
|
637
|
+
type: string | null;
|
|
638
|
+
getValue: ({ commandLine }: {
|
|
639
|
+
commandLine: Record<string, unknown>;
|
|
640
|
+
}) => {
|
|
641
|
+
source: string;
|
|
642
|
+
value: string | null;
|
|
643
|
+
};
|
|
644
|
+
setConfig: (value: string | null) => void;
|
|
645
|
+
};
|
|
631
646
|
};
|
|
632
647
|
export type AvailableOptions = keyof typeof allOptions;
|
|
633
648
|
export type TypeOfOption<Type> = Type extends AnyRemotionOption<infer X> ? X : never;
|
package/dist/options/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.allOptions = void 0;
|
|
4
|
+
const api_key_1 = require("./api-key");
|
|
4
5
|
const audio_bitrate_1 = require("./audio-bitrate");
|
|
5
6
|
const audio_codec_1 = require("./audio-codec");
|
|
6
7
|
const beep_on_finish_1 = require("./beep-on-finish");
|
|
@@ -80,4 +81,5 @@ exports.allOptions = {
|
|
|
80
81
|
metadataOption: metadata_1.metadataOption,
|
|
81
82
|
hardwareAccelerationOption: hardware_acceleration_1.hardwareAccelerationOption,
|
|
82
83
|
chromeModeOption: chrome_mode_1.chromeModeOption,
|
|
84
|
+
apiKeyOption: api_key_1.apiKeyOption,
|
|
83
85
|
};
|
|
@@ -2,7 +2,7 @@ export type Metadata = Record<string, string>;
|
|
|
2
2
|
export declare const metadataOption: {
|
|
3
3
|
name: string;
|
|
4
4
|
cliFlag: "metadata";
|
|
5
|
-
description: (mode: "
|
|
5
|
+
description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
docLink: string;
|
|
7
7
|
type: Metadata;
|
|
8
8
|
getValue: ({ commandLine }: {
|
|
@@ -1007,6 +1007,21 @@ export declare const optionsMap: {
|
|
|
1007
1007
|
};
|
|
1008
1008
|
setConfig: (value: number) => void;
|
|
1009
1009
|
};
|
|
1010
|
+
readonly apiKey: {
|
|
1011
|
+
name: string;
|
|
1012
|
+
cliFlag: "api-key";
|
|
1013
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1014
|
+
ssrName: "apiKey";
|
|
1015
|
+
docLink: string;
|
|
1016
|
+
type: string | null;
|
|
1017
|
+
getValue: ({ commandLine }: {
|
|
1018
|
+
commandLine: Record<string, unknown>;
|
|
1019
|
+
}) => {
|
|
1020
|
+
source: string;
|
|
1021
|
+
value: string | null;
|
|
1022
|
+
};
|
|
1023
|
+
setConfig: (value: string | null) => void;
|
|
1024
|
+
};
|
|
1010
1025
|
};
|
|
1011
1026
|
readonly renderStillOnLambda: {
|
|
1012
1027
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -1105,6 +1120,21 @@ export declare const optionsMap: {
|
|
|
1105
1120
|
};
|
|
1106
1121
|
setConfig: (value: number) => void;
|
|
1107
1122
|
};
|
|
1123
|
+
readonly apiKey: {
|
|
1124
|
+
name: string;
|
|
1125
|
+
cliFlag: "api-key";
|
|
1126
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1127
|
+
ssrName: "apiKey";
|
|
1128
|
+
docLink: string;
|
|
1129
|
+
type: string | null;
|
|
1130
|
+
getValue: ({ commandLine }: {
|
|
1131
|
+
commandLine: Record<string, unknown>;
|
|
1132
|
+
}) => {
|
|
1133
|
+
source: string;
|
|
1134
|
+
value: string | null;
|
|
1135
|
+
};
|
|
1136
|
+
setConfig: (value: string | null) => void;
|
|
1137
|
+
};
|
|
1108
1138
|
};
|
|
1109
1139
|
readonly getCompositionsOnLambda: {
|
|
1110
1140
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.optionsMap = void 0;
|
|
4
|
+
const api_key_1 = require("./api-key");
|
|
4
5
|
const audio_bitrate_1 = require("./audio-bitrate");
|
|
5
6
|
const audio_codec_1 = require("./audio-codec");
|
|
6
7
|
const binaries_directory_1 = require("./binaries-directory");
|
|
@@ -105,6 +106,7 @@ exports.optionsMap = {
|
|
|
105
106
|
muted: mute_1.mutedOption,
|
|
106
107
|
logLevel: log_level_1.logLevelOption,
|
|
107
108
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
109
|
+
apiKey: api_key_1.apiKeyOption,
|
|
108
110
|
},
|
|
109
111
|
renderStillOnLambda: {
|
|
110
112
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
@@ -113,6 +115,7 @@ exports.optionsMap = {
|
|
|
113
115
|
deleteAfter: delete_after_1.deleteAfterOption,
|
|
114
116
|
scale: scale_1.scaleOption,
|
|
115
117
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
118
|
+
apiKey: api_key_1.apiKeyOption,
|
|
116
119
|
},
|
|
117
120
|
getCompositionsOnLambda: {
|
|
118
121
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const webhookCustomDataOption: {
|
|
2
2
|
name: string;
|
|
3
3
|
cliFlag: "webhook-custom-data";
|
|
4
|
-
description: (type: "
|
|
4
|
+
description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
ssrName: "customData";
|
|
6
6
|
docLink: string;
|
|
7
7
|
type: Record<string, unknown> | null;
|
package/dist/path-normalize.js
CHANGED
|
@@ -11,7 +11,6 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
11
11
|
|
|
12
12
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13
13
|
*/
|
|
14
|
-
/* eslint-disable max-depth */
|
|
15
14
|
const SLASH = 47;
|
|
16
15
|
const DOT = 46;
|
|
17
16
|
const assertPath = (path) => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.254",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"
|
|
22
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.254",
|
|
22
|
+
"@remotion/streaming": "4.0.254"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"react-dom": "19.0.0",
|
|
34
34
|
"@types/ws": "8.5.10",
|
|
35
35
|
"eslint": "9.14.0",
|
|
36
|
-
"@remotion/
|
|
37
|
-
"@remotion/
|
|
36
|
+
"@remotion/eslint-config-internal": "4.0.254",
|
|
37
|
+
"@remotion/example-videos": "4.0.254"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-
|
|
41
|
-
"@remotion/compositor-darwin-
|
|
42
|
-
"@remotion/compositor-linux-arm64-
|
|
43
|
-
"@remotion/compositor-
|
|
44
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.254",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.254",
|
|
42
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.254",
|
|
43
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.254",
|
|
44
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.254",
|
|
45
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.254",
|
|
46
|
+
"@remotion/compositor-linux-x64-musl": "4.0.254"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|