@remotion/renderer 4.0.423 → 4.0.424
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 +237 -13
- package/dist/combine-chunks.js +3 -0
- package/dist/ensure-browser.d.ts +3 -0
- package/dist/esm/client.mjs +317 -118
- package/dist/esm/index.mjs +14 -7
- package/dist/esm/pure.mjs +4 -2
- package/dist/ffmpeg-args.d.ts +1 -1
- package/dist/ffmpeg-args.js +1 -1
- package/dist/index.d.ts +44 -0
- package/dist/mux-video-and-audio.d.ts +2 -1
- package/dist/mux-video-and-audio.js +6 -1
- package/dist/options/api-key.d.ts +1 -0
- package/dist/options/api-key.js +1 -0
- package/dist/options/ask-ai.d.ts +1 -0
- package/dist/options/ask-ai.js +1 -0
- package/dist/options/audio-bitrate.d.ts +1 -0
- package/dist/options/audio-bitrate.js +1 -0
- package/dist/options/audio-codec.d.ts +1 -0
- package/dist/options/audio-codec.js +1 -0
- package/dist/options/beep-on-finish.d.ts +1 -0
- package/dist/options/beep-on-finish.js +1 -0
- package/dist/options/binaries-directory.d.ts +1 -0
- package/dist/options/binaries-directory.js +1 -0
- package/dist/options/chrome-mode.d.ts +1 -0
- package/dist/options/chrome-mode.js +1 -0
- package/dist/options/color-space.d.ts +5 -4
- package/dist/options/color-space.js +4 -2
- package/dist/options/crf.d.ts +1 -0
- package/dist/options/crf.js +1 -0
- package/dist/options/cross-site-isolation.d.ts +1 -0
- package/dist/options/cross-site-isolation.js +1 -0
- package/dist/options/dark-mode.d.ts +1 -0
- package/dist/options/dark-mode.js +1 -0
- package/dist/options/delete-after.d.ts +1 -0
- package/dist/options/delete-after.js +1 -0
- package/dist/options/disable-git-source.d.ts +1 -0
- package/dist/options/disable-git-source.js +1 -0
- package/dist/options/disallow-parallel-encoding.d.ts +1 -0
- package/dist/options/disallow-parallel-encoding.js +1 -0
- package/dist/options/enable-lambda-insights.d.ts +1 -0
- package/dist/options/enable-lambda-insights.js +1 -0
- package/dist/options/enable-multiprocess-on-linux.d.ts +1 -0
- package/dist/options/enable-multiprocess-on-linux.js +1 -0
- package/dist/options/encoding-buffer-size.d.ts +1 -0
- package/dist/options/encoding-buffer-size.js +1 -0
- package/dist/options/encoding-max-rate.d.ts +1 -0
- package/dist/options/encoding-max-rate.js +1 -0
- package/dist/options/enforce-audio.d.ts +1 -0
- package/dist/options/enforce-audio.js +1 -0
- package/dist/options/experimental-client-side-rendering.d.ts +1 -0
- package/dist/options/experimental-client-side-rendering.js +1 -0
- package/dist/options/folder-expiry.d.ts +1 -0
- package/dist/options/folder-expiry.js +1 -0
- package/dist/options/for-seamless-aac-concatenation.d.ts +1 -0
- package/dist/options/for-seamless-aac-concatenation.js +1 -0
- package/dist/options/force-new-studio.d.ts +1 -0
- package/dist/options/force-new-studio.js +1 -0
- package/dist/options/gl.d.ts +1 -0
- package/dist/options/gl.js +1 -0
- package/dist/options/hardware-acceleration.d.ts +1 -0
- package/dist/options/hardware-acceleration.js +1 -0
- package/dist/options/headless.d.ts +1 -0
- package/dist/options/headless.js +1 -0
- package/dist/options/image-sequence-pattern.d.ts +1 -0
- package/dist/options/image-sequence-pattern.js +1 -0
- package/dist/options/index.d.ts +97 -3
- package/dist/options/index.js +4 -0
- package/dist/options/ipv4.d.ts +1 -0
- package/dist/options/ipv4.js +1 -0
- package/dist/options/is-production.d.ts +1 -0
- package/dist/options/is-production.js +1 -0
- package/dist/options/jpeg-quality.d.ts +1 -0
- package/dist/options/jpeg-quality.js +1 -0
- package/dist/options/keyboard-shortcuts.d.ts +1 -0
- package/dist/options/keyboard-shortcuts.js +1 -0
- package/dist/options/latency-hint.d.ts +1 -0
- package/dist/options/latency-hint.js +1 -0
- package/dist/options/license-key.d.ts +1 -0
- package/dist/options/license-key.js +1 -0
- package/dist/options/log-level.d.ts +1 -0
- package/dist/options/log-level.js +1 -0
- package/dist/options/metadata.d.ts +1 -0
- package/dist/options/metadata.js +1 -0
- package/dist/options/mute.d.ts +1 -0
- package/dist/options/mute.js +1 -0
- package/dist/options/number-of-gif-loops.d.ts +1 -0
- package/dist/options/number-of-gif-loops.js +1 -0
- package/dist/options/number-of-shared-audio-tags.d.ts +1 -0
- package/dist/options/number-of-shared-audio-tags.js +1 -0
- package/dist/options/offthreadvideo-cache-size.d.ts +1 -0
- package/dist/options/offthreadvideo-cache-size.js +1 -0
- package/dist/options/offthreadvideo-threads.d.ts +1 -0
- package/dist/options/offthreadvideo-threads.js +1 -0
- package/dist/options/on-browser-download.d.ts +1 -0
- package/dist/options/on-browser-download.js +1 -0
- package/dist/options/option.d.ts +1 -0
- package/dist/options/options-map.d.ts +139 -9
- package/dist/options/overwrite.d.ts +1 -0
- package/dist/options/overwrite.js +1 -0
- package/dist/options/prefer-lossless.d.ts +1 -0
- package/dist/options/prefer-lossless.js +1 -0
- package/dist/options/public-dir.d.ts +1 -0
- package/dist/options/public-dir.js +1 -0
- package/dist/options/public-license-key.d.ts +1 -0
- package/dist/options/public-license-key.js +1 -0
- package/dist/options/public-path.d.ts +1 -0
- package/dist/options/public-path.js +1 -0
- package/dist/options/repro.d.ts +1 -0
- package/dist/options/repro.js +1 -0
- package/dist/options/scale.d.ts +1 -0
- package/dist/options/scale.js +1 -0
- package/dist/options/separate-audio.d.ts +1 -0
- package/dist/options/separate-audio.js +1 -0
- package/dist/options/still-image-format.d.ts +19 -0
- package/dist/options/still-image-format.js +55 -0
- package/dist/options/throw-if-site-exists.d.ts +1 -0
- package/dist/options/throw-if-site-exists.js +1 -0
- package/dist/options/timeout.d.ts +1 -0
- package/dist/options/timeout.js +1 -0
- package/dist/options/video-bitrate.d.ts +1 -0
- package/dist/options/video-bitrate.js +1 -0
- package/dist/options/video-cache-size.d.ts +1 -0
- package/dist/options/video-cache-size.js +1 -0
- package/dist/options/video-codec.d.ts +1 -0
- package/dist/options/video-codec.js +1 -0
- package/dist/options/video-image-format.d.ts +19 -0
- package/dist/options/video-image-format.js +55 -0
- package/dist/options/webhook-custom-data.d.ts +1 -0
- package/dist/options/webhook-custom-data.js +1 -0
- package/dist/options/x264-preset.d.ts +1 -0
- package/dist/options/x264-preset.js +1 -0
- package/dist/validate-number-of-gif-loops.js +1 -1
- package/package.json +14 -14
- package/dist/options/private-license-key.d.ts +0 -15
- package/dist/options/private-license-key.js +0 -35
package/dist/options/repro.d.ts
CHANGED
package/dist/options/repro.js
CHANGED
package/dist/options/scale.d.ts
CHANGED
package/dist/options/scale.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const stillImageFormatOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "image-format";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "imageFormat";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: "jpeg" | "pdf" | "png" | "webp" | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: "jpeg" | "pdf" | "png" | "webp";
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (value: "jpeg" | "pdf" | "png" | "webp" | null) => void;
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stillImageFormatOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const image_format_1 = require("../image-format");
|
|
6
|
+
let currentStillImageFormat = null;
|
|
7
|
+
const cliFlag = 'image-format';
|
|
8
|
+
exports.stillImageFormatOption = {
|
|
9
|
+
name: 'Still Image Format',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The image format to use when rendering a still. Must be one of", ' ', image_format_1.validStillImageFormats.map((f) => `"${f}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"png\"" }),
|
|
12
|
+
"."] })),
|
|
13
|
+
ssrName: 'imageFormat',
|
|
14
|
+
docLink: 'https://www.remotion.dev/docs/renderer/render-still#imageformat',
|
|
15
|
+
type: null,
|
|
16
|
+
getValue: ({ commandLine }) => {
|
|
17
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
18
|
+
const value = commandLine[cliFlag];
|
|
19
|
+
if (!image_format_1.validStillImageFormats.includes(value)) {
|
|
20
|
+
throw new Error(`Invalid still image format: ${value}. Must be one of: ${image_format_1.validStillImageFormats.join(', ')}`);
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
source: 'cli',
|
|
24
|
+
value,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (currentStillImageFormat !== null) {
|
|
28
|
+
return {
|
|
29
|
+
source: 'config',
|
|
30
|
+
value: currentStillImageFormat,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
source: 'default',
|
|
35
|
+
value: null,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
setConfig: (value) => {
|
|
39
|
+
if (value === null) {
|
|
40
|
+
currentStillImageFormat = null;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!image_format_1.validStillImageFormats.includes(value)) {
|
|
44
|
+
throw new TypeError([
|
|
45
|
+
`Value ${value} is not valid as a still image format.`,
|
|
46
|
+
// @ts-expect-error
|
|
47
|
+
value === 'jpg' ? 'Did you mean "jpeg"?' : null,
|
|
48
|
+
]
|
|
49
|
+
.filter(Boolean)
|
|
50
|
+
.join(' '));
|
|
51
|
+
}
|
|
52
|
+
currentStillImageFormat = value;
|
|
53
|
+
},
|
|
54
|
+
id: 'still-image-format',
|
|
55
|
+
};
|
package/dist/options/timeout.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const videoImageFormatOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "image-format";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "imageFormat";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: "jpeg" | "none" | "png" | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: "jpeg" | "none" | "png";
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (value: "jpeg" | "none" | "png" | null) => void;
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.videoImageFormatOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const image_format_1 = require("../image-format");
|
|
6
|
+
let currentVideoImageFormat = null;
|
|
7
|
+
const cliFlag = 'image-format';
|
|
8
|
+
exports.videoImageFormatOption = {
|
|
9
|
+
name: 'Video Image Format',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The image format to use when rendering frames for a video. Must be one of", ' ', image_format_1.validVideoImageFormats.map((f) => `"${f}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"jpeg\"" }),
|
|
12
|
+
". JPEG is faster, but does not support transparency."] })),
|
|
13
|
+
ssrName: 'imageFormat',
|
|
14
|
+
docLink: 'https://www.remotion.dev/docs/renderer/render-media#imageformat',
|
|
15
|
+
type: null,
|
|
16
|
+
getValue: ({ commandLine }) => {
|
|
17
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
18
|
+
const value = commandLine[cliFlag];
|
|
19
|
+
if (!image_format_1.validVideoImageFormats.includes(value)) {
|
|
20
|
+
throw new Error(`Invalid video image format: ${value}. Must be one of: ${image_format_1.validVideoImageFormats.join(', ')}`);
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
source: 'cli',
|
|
24
|
+
value,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (currentVideoImageFormat !== null) {
|
|
28
|
+
return {
|
|
29
|
+
source: 'config',
|
|
30
|
+
value: currentVideoImageFormat,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
source: 'default',
|
|
35
|
+
value: null,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
setConfig: (value) => {
|
|
39
|
+
if (value === null) {
|
|
40
|
+
currentVideoImageFormat = null;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!image_format_1.validVideoImageFormats.includes(value)) {
|
|
44
|
+
throw new TypeError([
|
|
45
|
+
`Value ${value} is not valid as a video image format.`,
|
|
46
|
+
// @ts-expect-error
|
|
47
|
+
value === 'jpg' ? 'Did you mean "jpeg"?' : null,
|
|
48
|
+
]
|
|
49
|
+
.filter(Boolean)
|
|
50
|
+
.join(' '));
|
|
51
|
+
}
|
|
52
|
+
currentVideoImageFormat = value;
|
|
53
|
+
},
|
|
54
|
+
id: 'video-image-format',
|
|
55
|
+
};
|
|
@@ -18,7 +18,7 @@ const validateNumberOfGifLoops = (numberOfGifLoops, codec) => {
|
|
|
18
18
|
throw new RangeError(`Argument for numberOfGifLoops must be an integer, but got ${numberOfGifLoops}`);
|
|
19
19
|
}
|
|
20
20
|
if (codec !== 'gif') {
|
|
21
|
-
throw new Error(`"
|
|
21
|
+
throw new Error(`"numberOfGifLoops" can only be set if "codec" is set to "gif". The codec is "${codec}"`);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.validateNumberOfGifLoops = validateNumberOfGifLoops;
|
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.424",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5.1.1",
|
|
25
25
|
"extract-zip": "2.0.1",
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
26
|
+
"remotion": "4.0.424",
|
|
27
|
+
"@remotion/streaming": "4.0.424",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.17.1",
|
|
30
|
-
"@remotion/licensing": "4.0.
|
|
30
|
+
"@remotion/licensing": "4.0.424"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=16.8.0",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"@happy-dom/global-registrator": "14.5.1",
|
|
40
40
|
"react": "19.2.3",
|
|
41
41
|
"react-dom": "19.2.3",
|
|
42
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
42
|
+
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
43
43
|
"@types/ws": "8.5.10",
|
|
44
|
-
"@remotion/example-videos": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/example-videos": "4.0.424",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.424",
|
|
46
46
|
"eslint": "9.19.0",
|
|
47
47
|
"@types/node": "20.12.14"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
51
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
52
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
55
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
56
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
50
|
+
"@remotion/compositor-darwin-arm64": "4.0.424",
|
|
51
|
+
"@remotion/compositor-darwin-x64": "4.0.424",
|
|
52
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.424",
|
|
53
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.424",
|
|
54
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.424",
|
|
55
|
+
"@remotion/compositor-linux-x64-musl": "4.0.424",
|
|
56
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.424"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"remotion",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const privateLicenseKeyOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "private-license-key";
|
|
4
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
ssrName: "privateLicenseKey";
|
|
6
|
-
docLink: string;
|
|
7
|
-
getValue: ({ commandLine }: {
|
|
8
|
-
commandLine: Record<string, unknown>;
|
|
9
|
-
}) => {
|
|
10
|
-
source: string;
|
|
11
|
-
value: string | null;
|
|
12
|
-
};
|
|
13
|
-
setConfig: (value: string | null) => void;
|
|
14
|
-
type: string | null;
|
|
15
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.privateLicenseKeyOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'private-license-key';
|
|
6
|
-
let currentPrivateLicenseKey = null;
|
|
7
|
-
exports.privateLicenseKeyOption = {
|
|
8
|
-
name: 'Private License Key',
|
|
9
|
-
cliFlag,
|
|
10
|
-
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The private license key for your company license, obtained from the \"Usage\" tab on ", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.pro/dashboard", children: "remotion.pro" }), ". If you are eligible for the free license, pass \"free-license\"."] })),
|
|
11
|
-
ssrName: 'privateLicenseKey',
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/licensing',
|
|
13
|
-
getValue: ({ commandLine }) => {
|
|
14
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
-
return {
|
|
16
|
-
source: 'cli',
|
|
17
|
-
value: commandLine[cliFlag],
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
if (currentPrivateLicenseKey !== null) {
|
|
21
|
-
return {
|
|
22
|
-
source: 'config',
|
|
23
|
-
value: currentPrivateLicenseKey,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
source: 'default',
|
|
28
|
-
value: null,
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
setConfig: (value) => {
|
|
32
|
-
currentPrivateLicenseKey = value;
|
|
33
|
-
},
|
|
34
|
-
type: null,
|
|
35
|
-
};
|