@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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const overrideDurationOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "duration";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: number | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: number;
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (duration: number | null) => void;
|
|
18
|
+
id: "duration";
|
|
19
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.overrideDurationOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const validate_1 = require("../validate");
|
|
6
|
+
let currentDuration = null;
|
|
7
|
+
const cliFlag = 'duration';
|
|
8
|
+
exports.overrideDurationOption = {
|
|
9
|
+
name: 'Override Duration',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the duration in frames of the composition." }),
|
|
12
|
+
ssrName: null,
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/config#overrideduration',
|
|
14
|
+
type: null,
|
|
15
|
+
getValue: ({ commandLine }) => {
|
|
16
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
17
|
+
const value = commandLine[cliFlag];
|
|
18
|
+
(0, validate_1.validateDurationInFrames)(value, {
|
|
19
|
+
component: 'in --duration flag',
|
|
20
|
+
allowFloats: false,
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
source: 'cli',
|
|
24
|
+
value,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (currentDuration !== null) {
|
|
28
|
+
return {
|
|
29
|
+
source: 'config',
|
|
30
|
+
value: currentDuration,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
source: 'default',
|
|
35
|
+
value: null,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
setConfig: (duration) => {
|
|
39
|
+
(0, validate_1.validateDurationInFrames)(duration, {
|
|
40
|
+
component: 'in Config.overrideDuration()',
|
|
41
|
+
allowFloats: false,
|
|
42
|
+
});
|
|
43
|
+
currentDuration = duration;
|
|
44
|
+
},
|
|
45
|
+
id: cliFlag,
|
|
46
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const overrideFpsOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "fps";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: number | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: number;
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (fps: number | null) => void;
|
|
18
|
+
id: "fps";
|
|
19
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.overrideFpsOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const validate_1 = require("../validate");
|
|
6
|
+
let currentFps = null;
|
|
7
|
+
const cliFlag = 'fps';
|
|
8
|
+
exports.overrideFpsOption = {
|
|
9
|
+
name: 'Override FPS',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the frames per second of the composition." }),
|
|
12
|
+
ssrName: null,
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/config#overridefps',
|
|
14
|
+
type: null,
|
|
15
|
+
getValue: ({ commandLine }) => {
|
|
16
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
17
|
+
const value = commandLine[cliFlag];
|
|
18
|
+
(0, validate_1.validateFps)(value, 'in --fps flag', false);
|
|
19
|
+
return {
|
|
20
|
+
source: 'cli',
|
|
21
|
+
value,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
if (currentFps !== null) {
|
|
25
|
+
return {
|
|
26
|
+
source: 'config',
|
|
27
|
+
value: currentFps,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
source: 'default',
|
|
32
|
+
value: null,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
setConfig: (fps) => {
|
|
36
|
+
(0, validate_1.validateFps)(fps, 'in Config.overrideFps()', false);
|
|
37
|
+
currentFps = fps;
|
|
38
|
+
},
|
|
39
|
+
id: cliFlag,
|
|
40
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const overrideHeightOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "height";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: number | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: number;
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (height: number | null) => void;
|
|
18
|
+
id: "height";
|
|
19
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.overrideHeightOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const validate_1 = require("../validate");
|
|
6
|
+
let currentHeight = null;
|
|
7
|
+
const cliFlag = 'height';
|
|
8
|
+
exports.overrideHeightOption = {
|
|
9
|
+
name: 'Override Height',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the height of the composition." }),
|
|
12
|
+
ssrName: null,
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/config#overrideheight',
|
|
14
|
+
type: null,
|
|
15
|
+
getValue: ({ commandLine }) => {
|
|
16
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
17
|
+
const value = commandLine[cliFlag];
|
|
18
|
+
(0, validate_1.validateDimension)(value, 'height', 'in --height flag');
|
|
19
|
+
return {
|
|
20
|
+
source: 'cli',
|
|
21
|
+
value,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
if (currentHeight !== null) {
|
|
25
|
+
return {
|
|
26
|
+
source: 'config',
|
|
27
|
+
value: currentHeight,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
source: 'default',
|
|
32
|
+
value: null,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
setConfig: (height) => {
|
|
36
|
+
(0, validate_1.validateDimension)(height, 'height', 'in Config.overrideHeight()');
|
|
37
|
+
currentHeight = height;
|
|
38
|
+
},
|
|
39
|
+
id: cliFlag,
|
|
40
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const overrideWidthOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "width";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: number | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: number;
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (width: number | null) => void;
|
|
18
|
+
id: "width";
|
|
19
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.overrideWidthOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const validate_1 = require("../validate");
|
|
6
|
+
let currentWidth = null;
|
|
7
|
+
const cliFlag = 'width';
|
|
8
|
+
exports.overrideWidthOption = {
|
|
9
|
+
name: 'Override Width',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the width of the composition." }),
|
|
12
|
+
ssrName: null,
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/config#overridewidth',
|
|
14
|
+
type: null,
|
|
15
|
+
getValue: ({ commandLine }) => {
|
|
16
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
17
|
+
const value = commandLine[cliFlag];
|
|
18
|
+
(0, validate_1.validateDimension)(value, 'width', 'in --width flag');
|
|
19
|
+
return {
|
|
20
|
+
source: 'cli',
|
|
21
|
+
value,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
if (currentWidth !== null) {
|
|
25
|
+
return {
|
|
26
|
+
source: 'config',
|
|
27
|
+
value: currentWidth,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
source: 'default',
|
|
32
|
+
value: null,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
setConfig: (width) => {
|
|
36
|
+
(0, validate_1.validateDimension)(width, 'width', 'in Config.overrideWidth()');
|
|
37
|
+
currentWidth = width;
|
|
38
|
+
},
|
|
39
|
+
id: cliFlag,
|
|
40
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const pixelFormatOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "pixel-format";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "pixelFormat";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le") => void;
|
|
15
|
+
id: "pixel-format";
|
|
16
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pixelFormatOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const pixel_format_1 = require("../pixel-format");
|
|
6
|
+
let currentPixelFormat = pixel_format_1.DEFAULT_PIXEL_FORMAT;
|
|
7
|
+
const cliFlag = 'pixel-format';
|
|
8
|
+
exports.pixelFormatOption = {
|
|
9
|
+
name: 'Pixel format',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Sets the pixel format in FFmpeg. See", ' ', jsx_runtime_1.jsx("a", { href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling", children: "the FFmpeg docs for an explanation" }),
|
|
12
|
+
". Acceptable values: ", pixel_format_1.validPixelFormats.map((f) => `"${f}"`).join(', '), "."] })),
|
|
13
|
+
ssrName: 'pixelFormat',
|
|
14
|
+
docLink: 'https://www.remotion.dev/docs/config#setpixelformat',
|
|
15
|
+
type: pixel_format_1.DEFAULT_PIXEL_FORMAT,
|
|
16
|
+
getValue: ({ commandLine }) => {
|
|
17
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
18
|
+
return {
|
|
19
|
+
source: 'cli',
|
|
20
|
+
value: commandLine[cliFlag],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (currentPixelFormat !== pixel_format_1.DEFAULT_PIXEL_FORMAT) {
|
|
24
|
+
return {
|
|
25
|
+
source: 'config',
|
|
26
|
+
value: currentPixelFormat,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
source: 'default',
|
|
31
|
+
value: pixel_format_1.DEFAULT_PIXEL_FORMAT,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
setConfig: (value) => {
|
|
35
|
+
if (!pixel_format_1.validPixelFormats.includes(value)) {
|
|
36
|
+
throw new TypeError(`Value ${value} is not valid as a pixel format.`);
|
|
37
|
+
}
|
|
38
|
+
currentPixelFormat = value;
|
|
39
|
+
},
|
|
40
|
+
id: cliFlag,
|
|
41
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ProResProfile = '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy';
|
|
2
|
+
export declare const proResProfileOption: {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: "prores-profile";
|
|
5
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
ssrName: "proResProfile";
|
|
7
|
+
docLink: string;
|
|
8
|
+
type: ProResProfile | undefined;
|
|
9
|
+
getValue: ({ commandLine }: {
|
|
10
|
+
commandLine: Record<string, unknown>;
|
|
11
|
+
}) => {
|
|
12
|
+
source: string;
|
|
13
|
+
value: ProResProfile;
|
|
14
|
+
} | {
|
|
15
|
+
source: string;
|
|
16
|
+
value: undefined;
|
|
17
|
+
};
|
|
18
|
+
setConfig: (value: ProResProfile | undefined) => void;
|
|
19
|
+
id: "prores-profile";
|
|
20
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proResProfileOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const validProResProfiles = [
|
|
6
|
+
'4444-xq',
|
|
7
|
+
'4444',
|
|
8
|
+
'hq',
|
|
9
|
+
'standard',
|
|
10
|
+
'light',
|
|
11
|
+
'proxy',
|
|
12
|
+
];
|
|
13
|
+
let proResProfile;
|
|
14
|
+
const cliFlag = 'prores-profile';
|
|
15
|
+
exports.proResProfileOption = {
|
|
16
|
+
name: 'ProRes profile',
|
|
17
|
+
cliFlag,
|
|
18
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
19
|
+
jsx_runtime_1.jsx("code", { children: "prores" }),
|
|
20
|
+
". Possible values:", ' ', validProResProfiles.map((p) => `"${p}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"hq\"" }),
|
|
21
|
+
". See", ' ', jsx_runtime_1.jsx("a", { href: "https://video.stackexchange.com/a/14715", children: "here" }),
|
|
22
|
+
" for an explanation of possible values."] })),
|
|
23
|
+
ssrName: 'proResProfile',
|
|
24
|
+
docLink: 'https://www.remotion.dev/docs/config#setproresprofile',
|
|
25
|
+
type: undefined,
|
|
26
|
+
getValue: ({ commandLine }) => {
|
|
27
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
28
|
+
return {
|
|
29
|
+
source: 'cli',
|
|
30
|
+
value: String(commandLine[cliFlag]),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (proResProfile !== undefined) {
|
|
34
|
+
return {
|
|
35
|
+
source: 'config',
|
|
36
|
+
value: proResProfile,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
source: 'default',
|
|
41
|
+
value: undefined,
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
setConfig: (value) => {
|
|
45
|
+
proResProfile = value;
|
|
46
|
+
},
|
|
47
|
+
id: cliFlag,
|
|
48
|
+
};
|
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 userAgentOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "user-agent";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "userAgent";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: string | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: string;
|
|
13
|
+
} | {
|
|
14
|
+
source: string;
|
|
15
|
+
value: null;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (value: string | null) => void;
|
|
18
|
+
id: "user-agent";
|
|
19
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userAgentOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let userAgent = null;
|
|
6
|
+
const cliFlag = 'user-agent';
|
|
7
|
+
exports.userAgentOption = {
|
|
8
|
+
name: 'User agent',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Lets you set a custom user agent that the headless Chrome browser assumes." })),
|
|
11
|
+
ssrName: 'userAgent',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/chromium-flags#--user-agent',
|
|
13
|
+
type: null,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
return {
|
|
17
|
+
source: 'cli',
|
|
18
|
+
value: commandLine[cliFlag],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (userAgent !== null) {
|
|
22
|
+
return {
|
|
23
|
+
source: 'config',
|
|
24
|
+
value: userAgent,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
source: 'default',
|
|
29
|
+
value: null,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
setConfig: (value) => {
|
|
33
|
+
userAgent = value;
|
|
34
|
+
},
|
|
35
|
+
id: cliFlag,
|
|
36
|
+
};
|