@remotion/renderer 4.0.428 → 4.0.430
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/README.md +7 -7
- package/dist/assets/download-file.js +3 -1
- package/dist/browser/BrowserFetcher.js +1 -1
- package/dist/browser/BrowserPage.d.ts +1 -1
- package/dist/browser/BrowserPage.js +1 -1
- package/dist/browser/BrowserRunner.js +1 -1
- package/dist/browser/FrameManager.d.ts +1 -1
- package/dist/browser/FrameManager.js +2 -2
- package/dist/browser/handle-failed-resource.d.ts +1 -1
- package/dist/call-ffmpeg.d.ts +1 -1
- package/dist/call-ffmpeg.js +1 -1
- package/dist/client.d.ts +19 -0
- package/dist/compositor/compositor.js +1 -1
- package/dist/ensure-browser.js +1 -1
- package/dist/esm/client.mjs +779 -742
- package/dist/esm/index.mjs +34 -27
- package/dist/get-compositions.js +1 -1
- 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/{output.d.ts → image-format-option.d.ts} +6 -7
- package/dist/options/image-format-option.js +33 -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/dist/render-frames.js +1 -1
- package/dist/render-media.js +2 -2
- package/dist/render-still.js +2 -2
- package/dist/select-composition.js +1 -1
- package/package.json +15 -14
- package/types/ws/index.d.ts +76 -64
- 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.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/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# @remotion/renderer
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
Render Remotion videos using Node.js or Bun
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
[](https://npmcharts.com/compare/@remotion/renderer?minimal=true)
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
## Installation
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
```bash
|
|
10
10
|
npm install @remotion/renderer --save-exact
|
|
11
11
|
```
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
|
|
14
14
|
Remove the `^` character from the version number to use the exact version.
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
## Usage
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
See the [documentation](https://www.remotion.dev/docs/renderer) for more information.
|
|
@@ -7,6 +7,7 @@ const logger_1 = require("../logger");
|
|
|
7
7
|
const read_file_1 = require("./read-file");
|
|
8
8
|
const CANCELLED_ERROR = 'cancelled';
|
|
9
9
|
const incorrectContentLengthToken = 'Download finished with';
|
|
10
|
+
const noDataSentToken = 'but the server sent no data for';
|
|
10
11
|
const downloadFileWithoutRetries = ({ onProgress, url, to: toFn, abortSignal, }) => {
|
|
11
12
|
return new Promise((resolve, reject) => {
|
|
12
13
|
let rejected = false;
|
|
@@ -36,7 +37,7 @@ const downloadFileWithoutRetries = ({ onProgress, url, to: toFn, abortSignal, })
|
|
|
36
37
|
if (resolved) {
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
|
-
rejectAndFlag(new Error(`Tried to download file ${url},
|
|
40
|
+
rejectAndFlag(new Error(`Tried to download file ${url}, ${noDataSentToken} 20 seconds`));
|
|
40
41
|
}, 20000);
|
|
41
42
|
};
|
|
42
43
|
refreshTimeout();
|
|
@@ -129,6 +130,7 @@ const downloadFile = async (options, retries = 2, attempt = 1) => {
|
|
|
129
130
|
if (message === 'aborted' ||
|
|
130
131
|
message.includes('ECONNRESET') ||
|
|
131
132
|
message.includes(incorrectContentLengthToken) ||
|
|
133
|
+
message.includes(noDataSentToken) ||
|
|
132
134
|
// Try again if hitting internal errors
|
|
133
135
|
message.includes('503') ||
|
|
134
136
|
message.includes('502') ||
|
|
@@ -55,8 +55,8 @@ exports.getRevisionInfo = exports.downloadBrowser = exports.readVersionFile = ex
|
|
|
55
55
|
const fs = __importStar(require("node:fs"));
|
|
56
56
|
const os = __importStar(require("node:os"));
|
|
57
57
|
const path = __importStar(require("node:path"));
|
|
58
|
-
const extract_zip_1 = __importDefault(require("extract-zip"));
|
|
59
58
|
const node_util_1 = require("node:util");
|
|
59
|
+
const extract_zip_1 = __importDefault(require("extract-zip"));
|
|
60
60
|
const download_file_1 = require("../assets/download-file");
|
|
61
61
|
const make_file_executable_1 = require("../compositor/make-file-executable");
|
|
62
62
|
const get_chrome_download_url_1 = require("./get-chrome-download-url");
|
|
@@ -9,9 +9,9 @@ import type { Frame } from './FrameManager';
|
|
|
9
9
|
import type { HTTPResponse } from './HTTPResponse';
|
|
10
10
|
import type { JSHandle } from './JSHandle';
|
|
11
11
|
import type { Viewport } from './PuppeteerViewport';
|
|
12
|
+
import type { SourceMapGetter } from './source-map-getter';
|
|
12
13
|
import type { Target } from './Target';
|
|
13
14
|
import { TaskQueue } from './TaskQueue';
|
|
14
|
-
import type { SourceMapGetter } from './source-map-getter';
|
|
15
15
|
interface WaitForOptions {
|
|
16
16
|
timeout?: number;
|
|
17
17
|
}
|
|
@@ -20,13 +20,13 @@ const no_react_1 = require("remotion/no-react");
|
|
|
20
20
|
const format_logs_1 = require("../format-logs");
|
|
21
21
|
const logger_1 = require("../logger");
|
|
22
22
|
const truthy_1 = require("../truthy");
|
|
23
|
+
const assert_1 = require("./assert");
|
|
23
24
|
const ConsoleMessage_1 = require("./ConsoleMessage");
|
|
24
25
|
const EventEmitter_1 = require("./EventEmitter");
|
|
25
26
|
const FrameManager_1 = require("./FrameManager");
|
|
26
27
|
const JSHandle_1 = require("./JSHandle");
|
|
27
28
|
const TaskQueue_1 = require("./TaskQueue");
|
|
28
29
|
const TimeoutSettings_1 = require("./TimeoutSettings");
|
|
29
|
-
const assert_1 = require("./assert");
|
|
30
30
|
const util_1 = require("./util");
|
|
31
31
|
const shouldHideWarning = (log) => {
|
|
32
32
|
// Mixed Content warnings caused by localhost should not be displayed
|
|
@@ -55,10 +55,10 @@ const delete_directory_1 = require("../delete-directory");
|
|
|
55
55
|
const log_level_1 = require("../log-level");
|
|
56
56
|
const logger_1 = require("../logger");
|
|
57
57
|
const truthy_1 = require("../truthy");
|
|
58
|
+
const assert_1 = require("./assert");
|
|
58
59
|
const Connection_1 = require("./Connection");
|
|
59
60
|
const Errors_1 = require("./Errors");
|
|
60
61
|
const NodeWebSocketTransport_1 = require("./NodeWebSocketTransport");
|
|
61
|
-
const assert_1 = require("./assert");
|
|
62
62
|
const should_log_message_1 = require("./should-log-message");
|
|
63
63
|
const util_1 = require("./util");
|
|
64
64
|
const PROCESS_ERROR_EXPLANATION = `Puppeteer was unable to kill the process which ran the browser binary.
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import type { LogLevel } from '../log-level';
|
|
17
17
|
import type { Page } from './BrowserPage';
|
|
18
18
|
import type { CDPSession } from './Connection';
|
|
19
|
+
import type { Frame as TFrame } from './devtools-types';
|
|
19
20
|
import { DOMWorld } from './DOMWorld';
|
|
20
21
|
import type { EvaluateFn, EvaluateFnReturnType, EvaluateHandleFn, SerializableOrJSHandle, UnwrapPromiseLike } from './EvalTypes';
|
|
21
22
|
import { EventEmitter } from './EventEmitter';
|
|
@@ -24,7 +25,6 @@ import type { HTTPResponse } from './HTTPResponse';
|
|
|
24
25
|
import type { JSHandle } from './JSHandle';
|
|
25
26
|
import type { PuppeteerLifeCycleEvent } from './LifecycleWatcher';
|
|
26
27
|
import { NetworkManager } from './NetworkManager';
|
|
27
|
-
import type { Frame as TFrame } from './devtools-types';
|
|
28
28
|
export declare const FrameManagerEmittedEvents: {
|
|
29
29
|
FrameNavigated: symbol;
|
|
30
30
|
FrameDetached: symbol;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.Frame = exports.FrameManager = exports.FrameManagerEmittedEvents = void 0;
|
|
19
|
+
const assert_1 = require("./assert");
|
|
19
20
|
const Connection_1 = require("./Connection");
|
|
20
21
|
const DOMWorld_1 = require("./DOMWorld");
|
|
21
22
|
const EventEmitter_1 = require("./EventEmitter");
|
|
22
23
|
const ExecutionContext_1 = require("./ExecutionContext");
|
|
24
|
+
const flaky_errors_1 = require("./flaky-errors");
|
|
23
25
|
const LifecycleWatcher_1 = require("./LifecycleWatcher");
|
|
24
26
|
const NetworkManager_1 = require("./NetworkManager");
|
|
25
|
-
const assert_1 = require("./assert");
|
|
26
|
-
const flaky_errors_1 = require("./flaky-errors");
|
|
27
27
|
const util_1 = require("./util");
|
|
28
28
|
const UTILITY_WORLD_NAME = '__puppeteer_utility_world__';
|
|
29
29
|
exports.FrameManagerEmittedEvents = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HTTPRequest } from './HTTPRequest';
|
|
2
1
|
import type { LoadingFailedEvent, ResponseReceivedExtraInfoEvent } from './devtools-types';
|
|
2
|
+
import type { HTTPRequest } from './HTTPRequest';
|
|
3
3
|
export declare const handleFailedResource: ({ extraInfo, logLevel, indent, request, event, }: {
|
|
4
4
|
extraInfo: ResponseReceivedExtraInfoEvent[];
|
|
5
5
|
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
package/dist/call-ffmpeg.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import execa from 'execa';
|
|
2
1
|
import type { SpawnOptionsWithoutStdio } from 'node:child_process';
|
|
2
|
+
import execa from 'execa';
|
|
3
3
|
import type { CancelSignal } from './make-cancel-signal';
|
|
4
4
|
export declare const callFf: ({ args, bin, indent, logLevel, options, binariesDirectory, cancelSignal, }: {
|
|
5
5
|
bin: "ffmpeg" | "ffprobe";
|
package/dist/call-ffmpeg.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.callFfNative = exports.callFf = void 0;
|
|
7
|
-
const execa_1 = __importDefault(require("execa"));
|
|
8
7
|
const node_child_process_1 = require("node:child_process");
|
|
9
8
|
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const execa_1 = __importDefault(require("execa"));
|
|
10
10
|
const get_executable_path_1 = require("./compositor/get-executable-path");
|
|
11
11
|
const get_explicit_env_1 = require("./compositor/get-explicit-env");
|
|
12
12
|
const make_file_executable_1 = require("./compositor/make-file-executable");
|
package/dist/client.d.ts
CHANGED
|
@@ -243,6 +243,25 @@ export declare const BrowserSafeApis: {
|
|
|
243
243
|
type: "aac" | "mp3" | "opus" | "pcm-16";
|
|
244
244
|
id: "audio-codec";
|
|
245
245
|
};
|
|
246
|
+
benchmarkConcurrenciesOption: {
|
|
247
|
+
name: string;
|
|
248
|
+
cliFlag: "concurrencies";
|
|
249
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
250
|
+
ssrName: null;
|
|
251
|
+
docLink: string;
|
|
252
|
+
type: string | null;
|
|
253
|
+
getValue: ({ commandLine }: {
|
|
254
|
+
commandLine: Record<string, unknown>;
|
|
255
|
+
}) => {
|
|
256
|
+
value: string;
|
|
257
|
+
source: string;
|
|
258
|
+
} | {
|
|
259
|
+
value: null;
|
|
260
|
+
source: string;
|
|
261
|
+
};
|
|
262
|
+
setConfig: (value: string | null) => void;
|
|
263
|
+
id: "concurrencies";
|
|
264
|
+
};
|
|
246
265
|
browserExecutableOption: {
|
|
247
266
|
name: string;
|
|
248
267
|
cliFlag: "browser-executable";
|
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.startCompositor = exports.startLongRunningCompositor = void 0;
|
|
7
|
-
const streaming_1 = require("@remotion/streaming");
|
|
8
7
|
const node_child_process_1 = require("node:child_process");
|
|
9
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const streaming_1 = require("@remotion/streaming");
|
|
10
10
|
const log_level_1 = require("../log-level");
|
|
11
11
|
const logger_1 = require("../logger");
|
|
12
12
|
const get_executable_path_1 = require("./get-executable-path");
|
package/dist/ensure-browser.js
CHANGED
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ensureBrowser = exports.internalEnsureBrowser = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const BrowserFetcher_1 = require("./browser/BrowserFetcher");
|
|
9
8
|
const browser_download_progress_bar_1 = require("./browser/browser-download-progress-bar");
|
|
9
|
+
const BrowserFetcher_1 = require("./browser/BrowserFetcher");
|
|
10
10
|
const logger_1 = require("./logger");
|
|
11
11
|
let currentEnsureBrowserOperation = Promise.resolve();
|
|
12
12
|
const internalEnsureBrowserUncapped = async ({ indent, logLevel, browserExecutable, onBrowserDownload, chromeMode, }) => {
|