@remotion/renderer 4.0.424 → 4.0.426
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 +500 -0
- package/dist/esm/client.mjs +1888 -534
- package/dist/esm/index.mjs +12 -7
- package/dist/index.d.ts +4 -1
- package/dist/options/browser-executable.d.ts +17 -0
- package/dist/options/browser-executable.js +36 -0
- package/dist/options/browser.d.ts +19 -0
- package/dist/options/browser.js +30 -0
- package/dist/options/bundle-cache.d.ts +16 -0
- package/dist/options/bundle-cache.js +34 -0
- package/dist/options/concurrency.d.ts +17 -0
- package/dist/options/concurrency.js +61 -0
- package/dist/options/config.d.ts +19 -0
- package/dist/options/config.js +29 -0
- package/dist/options/disable-web-security.d.ts +16 -0
- package/dist/options/disable-web-security.js +36 -0
- package/dist/options/env-file.d.ts +19 -0
- package/dist/options/env-file.js +38 -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.js +2 -3
- package/dist/options/frames.d.ts +17 -0
- package/dist/options/frames.js +83 -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.d.ts +16 -0
- package/dist/options/image-sequence.js +30 -0
- package/dist/options/index.d.ts +499 -0
- package/dist/options/index.js +56 -0
- package/dist/options/no-open.d.ts +19 -0
- package/dist/options/no-open.js +30 -0
- package/dist/options/out-dir.d.ts +19 -0
- package/dist/options/out-dir.js +41 -0
- 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/package-manager.d.ts +19 -0
- package/dist/options/package-manager.js +47 -0
- package/dist/options/pixel-format.d.ts +16 -0
- package/dist/options/pixel-format.js +41 -0
- package/dist/options/port.d.ts +19 -0
- package/dist/options/port.js +36 -0
- package/dist/options/private-license-key.d.ts +15 -0
- package/dist/options/private-license-key.js +35 -0
- package/dist/options/props.d.ts +19 -0
- package/dist/options/props.js +33 -0
- package/dist/options/prores-profile.d.ts +20 -0
- package/dist/options/prores-profile.js +48 -0
- package/dist/options/rspack.d.ts +16 -0
- package/dist/options/rspack.js +31 -0
- package/dist/options/runs.d.ts +16 -0
- package/dist/options/runs.js +37 -0
- package/dist/options/still-frame.d.ts +19 -0
- package/dist/options/still-frame.js +51 -0
- package/dist/options/user-agent.d.ts +19 -0
- package/dist/options/user-agent.js +36 -0
- package/dist/options/version-flag.d.ts +19 -0
- package/dist/options/version-flag.js +29 -0
- package/dist/options/webpack-poll.d.ts +19 -0
- package/dist/options/webpack-poll.js +43 -0
- package/dist/prespawn-ffmpeg.d.ts +1 -0
- package/dist/prespawn-ffmpeg.js +4 -3
- package/dist/render-frames.d.ts +43 -3
- package/dist/render-media.d.ts +4 -2
- package/dist/render-media.js +4 -2
- package/dist/render-still.d.ts +1 -0
- package/dist/render-still.js +5 -1
- package/dist/select-composition.d.ts +25 -3
- package/package.json +14 -14
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.portOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'port';
|
|
6
|
+
let currentPort = null;
|
|
7
|
+
exports.portOption = {
|
|
8
|
+
name: 'Port',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Set a custom HTTP server port for the Studio or the render process. If not defined, Remotion will try to find a free port." })),
|
|
11
|
+
ssrName: null,
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/config#setstudioport',
|
|
13
|
+
getValue: ({ commandLine }) => {
|
|
14
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
+
return {
|
|
16
|
+
source: 'cli',
|
|
17
|
+
value: commandLine[cliFlag],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
if (currentPort !== null) {
|
|
21
|
+
return {
|
|
22
|
+
source: 'config',
|
|
23
|
+
value: currentPort,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
source: 'default',
|
|
28
|
+
value: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
setConfig: (value) => {
|
|
32
|
+
currentPort = value;
|
|
33
|
+
},
|
|
34
|
+
type: 0,
|
|
35
|
+
id: cliFlag,
|
|
36
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const propsOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "props";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
getValue: ({ commandLine }: {
|
|
8
|
+
commandLine: Record<string, unknown>;
|
|
9
|
+
}) => {
|
|
10
|
+
source: string;
|
|
11
|
+
value: string;
|
|
12
|
+
} | {
|
|
13
|
+
source: string;
|
|
14
|
+
value: null;
|
|
15
|
+
};
|
|
16
|
+
setConfig: () => never;
|
|
17
|
+
type: string | null;
|
|
18
|
+
id: "props";
|
|
19
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propsOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'props';
|
|
6
|
+
exports.propsOption = {
|
|
7
|
+
name: 'Input Props',
|
|
8
|
+
cliFlag,
|
|
9
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
10
|
+
jsx_runtime_1.jsxs("code", { children: ["--props='", '{', "\"hello\": \"world\"", '}', "'"] }),
|
|
11
|
+
") or a path to a JSON file (",
|
|
12
|
+
jsx_runtime_1.jsx("code", { children: "./path/to/props.json" }),
|
|
13
|
+
")."] })),
|
|
14
|
+
ssrName: null,
|
|
15
|
+
docLink: 'https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli',
|
|
16
|
+
getValue: ({ commandLine }) => {
|
|
17
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
18
|
+
return {
|
|
19
|
+
source: 'cli',
|
|
20
|
+
value: commandLine[cliFlag],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
source: 'default',
|
|
25
|
+
value: null,
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
setConfig: () => {
|
|
29
|
+
throw new Error('setProps is not supported. Pass --props via the CLI instead.');
|
|
30
|
+
},
|
|
31
|
+
type: '',
|
|
32
|
+
id: cliFlag,
|
|
33
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const rspackOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "experimental-rspack";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: null;
|
|
7
|
+
type: boolean;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
value: boolean;
|
|
12
|
+
source: string;
|
|
13
|
+
};
|
|
14
|
+
setConfig(value: boolean): void;
|
|
15
|
+
id: "experimental-rspack";
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rspackOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let rspackEnabled = false;
|
|
6
|
+
const cliFlag = 'experimental-rspack';
|
|
7
|
+
exports.rspackOption = {
|
|
8
|
+
name: 'Experimental Rspack',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle." })),
|
|
11
|
+
ssrName: null,
|
|
12
|
+
docLink: null,
|
|
13
|
+
type: false,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
rspackEnabled = true;
|
|
17
|
+
return {
|
|
18
|
+
value: commandLine[cliFlag],
|
|
19
|
+
source: 'cli',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
value: rspackEnabled,
|
|
24
|
+
source: 'config',
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
setConfig(value) {
|
|
28
|
+
rspackEnabled = value;
|
|
29
|
+
},
|
|
30
|
+
id: cliFlag,
|
|
31
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const runsOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "runs";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: number;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
value: number;
|
|
12
|
+
source: string;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: number) => void;
|
|
15
|
+
id: "runs";
|
|
16
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runsOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const DEFAULT_RUNS = 3;
|
|
6
|
+
let currentRuns = DEFAULT_RUNS;
|
|
7
|
+
const cliFlag = 'runs';
|
|
8
|
+
exports.runsOption = {
|
|
9
|
+
name: 'Benchmark runs',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify how many times the video should be rendered during a benchmark. Default ",
|
|
12
|
+
jsx_runtime_1.jsx("code", { children: DEFAULT_RUNS }),
|
|
13
|
+
"."] })),
|
|
14
|
+
ssrName: null,
|
|
15
|
+
docLink: 'https://www.remotion.dev/docs/cli/benchmark#--runs',
|
|
16
|
+
type: DEFAULT_RUNS,
|
|
17
|
+
getValue: ({ commandLine }) => {
|
|
18
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
19
|
+
const value = Number(commandLine[cliFlag]);
|
|
20
|
+
if (isNaN(value) || value < 1) {
|
|
21
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag]}`);
|
|
22
|
+
}
|
|
23
|
+
return { value, source: 'cli' };
|
|
24
|
+
}
|
|
25
|
+
if (currentRuns !== DEFAULT_RUNS) {
|
|
26
|
+
return { value: currentRuns, source: 'config' };
|
|
27
|
+
}
|
|
28
|
+
return { value: DEFAULT_RUNS, source: 'default' };
|
|
29
|
+
},
|
|
30
|
+
setConfig: (value) => {
|
|
31
|
+
if (typeof value !== 'number' || isNaN(value) || value < 1) {
|
|
32
|
+
throw new Error(`Runs must be a positive number, but got ${value}`);
|
|
33
|
+
}
|
|
34
|
+
currentRuns = value;
|
|
35
|
+
},
|
|
36
|
+
id: cliFlag,
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const stillFrameOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "frame";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "frame";
|
|
6
|
+
docLink: string;
|
|
7
|
+
getValue: ({ commandLine }: {
|
|
8
|
+
commandLine: Record<string, unknown>;
|
|
9
|
+
}) => {
|
|
10
|
+
source: string;
|
|
11
|
+
value: number;
|
|
12
|
+
} | {
|
|
13
|
+
source: string;
|
|
14
|
+
value: null;
|
|
15
|
+
};
|
|
16
|
+
setConfig: (value: number | null) => void;
|
|
17
|
+
type: number | null;
|
|
18
|
+
id: "frame";
|
|
19
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stillFrameOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const no_react_1 = require("remotion/no-react");
|
|
6
|
+
const cliFlag = 'frame';
|
|
7
|
+
let currentFrame = null;
|
|
8
|
+
const validate = (frame) => {
|
|
9
|
+
no_react_1.NoReactInternals.validateFrame({
|
|
10
|
+
frame,
|
|
11
|
+
durationInFrames: Infinity,
|
|
12
|
+
allowFloats: false,
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
exports.stillFrameOption = {
|
|
16
|
+
name: 'Frame',
|
|
17
|
+
cliFlag,
|
|
18
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Which frame should be rendered when rendering a still. Default", ' ', jsx_runtime_1.jsx("code", { children: "0" }),
|
|
19
|
+
". From v3.2.27, negative values are allowed, with", ' ', jsx_runtime_1.jsx("code", { children: "-1" }),
|
|
20
|
+
" being the last frame."] })),
|
|
21
|
+
ssrName: 'frame',
|
|
22
|
+
docLink: 'https://www.remotion.dev/docs/cli/still#--frame',
|
|
23
|
+
getValue: ({ commandLine }) => {
|
|
24
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
25
|
+
const frame = Number(commandLine[cliFlag]);
|
|
26
|
+
validate(frame);
|
|
27
|
+
return {
|
|
28
|
+
source: 'cli',
|
|
29
|
+
value: frame,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (currentFrame !== null) {
|
|
33
|
+
return {
|
|
34
|
+
source: 'config',
|
|
35
|
+
value: currentFrame,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
source: 'default',
|
|
40
|
+
value: null,
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
setConfig: (value) => {
|
|
44
|
+
if (value !== null) {
|
|
45
|
+
validate(value);
|
|
46
|
+
}
|
|
47
|
+
currentFrame = value;
|
|
48
|
+
},
|
|
49
|
+
type: 0,
|
|
50
|
+
id: cliFlag,
|
|
51
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const versionFlagOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "version";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
getValue: ({ commandLine }: {
|
|
8
|
+
commandLine: Record<string, unknown>;
|
|
9
|
+
}) => {
|
|
10
|
+
source: string;
|
|
11
|
+
value: string;
|
|
12
|
+
} | {
|
|
13
|
+
source: string;
|
|
14
|
+
value: null;
|
|
15
|
+
};
|
|
16
|
+
setConfig: () => never;
|
|
17
|
+
type: string | null;
|
|
18
|
+
id: "version";
|
|
19
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versionFlagOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'version';
|
|
6
|
+
exports.versionFlagOption = {
|
|
7
|
+
name: 'Version',
|
|
8
|
+
cliFlag,
|
|
9
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Install a specific version. Also enables downgrading to an older version." })),
|
|
10
|
+
ssrName: null,
|
|
11
|
+
docLink: 'https://www.remotion.dev/docs/cli/upgrade#--version',
|
|
12
|
+
getValue: ({ commandLine }) => {
|
|
13
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
14
|
+
return {
|
|
15
|
+
source: 'cli',
|
|
16
|
+
value: String(commandLine[cliFlag]),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
source: 'default',
|
|
21
|
+
value: null,
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
setConfig: () => {
|
|
25
|
+
throw new Error('Cannot set version via config file');
|
|
26
|
+
},
|
|
27
|
+
type: '',
|
|
28
|
+
id: cliFlag,
|
|
29
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const webpackPollOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "webpack-poll";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
|
+
docLink: string;
|
|
7
|
+
getValue: ({ commandLine }: {
|
|
8
|
+
commandLine: Record<string, unknown>;
|
|
9
|
+
}) => {
|
|
10
|
+
source: string;
|
|
11
|
+
value: number;
|
|
12
|
+
} | {
|
|
13
|
+
source: string;
|
|
14
|
+
value: null;
|
|
15
|
+
};
|
|
16
|
+
setConfig: (value: number | null) => void;
|
|
17
|
+
type: number | null;
|
|
18
|
+
id: "webpack-poll";
|
|
19
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webpackPollOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'webpack-poll';
|
|
6
|
+
let webpackPolling = null;
|
|
7
|
+
exports.webpackPollOption = {
|
|
8
|
+
name: 'Webpack Polling',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Enables Webpack polling instead of the file system event listeners for hot reloading. This is useful if you are inside a virtual machine or have a remote file system. Pass a value in milliseconds." })),
|
|
11
|
+
ssrName: null,
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds',
|
|
13
|
+
getValue: ({ commandLine }) => {
|
|
14
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
+
const val = commandLine[cliFlag];
|
|
16
|
+
if (typeof val !== 'number') {
|
|
17
|
+
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
source: 'cli',
|
|
21
|
+
value: val,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
if (webpackPolling !== null) {
|
|
25
|
+
return {
|
|
26
|
+
source: 'config',
|
|
27
|
+
value: webpackPolling,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
source: 'default',
|
|
32
|
+
value: null,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
setConfig: (value) => {
|
|
36
|
+
if (typeof value !== 'number' && value !== null) {
|
|
37
|
+
throw new TypeError(`Polling must be a number or null, got ${JSON.stringify(value)} instead.`);
|
|
38
|
+
}
|
|
39
|
+
webpackPolling = value;
|
|
40
|
+
},
|
|
41
|
+
type: 0,
|
|
42
|
+
id: cliFlag,
|
|
43
|
+
};
|
package/dist/prespawn-ffmpeg.js
CHANGED
|
@@ -93,11 +93,12 @@ const prespawnFfmpeg = (options) => {
|
|
|
93
93
|
let exitCode = {
|
|
94
94
|
type: 'running',
|
|
95
95
|
};
|
|
96
|
-
task.on('exit', (code) => {
|
|
97
|
-
if (typeof code === 'number' && code > 0) {
|
|
96
|
+
task.on('exit', (code, signal) => {
|
|
97
|
+
if ((typeof code === 'number' && code > 0) || signal) {
|
|
98
98
|
exitCode = {
|
|
99
99
|
type: 'quit-with-error',
|
|
100
|
-
exitCode: code,
|
|
100
|
+
exitCode: code !== null && code !== void 0 ? code : 1,
|
|
101
|
+
signal: signal !== null && signal !== void 0 ? signal : null,
|
|
101
102
|
stderr: ffmpegOutput,
|
|
102
103
|
};
|
|
103
104
|
}
|
package/dist/render-frames.d.ts
CHANGED
|
@@ -55,7 +55,10 @@ export type FrameAndAssets = {
|
|
|
55
55
|
artifactAssets: ArtifactWithoutContent[];
|
|
56
56
|
inlineAudioAssets: InlineAudioAsset[];
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
type Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
61
|
+
export type RenderFramesOptions = Prettify<{
|
|
59
62
|
onStart: (data: OnStartData) => void;
|
|
60
63
|
onFrameUpdate: (framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void;
|
|
61
64
|
outputDir: string | null;
|
|
@@ -91,7 +94,44 @@ export type RenderFramesOptions = {
|
|
|
91
94
|
concurrency?: number | string | null;
|
|
92
95
|
onArtifact?: OnArtifact | null;
|
|
93
96
|
serveUrl: string;
|
|
94
|
-
} & Partial<ToOptions<typeof optionsMap.renderFrames
|
|
97
|
+
} & Partial<ToOptions<typeof optionsMap.renderFrames>>>;
|
|
95
98
|
export declare const internalRenderFrames: (args_0: InternalRenderFramesOptions) => Promise<RenderFramesOutput>;
|
|
96
|
-
export declare const renderFrames: (options:
|
|
99
|
+
export declare const renderFrames: (options: {
|
|
100
|
+
readonly mediaCacheSizeInBytes?: number | null | undefined;
|
|
101
|
+
readonly forSeamlessAacConcatenation?: boolean | undefined;
|
|
102
|
+
readonly offthreadVideoCacheSizeInBytes?: number | null | undefined;
|
|
103
|
+
readonly offthreadVideoThreads?: number | null | undefined;
|
|
104
|
+
readonly jpegQuality?: number | undefined;
|
|
105
|
+
readonly logLevel?: "error" | "info" | "trace" | "verbose" | "warn" | undefined;
|
|
106
|
+
readonly binariesDirectory?: string | null | undefined;
|
|
107
|
+
readonly onBrowserDownload?: import(".").OnBrowserDownload | undefined;
|
|
108
|
+
readonly chromeMode?: "chrome-for-testing" | "headless-shell" | undefined;
|
|
109
|
+
readonly imageSequencePattern?: string | null | undefined;
|
|
110
|
+
onStart: (data: OnStartData) => void;
|
|
111
|
+
onFrameUpdate: (framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void;
|
|
112
|
+
outputDir: string | null;
|
|
113
|
+
inputProps: Record<string, unknown>;
|
|
114
|
+
envVariables?: Record<string, string> | undefined;
|
|
115
|
+
imageFormat?: "jpeg" | "none" | "png" | undefined;
|
|
116
|
+
quality?: undefined;
|
|
117
|
+
frameRange?: FrameRange | null | undefined;
|
|
118
|
+
everyNthFrame?: number | undefined;
|
|
119
|
+
dumpBrowserLogs?: boolean | undefined;
|
|
120
|
+
verbose?: boolean | undefined;
|
|
121
|
+
puppeteerInstance?: HeadlessBrowser | undefined;
|
|
122
|
+
browserExecutable?: BrowserExecutable | undefined;
|
|
123
|
+
onBrowserLog?: ((log: BrowserLog) => void) | undefined;
|
|
124
|
+
onFrameBuffer?: ((buffer: Buffer, frame: number) => void) | undefined;
|
|
125
|
+
onDownload?: RenderMediaOnDownload | undefined;
|
|
126
|
+
timeoutInMilliseconds?: number | undefined;
|
|
127
|
+
chromiumOptions?: ChromiumOptions | undefined;
|
|
128
|
+
scale?: number | undefined;
|
|
129
|
+
port?: number | null | undefined;
|
|
130
|
+
cancelSignal?: CancelSignal | undefined;
|
|
131
|
+
composition: VideoConfig;
|
|
132
|
+
muted?: boolean | undefined;
|
|
133
|
+
concurrency?: string | number | null | undefined;
|
|
134
|
+
onArtifact?: OnArtifact | null | undefined;
|
|
135
|
+
serveUrl: string;
|
|
136
|
+
}) => Promise<RenderFramesOutput>;
|
|
97
137
|
export {};
|