@remotion/renderer 4.0.429 → 4.0.431
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/assets/download-file.js +3 -1
- package/dist/client.d.ts +19 -0
- package/dist/esm/client.mjs +779 -742
- package/dist/esm/index.mjs +21 -14
- package/dist/get-cpu-count.js +13 -2
- package/dist/options/{concurrencies.d.ts → benchmark-concurrencies.d.ts} +7 -4
- package/dist/options/benchmark-concurrencies.js +28 -0
- package/dist/options/index.d.ts +19 -0
- package/dist/options/index.js +2 -0
- package/dist/options/{browser-args.d.ts → private-license-key.d.ts} +6 -7
- package/dist/options/private-license-key.js +35 -0
- package/package.json +14 -13
- package/dist/options/browser-args.js +0 -25
- package/dist/options/concurrencies.js +0 -37
- package/dist/options/force.d.ts +0 -16
- package/dist/options/force.js +0 -24
- package/dist/options/help.d.ts +0 -16
- package/dist/options/help.js +0 -26
- package/dist/options/image-format.d.ts +0 -11
- package/dist/options/image-format.js +0 -18
- package/dist/options/output.d.ts +0 -19
- package/dist/options/output.js +0 -38
- package/dist/options/png.d.ts +0 -11
- package/dist/options/png.js +0 -18
- package/dist/options/q.d.ts +0 -19
- package/dist/options/q.js +0 -26
- package/dist/options/quality.d.ts +0 -11
- package/dist/options/quality.js +0 -20
- package/dist/options/quiet.d.ts +0 -19
- package/dist/options/quiet.js +0 -26
package/dist/esm/index.mjs
CHANGED
|
@@ -544,6 +544,7 @@ var tryToObtainBody = async (file) => {
|
|
|
544
544
|
// src/assets/download-file.ts
|
|
545
545
|
var CANCELLED_ERROR = "cancelled";
|
|
546
546
|
var incorrectContentLengthToken = "Download finished with";
|
|
547
|
+
var noDataSentToken = "but the server sent no data for";
|
|
547
548
|
var downloadFileWithoutRetries = ({
|
|
548
549
|
onProgress,
|
|
549
550
|
url,
|
|
@@ -578,7 +579,7 @@ var downloadFileWithoutRetries = ({
|
|
|
578
579
|
if (resolved) {
|
|
579
580
|
return;
|
|
580
581
|
}
|
|
581
|
-
rejectAndFlag(new Error(`Tried to download file ${url},
|
|
582
|
+
rejectAndFlag(new Error(`Tried to download file ${url}, ${noDataSentToken} 20 seconds`));
|
|
582
583
|
}, 20000);
|
|
583
584
|
};
|
|
584
585
|
refreshTimeout();
|
|
@@ -663,7 +664,7 @@ var downloadFile = async (options, retries = 2, attempt = 1) => {
|
|
|
663
664
|
if (message === CANCELLED_ERROR) {
|
|
664
665
|
throw err;
|
|
665
666
|
}
|
|
666
|
-
if (message === "aborted" || message.includes("ECONNRESET") || message.includes(incorrectContentLengthToken) || message.includes("503") || message.includes("502") || message.includes("504") || message.includes("500")) {
|
|
667
|
+
if (message === "aborted" || message.includes("ECONNRESET") || message.includes(incorrectContentLengthToken) || message.includes(noDataSentToken) || message.includes("503") || message.includes("502") || message.includes("504") || message.includes("500")) {
|
|
667
668
|
if (retries === 0) {
|
|
668
669
|
throw err;
|
|
669
670
|
}
|
|
@@ -4725,7 +4726,7 @@ var defaultOnLog = ({ logLevel, tag, previewString }) => {
|
|
|
4725
4726
|
|
|
4726
4727
|
// src/open-browser.ts
|
|
4727
4728
|
import fs10 from "node:fs";
|
|
4728
|
-
import
|
|
4729
|
+
import os5 from "node:os";
|
|
4729
4730
|
import path9 from "node:path";
|
|
4730
4731
|
|
|
4731
4732
|
// src/browser/Launcher.ts
|
|
@@ -5178,7 +5179,7 @@ var getLocalBrowserExecutable = ({
|
|
|
5178
5179
|
|
|
5179
5180
|
// src/get-cpu-count.ts
|
|
5180
5181
|
import { execSync as execSync2 } from "node:child_process";
|
|
5181
|
-
import
|
|
5182
|
+
import os4 from "node:os";
|
|
5182
5183
|
var nprocCount;
|
|
5183
5184
|
var getConcurrencyFromNProc = () => {
|
|
5184
5185
|
if (nprocCount !== undefined) {
|
|
@@ -5192,8 +5193,14 @@ var getConcurrencyFromNProc = () => {
|
|
|
5192
5193
|
return null;
|
|
5193
5194
|
}
|
|
5194
5195
|
};
|
|
5196
|
+
var getNodeCpuCount = () => {
|
|
5197
|
+
if (typeof os4.availableParallelism === "function") {
|
|
5198
|
+
return os4.availableParallelism();
|
|
5199
|
+
}
|
|
5200
|
+
return os4.cpus().length;
|
|
5201
|
+
};
|
|
5195
5202
|
var getCpuCount = () => {
|
|
5196
|
-
const node =
|
|
5203
|
+
const node = getNodeCpuCount();
|
|
5197
5204
|
const nproc = getConcurrencyFromNProc();
|
|
5198
5205
|
if (nproc === null) {
|
|
5199
5206
|
return node;
|
|
@@ -5342,8 +5349,8 @@ var MEMORY_USAGE_PER_THREAD = 400000000;
|
|
|
5342
5349
|
var RESERVED_MEMORY = 2000000000;
|
|
5343
5350
|
var getIdealVideoThreadsFlag = (logLevel) => {
|
|
5344
5351
|
const freeMemory = getAvailableMemory(logLevel);
|
|
5345
|
-
const
|
|
5346
|
-
const maxRecommendedBasedOnCpus =
|
|
5352
|
+
const cpus = getCpuCount();
|
|
5353
|
+
const maxRecommendedBasedOnCpus = cpus * 2 / 3;
|
|
5347
5354
|
const maxRecommendedBasedOnMemory = (freeMemory - RESERVED_MEMORY) / MEMORY_USAGE_PER_THREAD;
|
|
5348
5355
|
const maxRecommended = Math.min(maxRecommendedBasedOnCpus, maxRecommendedBasedOnMemory);
|
|
5349
5356
|
return Math.max(1, Math.round(maxRecommended));
|
|
@@ -5441,7 +5448,7 @@ var internalOpenBrowser = async ({
|
|
|
5441
5448
|
if (chromiumOptions.userAgent) {
|
|
5442
5449
|
Log.verbose({ indent, logLevel, tag: "openBrowser()" }, `Using custom user agent: ${chromiumOptions.userAgent}`);
|
|
5443
5450
|
}
|
|
5444
|
-
const userDataDir = await fs10.promises.mkdtemp(path9.join(
|
|
5451
|
+
const userDataDir = await fs10.promises.mkdtemp(path9.join(os5.tmpdir(), "puppeteer_dev_chrome_profile-"));
|
|
5445
5452
|
const browserInstance = await launchChrome({
|
|
5446
5453
|
executablePath,
|
|
5447
5454
|
logLevel,
|
|
@@ -15275,7 +15282,7 @@ class OffthreadVideoServerEmitter {
|
|
|
15275
15282
|
|
|
15276
15283
|
// src/tmp-dir.ts
|
|
15277
15284
|
import fs12, { mkdirSync } from "node:fs";
|
|
15278
|
-
import
|
|
15285
|
+
import os6 from "node:os";
|
|
15279
15286
|
import path13 from "node:path";
|
|
15280
15287
|
var alphabet = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
15281
15288
|
var randomHash = () => {
|
|
@@ -15284,7 +15291,7 @@ var randomHash = () => {
|
|
|
15284
15291
|
}).join("");
|
|
15285
15292
|
};
|
|
15286
15293
|
var tmpDir = (str) => {
|
|
15287
|
-
const newDir = path13.join(
|
|
15294
|
+
const newDir = path13.join(os6.tmpdir(), str + randomHash());
|
|
15288
15295
|
if (fs12.existsSync(newDir)) {
|
|
15289
15296
|
fs12.rmSync(newDir, {
|
|
15290
15297
|
recursive: true,
|
|
@@ -15730,13 +15737,13 @@ var makeRange = (from, to) => {
|
|
|
15730
15737
|
};
|
|
15731
15738
|
|
|
15732
15739
|
// src/port-config.ts
|
|
15733
|
-
import
|
|
15740
|
+
import os7 from "os";
|
|
15734
15741
|
var cached = null;
|
|
15735
15742
|
var getPortConfig = (preferIpv4) => {
|
|
15736
15743
|
if (cached) {
|
|
15737
15744
|
return cached;
|
|
15738
15745
|
}
|
|
15739
|
-
const networkInterfaces =
|
|
15746
|
+
const networkInterfaces = os7.networkInterfaces();
|
|
15740
15747
|
const flattened = flattenNetworkInterfaces(networkInterfaces);
|
|
15741
15748
|
const host = getHostToBind(flattened, preferIpv4);
|
|
15742
15749
|
const hostsToTry = getHostsToTry(flattened);
|
|
@@ -19570,7 +19577,7 @@ var renderFrames = (options) => {
|
|
|
19570
19577
|
|
|
19571
19578
|
// src/render-media.ts
|
|
19572
19579
|
import fs17 from "node:fs";
|
|
19573
|
-
import
|
|
19580
|
+
import os8 from "node:os";
|
|
19574
19581
|
import path26 from "node:path";
|
|
19575
19582
|
import { LicensingInternals } from "@remotion/licensing";
|
|
19576
19583
|
import { NoReactInternals as NoReactInternals15 } from "remotion/no-react";
|
|
@@ -21794,7 +21801,7 @@ var internalRenderMediaRaw = ({
|
|
|
21794
21801
|
}
|
|
21795
21802
|
const imageFormat = isAudioCodec(codec) ? "none" : provisionalImageFormat ?? compositionWithPossibleUnevenDimensions.defaultVideoImageFormat ?? DEFAULT_VIDEO_IMAGE_FORMAT;
|
|
21796
21803
|
validateSelectedPixelFormatAndImageFormatCombination(pixelFormat, imageFormat);
|
|
21797
|
-
const workingDir = fs17.mkdtempSync(path26.join(
|
|
21804
|
+
const workingDir = fs17.mkdtempSync(path26.join(os8.tmpdir(), "react-motion-render"));
|
|
21798
21805
|
const preEncodedFileLocation = parallelEncoding ? path26.join(workingDir, "pre-encode." + getFileExtensionFromCodec(codec, audioCodec)) : null;
|
|
21799
21806
|
if (onCtrlCExit && workingDir) {
|
|
21800
21807
|
onCtrlCExit(`Delete ${workingDir}`, () => deleteDirectory(workingDir));
|
package/dist/get-cpu-count.js
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
// Kubernetes uses the following command to spawn Docker containers:
|
|
3
3
|
// docker run --cpuset-cpus="0,1" to assign only 2 CPUs.
|
|
4
4
|
// However, Node.js returns the core count of the host system (up to 96!)
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
5
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
9
|
exports.getCpuCount = exports.getConcurrencyFromNProc = void 0;
|
|
7
10
|
const node_child_process_1 = require("node:child_process");
|
|
8
|
-
const node_os_1 = require("node:os");
|
|
11
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
9
12
|
let nprocCount;
|
|
10
13
|
// We also get it from nproc and use the minimum of the two.
|
|
11
14
|
const getConcurrencyFromNProc = () => {
|
|
@@ -22,8 +25,16 @@ const getConcurrencyFromNProc = () => {
|
|
|
22
25
|
}
|
|
23
26
|
};
|
|
24
27
|
exports.getConcurrencyFromNProc = getConcurrencyFromNProc;
|
|
28
|
+
const getNodeCpuCount = () => {
|
|
29
|
+
// os.availableParallelism() is faster and respects cgroup CPU limits in containers.
|
|
30
|
+
// Available since Node 18.14 / 19.4.
|
|
31
|
+
if (typeof node_os_1.default.availableParallelism === 'function') {
|
|
32
|
+
return node_os_1.default.availableParallelism();
|
|
33
|
+
}
|
|
34
|
+
return node_os_1.default.cpus().length;
|
|
35
|
+
};
|
|
25
36
|
const getCpuCount = () => {
|
|
26
|
-
const node = (
|
|
37
|
+
const node = getNodeCpuCount();
|
|
27
38
|
const nproc = (0, exports.getConcurrencyFromNProc)();
|
|
28
39
|
if (nproc === null) {
|
|
29
40
|
return node;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const benchmarkConcurrenciesOption: {
|
|
2
2
|
name: string;
|
|
3
3
|
cliFlag: "concurrencies";
|
|
4
|
-
ssrName: "concurrencies";
|
|
5
4
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: null;
|
|
6
6
|
docLink: string;
|
|
7
|
-
type: string;
|
|
7
|
+
type: string | null;
|
|
8
8
|
getValue: ({ commandLine }: {
|
|
9
9
|
commandLine: Record<string, unknown>;
|
|
10
10
|
}) => {
|
|
11
11
|
value: string;
|
|
12
12
|
source: string;
|
|
13
|
+
} | {
|
|
14
|
+
value: null;
|
|
15
|
+
source: string;
|
|
13
16
|
};
|
|
14
|
-
setConfig: (value: string) => void;
|
|
17
|
+
setConfig: (value: string | null) => void;
|
|
15
18
|
id: "concurrencies";
|
|
16
19
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.benchmarkConcurrenciesOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let currentConcurrencies = null;
|
|
6
|
+
const cliFlag = 'concurrencies';
|
|
7
|
+
exports.benchmarkConcurrenciesOption = {
|
|
8
|
+
name: 'Benchmark concurrencies',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify which concurrency values should be used while benchmarking. Multiple values can be passed separated by comma. Learn more about", ' ', jsx_runtime_1.jsx("a", { href: "https://remotion.dev/docs/terminology/concurrency", children: "concurrency" }),
|
|
11
|
+
"."] })),
|
|
12
|
+
ssrName: null,
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/cli/benchmark#--concurrencies',
|
|
14
|
+
type: null,
|
|
15
|
+
getValue: ({ commandLine }) => {
|
|
16
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
17
|
+
return { value: commandLine[cliFlag], source: 'cli' };
|
|
18
|
+
}
|
|
19
|
+
if (currentConcurrencies !== null) {
|
|
20
|
+
return { value: currentConcurrencies, source: 'config' };
|
|
21
|
+
}
|
|
22
|
+
return { value: null, source: 'default' };
|
|
23
|
+
},
|
|
24
|
+
setConfig: (value) => {
|
|
25
|
+
currentConcurrencies = value;
|
|
26
|
+
},
|
|
27
|
+
id: cliFlag,
|
|
28
|
+
};
|
package/dist/options/index.d.ts
CHANGED
|
@@ -19,6 +19,25 @@ export declare const allOptions: {
|
|
|
19
19
|
type: "aac" | "mp3" | "opus" | "pcm-16";
|
|
20
20
|
id: "audio-codec";
|
|
21
21
|
};
|
|
22
|
+
benchmarkConcurrenciesOption: {
|
|
23
|
+
name: string;
|
|
24
|
+
cliFlag: "concurrencies";
|
|
25
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
ssrName: null;
|
|
27
|
+
docLink: string;
|
|
28
|
+
type: string | null;
|
|
29
|
+
getValue: ({ commandLine }: {
|
|
30
|
+
commandLine: Record<string, unknown>;
|
|
31
|
+
}) => {
|
|
32
|
+
value: string;
|
|
33
|
+
source: string;
|
|
34
|
+
} | {
|
|
35
|
+
value: null;
|
|
36
|
+
source: string;
|
|
37
|
+
};
|
|
38
|
+
setConfig: (value: string | null) => void;
|
|
39
|
+
id: "concurrencies";
|
|
40
|
+
};
|
|
22
41
|
browserExecutableOption: {
|
|
23
42
|
name: string;
|
|
24
43
|
cliFlag: "browser-executable";
|
package/dist/options/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const ask_ai_1 = require("./ask-ai");
|
|
|
6
6
|
const audio_bitrate_1 = require("./audio-bitrate");
|
|
7
7
|
const audio_codec_1 = require("./audio-codec");
|
|
8
8
|
const beep_on_finish_1 = require("./beep-on-finish");
|
|
9
|
+
const benchmark_concurrencies_1 = require("./benchmark-concurrencies");
|
|
9
10
|
const binaries_directory_1 = require("./binaries-directory");
|
|
10
11
|
const browser_1 = require("./browser");
|
|
11
12
|
const browser_executable_1 = require("./browser-executable");
|
|
@@ -90,6 +91,7 @@ const webpack_poll_1 = require("./webpack-poll");
|
|
|
90
91
|
const x264_preset_1 = require("./x264-preset");
|
|
91
92
|
exports.allOptions = {
|
|
92
93
|
audioCodecOption: audio_codec_1.audioCodecOption,
|
|
94
|
+
benchmarkConcurrenciesOption: benchmark_concurrencies_1.benchmarkConcurrenciesOption,
|
|
93
95
|
browserExecutableOption: browser_executable_1.browserExecutableOption,
|
|
94
96
|
concurrencyOption: concurrency_1.concurrencyOption,
|
|
95
97
|
scaleOption: scale_1.scaleOption,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const privateLicenseKeyOption: {
|
|
2
2
|
name: string;
|
|
3
|
-
cliFlag: "
|
|
4
|
-
ssrName: "browserArgs";
|
|
3
|
+
cliFlag: "private-license-key";
|
|
5
4
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "privateLicenseKey";
|
|
6
6
|
docLink: string;
|
|
7
|
-
type: string;
|
|
8
7
|
getValue: ({ commandLine }: {
|
|
9
8
|
commandLine: Record<string, unknown>;
|
|
10
9
|
}) => {
|
|
11
|
-
value: string;
|
|
12
10
|
source: string;
|
|
11
|
+
value: string | null;
|
|
13
12
|
};
|
|
14
|
-
setConfig: (value: string) => void;
|
|
15
|
-
|
|
13
|
+
setConfig: (value: string | null) => void;
|
|
14
|
+
type: string | null;
|
|
16
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
|
+
};
|
package/package.json
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
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.431",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"scripts": {
|
|
12
12
|
"formatting": "oxfmt src --check",
|
|
13
|
+
"format": "oxfmt src",
|
|
13
14
|
"lint": "eslint src",
|
|
14
15
|
"test": "bun test src",
|
|
15
16
|
"watch": "tsgo -w",
|
|
@@ -23,11 +24,11 @@
|
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"execa": "5.1.1",
|
|
25
26
|
"extract-zip": "2.0.1",
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
27
|
+
"remotion": "4.0.431",
|
|
28
|
+
"@remotion/streaming": "4.0.431",
|
|
28
29
|
"source-map": "^0.8.0-beta.0",
|
|
29
30
|
"ws": "8.17.1",
|
|
30
|
-
"@remotion/licensing": "4.0.
|
|
31
|
+
"@remotion/licensing": "4.0.431"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
34
|
"react": ">=16.8.0",
|
|
@@ -41,19 +42,19 @@
|
|
|
41
42
|
"react-dom": "19.2.3",
|
|
42
43
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
43
44
|
"@types/ws": "8.5.10",
|
|
44
|
-
"@remotion/example-videos": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/example-videos": "4.0.431",
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.431",
|
|
46
47
|
"eslint": "9.19.0",
|
|
47
48
|
"@types/node": "20.12.14"
|
|
48
49
|
},
|
|
49
50
|
"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.
|
|
51
|
+
"@remotion/compositor-darwin-arm64": "4.0.431",
|
|
52
|
+
"@remotion/compositor-darwin-x64": "4.0.431",
|
|
53
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.431",
|
|
54
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.431",
|
|
55
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.431",
|
|
56
|
+
"@remotion/compositor-linux-x64-musl": "4.0.431",
|
|
57
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.431"
|
|
57
58
|
},
|
|
58
59
|
"keywords": [
|
|
59
60
|
"remotion",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.browserArgsOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'browser-args';
|
|
6
|
-
let currentBrowserArgs = '';
|
|
7
|
-
exports.browserArgsOption = {
|
|
8
|
-
name: 'Browser Args',
|
|
9
|
-
cliFlag,
|
|
10
|
-
ssrName: 'browserArgs',
|
|
11
|
-
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "A set of command line flags that should be passed to the browser." })),
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/cli/studio#--browser-args',
|
|
13
|
-
type: '',
|
|
14
|
-
getValue: ({ commandLine }) => {
|
|
15
|
-
if (commandLine[cliFlag] !== undefined)
|
|
16
|
-
return { value: String(commandLine[cliFlag]), source: 'cli' };
|
|
17
|
-
if (currentBrowserArgs !== '')
|
|
18
|
-
return { value: currentBrowserArgs, source: 'config' };
|
|
19
|
-
return { value: '', source: 'default' };
|
|
20
|
-
},
|
|
21
|
-
setConfig: (value) => {
|
|
22
|
-
currentBrowserArgs = value;
|
|
23
|
-
},
|
|
24
|
-
id: cliFlag,
|
|
25
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.concurrenciesOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'concurrencies';
|
|
6
|
-
let currentConcurrencies = '';
|
|
7
|
-
exports.concurrenciesOption = {
|
|
8
|
-
name: 'Concurrencies',
|
|
9
|
-
cliFlag,
|
|
10
|
-
ssrName: 'concurrencies',
|
|
11
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["You can specify which concurrency value should be used while rendering the video. Multiple concurrency values can be passed separated by comma. Learn more about", ' ', jsx_runtime_1.jsx("a", { href: "/docs/terminology/concurrency", children: jsx_runtime_1.jsx("code", { children: "concurrency" }) })
|
|
12
|
-
] })),
|
|
13
|
-
docLink: 'https://www.remotion.dev/docs/cli/benchmark#--concurrencies',
|
|
14
|
-
type: '',
|
|
15
|
-
getValue: ({ commandLine }) => {
|
|
16
|
-
if (commandLine[cliFlag]) {
|
|
17
|
-
return {
|
|
18
|
-
value: String(commandLine[cliFlag]),
|
|
19
|
-
source: 'cli',
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
if (currentConcurrencies) {
|
|
23
|
-
return {
|
|
24
|
-
value: currentConcurrencies,
|
|
25
|
-
source: 'config',
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
source: 'default',
|
|
30
|
-
value: '',
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
setConfig: (value) => {
|
|
34
|
-
currentConcurrencies = value;
|
|
35
|
-
},
|
|
36
|
-
id: cliFlag,
|
|
37
|
-
};
|
package/dist/options/force.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const forceOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "force";
|
|
4
|
-
ssrName: "force";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: null;
|
|
7
|
-
type: boolean;
|
|
8
|
-
getValue: ({ commandLine }: {
|
|
9
|
-
commandLine: Record<string, unknown>;
|
|
10
|
-
}) => {
|
|
11
|
-
value: boolean;
|
|
12
|
-
source: string;
|
|
13
|
-
};
|
|
14
|
-
setConfig: () => void;
|
|
15
|
-
id: "force";
|
|
16
|
-
};
|
package/dist/options/force.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.forceOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'force';
|
|
6
|
-
exports.forceOption = {
|
|
7
|
-
name: 'Force',
|
|
8
|
-
cliFlag,
|
|
9
|
-
ssrName: 'force',
|
|
10
|
-
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}),
|
|
11
|
-
docLink: null,
|
|
12
|
-
type: false,
|
|
13
|
-
getValue: ({ commandLine }) => {
|
|
14
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
-
return { value: Boolean(commandLine[cliFlag]), source: 'cli' };
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
source: 'default',
|
|
19
|
-
value: false,
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
setConfig: () => { },
|
|
23
|
-
id: cliFlag,
|
|
24
|
-
};
|
package/dist/options/help.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const helpOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "help";
|
|
4
|
-
ssrName: "help";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: string;
|
|
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: "help";
|
|
16
|
-
};
|
package/dist/options/help.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.helpOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'help';
|
|
6
|
-
let currentHelp = null;
|
|
7
|
-
exports.helpOption = {
|
|
8
|
-
name: 'Help',
|
|
9
|
-
cliFlag,
|
|
10
|
-
ssrName: 'help',
|
|
11
|
-
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Prints available commands and flags for the Remotion CLI." })),
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/cli/help',
|
|
13
|
-
type: false,
|
|
14
|
-
getValue: ({ commandLine }) => {
|
|
15
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
-
return { value: Boolean(commandLine[cliFlag]), source: 'cli' };
|
|
17
|
-
}
|
|
18
|
-
if (currentHelp !== null)
|
|
19
|
-
return { value: currentHelp, source: 'config' };
|
|
20
|
-
return { value: false, source: 'default' };
|
|
21
|
-
},
|
|
22
|
-
setConfig: (value) => {
|
|
23
|
-
currentHelp = value;
|
|
24
|
-
},
|
|
25
|
-
id: cliFlag,
|
|
26
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const imageFormatOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "image-format";
|
|
4
|
-
ssrName: "imageFormat";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: string;
|
|
7
|
-
type: never;
|
|
8
|
-
getValue: () => never;
|
|
9
|
-
setConfig: () => void;
|
|
10
|
-
id: "image-format";
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
const cliFlag = 'image-format';
|
|
6
|
-
exports.imageFormatOption = {
|
|
7
|
-
name: 'Image Format (deprecated)',
|
|
8
|
-
cliFlag,
|
|
9
|
-
ssrName: 'imageFormat',
|
|
10
|
-
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Deprecated. Use --png / --jpeg / --webp instead." }),
|
|
11
|
-
docLink: 'https://www.remotion.dev/docs/cli/render#--image-format',
|
|
12
|
-
type: null,
|
|
13
|
-
getValue: () => {
|
|
14
|
-
throw new Error('The "--image-format" flag is deprecated.');
|
|
15
|
-
},
|
|
16
|
-
setConfig: () => { },
|
|
17
|
-
id: cliFlag,
|
|
18
|
-
};
|
package/dist/options/output.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const outputOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "output";
|
|
4
|
-
ssrName: "output";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: string;
|
|
7
|
-
type: string | undefined;
|
|
8
|
-
getValue: ({ commandLine }: {
|
|
9
|
-
commandLine: Record<string, unknown>;
|
|
10
|
-
}) => {
|
|
11
|
-
value: string;
|
|
12
|
-
source: string;
|
|
13
|
-
} | {
|
|
14
|
-
source: string;
|
|
15
|
-
value: undefined;
|
|
16
|
-
};
|
|
17
|
-
setConfig: (value: string | undefined) => void;
|
|
18
|
-
id: "output";
|
|
19
|
-
};
|
package/dist/options/output.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.outputOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'output';
|
|
6
|
-
let currentOutput;
|
|
7
|
-
// Option for --output
|
|
8
|
-
exports.outputOption = {
|
|
9
|
-
name: 'Output',
|
|
10
|
-
cliFlag,
|
|
11
|
-
ssrName: 'output',
|
|
12
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Sets the output file path, as an alternative to the", ' ', jsx_runtime_1.jsx("code", { children: "output-location" }),
|
|
13
|
-
" positional argument."] })),
|
|
14
|
-
docLink: 'https://www.remotion.dev/docs/cli/render#--output-',
|
|
15
|
-
type: '',
|
|
16
|
-
getValue: ({ commandLine }) => {
|
|
17
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
18
|
-
return {
|
|
19
|
-
value: commandLine[cliFlag],
|
|
20
|
-
source: 'cli',
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
if (currentOutput !== undefined) {
|
|
24
|
-
return {
|
|
25
|
-
value: currentOutput,
|
|
26
|
-
source: 'config',
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
source: 'default',
|
|
31
|
-
value: undefined,
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
setConfig: (value) => {
|
|
35
|
-
currentOutput = value;
|
|
36
|
-
},
|
|
37
|
-
id: cliFlag,
|
|
38
|
-
};
|
package/dist/options/png.d.ts
DELETED
package/dist/options/png.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pngOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'png';
|
|
6
|
-
exports.pngOption = {
|
|
7
|
-
name: 'PNG (deprecated)',
|
|
8
|
-
cliFlag,
|
|
9
|
-
ssrName: 'png',
|
|
10
|
-
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Deprecated. Throws an error if used." }),
|
|
11
|
-
docLink: null,
|
|
12
|
-
type: null,
|
|
13
|
-
getValue: () => {
|
|
14
|
-
throw new Error('The "--png" flag is deprecated.');
|
|
15
|
-
},
|
|
16
|
-
setConfig: () => { },
|
|
17
|
-
id: cliFlag,
|
|
18
|
-
};
|