@remotion/renderer 4.0.423 → 4.0.425
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 +448 -13
- package/dist/combine-chunks.js +3 -0
- package/dist/ensure-browser.d.ts +3 -0
- package/dist/esm/client.mjs +1262 -516
- 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 +45 -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/browser-executable.d.ts +17 -0
- package/dist/options/browser-executable.js +36 -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/concurrency.d.ts +17 -0
- package/dist/options/concurrency.js +40 -0
- 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/disable-web-security.d.ts +16 -0
- package/dist/options/disable-web-security.js +36 -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/every-nth-frame.d.ts +16 -0
- package/dist/options/every-nth-frame.js +42 -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/ignore-certificate-errors.d.ts +16 -0
- package/dist/options/ignore-certificate-errors.js +36 -0
- package/dist/options/image-format-option.d.ts +18 -0
- package/dist/options/image-format-option.js +33 -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 +307 -3
- package/dist/options/index.js +28 -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/override-duration.d.ts +19 -0
- package/dist/options/override-duration.js +46 -0
- package/dist/options/override-fps.d.ts +19 -0
- package/dist/options/override-fps.js +40 -0
- package/dist/options/override-height.d.ts +19 -0
- package/dist/options/override-height.js +40 -0
- package/dist/options/override-width.d.ts +19 -0
- package/dist/options/override-width.js +40 -0
- package/dist/options/overwrite.d.ts +1 -0
- package/dist/options/overwrite.js +1 -0
- package/dist/options/pixel-format.d.ts +16 -0
- package/dist/options/pixel-format.js +41 -0
- package/dist/options/prefer-lossless.d.ts +1 -0
- package/dist/options/prefer-lossless.js +1 -0
- package/dist/options/prores-profile.d.ts +20 -0
- package/dist/options/prores-profile.js +48 -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/user-agent.d.ts +19 -0
- package/dist/options/user-agent.js +36 -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 +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
|
|
1
|
+
export declare const validColorSpaces: readonly ["default", "bt601", "bt709", "bt2020-ncl"];
|
|
2
2
|
export type ColorSpace = (typeof validColorSpaces)[number];
|
|
3
3
|
export declare const DEFAULT_COLOR_SPACE: "default";
|
|
4
4
|
export declare const colorSpaceOption: {
|
|
@@ -7,13 +7,14 @@ export declare const colorSpaceOption: {
|
|
|
7
7
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
docLink: string;
|
|
9
9
|
ssrName: string;
|
|
10
|
-
type: "bt2020-ncl" | "bt709" | "default" | null;
|
|
10
|
+
type: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
11
11
|
getValue: ({ commandLine }: {
|
|
12
12
|
commandLine: Record<string, unknown>;
|
|
13
13
|
}) => {
|
|
14
14
|
source: string;
|
|
15
|
-
value: "bt2020-ncl" | "bt709" | "default";
|
|
15
|
+
value: "bt2020-ncl" | "bt601" | "bt709" | "default";
|
|
16
16
|
};
|
|
17
|
-
setConfig: (value: "bt2020-ncl" | "bt709" | "default" | null) => void;
|
|
17
|
+
setConfig: (value: "bt2020-ncl" | "bt601" | "bt709" | "default" | null) => void;
|
|
18
|
+
id: "color-space";
|
|
18
19
|
};
|
|
19
20
|
export declare const validateColorSpace: (option: unknown) => void;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validateColorSpace = exports.colorSpaceOption = exports.DEFAULT_COLOR_SPACE = exports.validColorSpaces = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const no_react_1 = require("remotion/no-react");
|
|
6
|
-
const validV4ColorSpaces = ['default', 'bt709', 'bt2020-ncl'];
|
|
6
|
+
const validV4ColorSpaces = ['default', 'bt601', 'bt709', 'bt2020-ncl'];
|
|
7
7
|
const validV5ColorSpaces = ['bt601', 'bt709', 'bt2020-ncl'];
|
|
8
8
|
exports.validColorSpaces = (no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES
|
|
9
9
|
? validV5ColorSpaces
|
|
@@ -16,7 +16,8 @@ exports.colorSpaceOption = {
|
|
|
16
16
|
cliFlag: 'color-space',
|
|
17
17
|
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Color space to use for the video. Acceptable values:", ' ', jsx_runtime_1.jsxs("code", { children: ['"', exports.DEFAULT_COLOR_SPACE, '"'] }),
|
|
18
18
|
"(default since 5.0),", ' ', no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? (jsx_runtime_1.jsxs("code", { children: ['"', "bt601", '"', ', '] })) : (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
19
|
-
jsx_runtime_1.jsxs("code", { children: ['"', "
|
|
19
|
+
jsx_runtime_1.jsxs("code", { children: ['"', "bt601", '"'] }), ' ', "(same as", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "default", '"'] }),
|
|
20
|
+
", since v4.0.424),", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "bt709", '"'] }), ' ', "(since v4.0.28),", ' '] })), jsx_runtime_1.jsxs("code", { children: ['"', "bt2020-ncl", '"'] }), ' ', "(since v4.0.88),", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "bt2020-cl", '"'] }), ' ', "(since v4.0.88), .",
|
|
20
21
|
jsx_runtime_1.jsx("br", {}),
|
|
21
22
|
"For best color accuracy, it is recommended to also use", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "png", '"'] }), ' ', "as the image format to have accurate color transformations throughout.",
|
|
22
23
|
jsx_runtime_1.jsx("br", {}),
|
|
@@ -45,6 +46,7 @@ exports.colorSpaceOption = {
|
|
|
45
46
|
setConfig: (value) => {
|
|
46
47
|
colorSpace = value !== null && value !== void 0 ? value : exports.DEFAULT_COLOR_SPACE;
|
|
47
48
|
},
|
|
49
|
+
id: cliFlag,
|
|
48
50
|
};
|
|
49
51
|
const validateColorSpace = (option) => {
|
|
50
52
|
if (exports.validColorSpaces.includes(option)) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Concurrency = number | string | null;
|
|
2
|
+
export declare const concurrencyOption: {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: "concurrency";
|
|
5
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
ssrName: "concurrency";
|
|
7
|
+
docLink: string;
|
|
8
|
+
type: Concurrency;
|
|
9
|
+
getValue: ({ commandLine }: {
|
|
10
|
+
commandLine: Record<string, unknown>;
|
|
11
|
+
}) => {
|
|
12
|
+
source: string;
|
|
13
|
+
value: Concurrency;
|
|
14
|
+
};
|
|
15
|
+
setConfig: (value: Concurrency) => void;
|
|
16
|
+
id: "concurrency";
|
|
17
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.concurrencyOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let currentConcurrency = null;
|
|
6
|
+
const cliFlag = 'concurrency';
|
|
7
|
+
exports.concurrencyOption = {
|
|
8
|
+
name: 'Concurrency',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["How many CPU threads to use. Minimum 1. The maximum is the amount of threads you have (In Node.JS ",
|
|
11
|
+
jsx_runtime_1.jsx("code", { children: "os.cpus().length" }),
|
|
12
|
+
"). You can also provide a percentage value (e.g. ",
|
|
13
|
+
jsx_runtime_1.jsx("code", { children: "50%" }),
|
|
14
|
+
")."] })),
|
|
15
|
+
ssrName: 'concurrency',
|
|
16
|
+
docLink: 'https://www.remotion.dev/docs/config#setconcurrency',
|
|
17
|
+
type: null,
|
|
18
|
+
getValue: ({ commandLine }) => {
|
|
19
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
20
|
+
return {
|
|
21
|
+
source: 'cli',
|
|
22
|
+
value: commandLine[cliFlag],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (currentConcurrency !== null) {
|
|
26
|
+
return {
|
|
27
|
+
source: 'config',
|
|
28
|
+
value: currentConcurrency,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
source: 'default',
|
|
33
|
+
value: null,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
setConfig: (value) => {
|
|
37
|
+
currentConcurrency = value;
|
|
38
|
+
},
|
|
39
|
+
id: cliFlag,
|
|
40
|
+
};
|
package/dist/options/crf.d.ts
CHANGED
package/dist/options/crf.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const disableWebSecurityOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "disable-web-security";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "disableWebSecurity";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: boolean;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: boolean;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: boolean) => void;
|
|
15
|
+
id: "disable-web-security";
|
|
16
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.disableWebSecurityOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let disableWebSecurity = false;
|
|
6
|
+
const cliFlag = 'disable-web-security';
|
|
7
|
+
exports.disableWebSecurityOption = {
|
|
8
|
+
name: 'Disable web security',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "This will most notably disable CORS in Chrome among other security features." })),
|
|
11
|
+
ssrName: 'disableWebSecurity',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/chromium-flags#--disable-web-security',
|
|
13
|
+
type: false,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
return {
|
|
17
|
+
source: 'cli',
|
|
18
|
+
value: Boolean(commandLine[cliFlag]),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (disableWebSecurity) {
|
|
22
|
+
return {
|
|
23
|
+
source: 'config',
|
|
24
|
+
value: disableWebSecurity,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
source: 'default',
|
|
29
|
+
value: false,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
setConfig: (value) => {
|
|
33
|
+
disableWebSecurity = value;
|
|
34
|
+
},
|
|
35
|
+
id: cliFlag,
|
|
36
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const everyNthFrameOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "every-nth-frame";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "everyNthFrame";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: number;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: number;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: number) => void;
|
|
15
|
+
id: "every-nth-frame";
|
|
16
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.everyNthFrameOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const DEFAULT_EVERY_NTH_FRAME = 1;
|
|
6
|
+
let everyNthFrame = DEFAULT_EVERY_NTH_FRAME;
|
|
7
|
+
const cliFlag = 'every-nth-frame';
|
|
8
|
+
exports.everyNthFrameOption = {
|
|
9
|
+
name: 'Every nth frame',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["This option may only be set when rendering GIFs. It determines how many frames are rendered, while the other ones get skipped in order to lower the FPS of the GIF. For example, if the ",
|
|
12
|
+
jsx_runtime_1.jsx("code", { children: "fps" }),
|
|
13
|
+
" is 30, and", ' ', jsx_runtime_1.jsx("code", { children: "everyNthFrame" }),
|
|
14
|
+
" is 2, the FPS of the GIF is ",
|
|
15
|
+
jsx_runtime_1.jsx("code", { children: "15" }),
|
|
16
|
+
"."] })),
|
|
17
|
+
ssrName: 'everyNthFrame',
|
|
18
|
+
docLink: 'https://www.remotion.dev/docs/config#seteverynthframe',
|
|
19
|
+
type: DEFAULT_EVERY_NTH_FRAME,
|
|
20
|
+
getValue: ({ commandLine }) => {
|
|
21
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
22
|
+
return {
|
|
23
|
+
source: 'cli',
|
|
24
|
+
value: commandLine[cliFlag],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (everyNthFrame !== DEFAULT_EVERY_NTH_FRAME) {
|
|
28
|
+
return {
|
|
29
|
+
source: 'config',
|
|
30
|
+
value: everyNthFrame,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
source: 'default',
|
|
35
|
+
value: DEFAULT_EVERY_NTH_FRAME,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
setConfig: (value) => {
|
|
39
|
+
everyNthFrame = value;
|
|
40
|
+
},
|
|
41
|
+
id: cliFlag,
|
|
42
|
+
};
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export declare const glOption: {
|
|
|
20
20
|
source: string;
|
|
21
21
|
};
|
|
22
22
|
setConfig: (value: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null) => void;
|
|
23
|
+
id: "gl";
|
|
23
24
|
};
|
|
24
25
|
export declare const validateOpenGlRenderer: (option: unknown) => "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null;
|
package/dist/options/gl.js
CHANGED
package/dist/options/headless.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const ignoreCertificateErrorsOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "ignore-certificate-errors";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "ignoreCertificateErrors";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: boolean;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: boolean;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: boolean) => void;
|
|
15
|
+
id: "ignore-certificate-errors";
|
|
16
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ignoreCertificateErrorsOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let ignoreCertificateErrors = false;
|
|
6
|
+
const cliFlag = 'ignore-certificate-errors';
|
|
7
|
+
exports.ignoreCertificateErrorsOption = {
|
|
8
|
+
name: 'Ignore certificate errors',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored." })),
|
|
11
|
+
ssrName: 'ignoreCertificateErrors',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors',
|
|
13
|
+
type: false,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
return {
|
|
17
|
+
source: 'cli',
|
|
18
|
+
value: Boolean(commandLine[cliFlag]),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (ignoreCertificateErrors) {
|
|
22
|
+
return {
|
|
23
|
+
source: 'config',
|
|
24
|
+
value: ignoreCertificateErrors,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
source: 'default',
|
|
29
|
+
value: false,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
setConfig: (value) => {
|
|
33
|
+
ignoreCertificateErrors = value;
|
|
34
|
+
},
|
|
35
|
+
id: cliFlag,
|
|
36
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const imageFormatOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "image-format";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "imageFormat";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: string | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
value: string;
|
|
12
|
+
source: string;
|
|
13
|
+
} | {
|
|
14
|
+
value: null;
|
|
15
|
+
source: string;
|
|
16
|
+
};
|
|
17
|
+
setConfig(value: string | null): void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.imageFormatOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let imageFormat = null;
|
|
6
|
+
const cliFlag = 'image-format';
|
|
7
|
+
exports.imageFormatOption = {
|
|
8
|
+
name: 'Image Format',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Determines which in which image format to render. Can be either", ' ', jsx_runtime_1.jsx("code", { children: "\"jpeg\"" }),
|
|
11
|
+
", ",
|
|
12
|
+
jsx_runtime_1.jsx("code", { children: "\"png\"" }),
|
|
13
|
+
",", ' ', jsx_runtime_1.jsx("code", { children: "\"webp\"" }),
|
|
14
|
+
", ",
|
|
15
|
+
jsx_runtime_1.jsx("code", { children: "\"pdf\"" }),
|
|
16
|
+
", or", ' ', jsx_runtime_1.jsx("code", { children: "\"none\"" }),
|
|
17
|
+
" depending on the render type."] })),
|
|
18
|
+
ssrName: 'imageFormat',
|
|
19
|
+
docLink: 'https://www.remotion.dev/docs/config#setvideoimageformat',
|
|
20
|
+
type: null,
|
|
21
|
+
getValue: ({ commandLine }) => {
|
|
22
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
23
|
+
return { value: commandLine[cliFlag], source: 'cli' };
|
|
24
|
+
}
|
|
25
|
+
if (imageFormat !== null) {
|
|
26
|
+
return { value: imageFormat, source: 'config' };
|
|
27
|
+
}
|
|
28
|
+
return { value: null, source: 'default' };
|
|
29
|
+
},
|
|
30
|
+
setConfig(value) {
|
|
31
|
+
imageFormat = value;
|
|
32
|
+
},
|
|
33
|
+
};
|