@remotion/renderer 4.0.58 → 4.0.59
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 +1 -1
- package/dist/get-port.d.ts +4 -0
- package/dist/get-port.js +11 -2
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1 -0
- package/dist/options/gl.d.ts +1 -1
- package/dist/options/index.d.ts +1 -1
- package/dist/serve-static.js +3 -7
- package/dist/stitch-frames-to-video.d.ts +1 -0
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -311,7 +311,7 @@ export declare const BrowserSafeApis: {
|
|
|
311
311
|
cliFlag: string;
|
|
312
312
|
docLink: string;
|
|
313
313
|
name: string;
|
|
314
|
-
type: "
|
|
314
|
+
type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
315
315
|
ssrName: string;
|
|
316
316
|
description: () => JSX.Element;
|
|
317
317
|
};
|
package/dist/get-port.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export declare const testPortAvailableOnMultipleHosts: ({ hosts, port, }: {
|
|
|
3
3
|
port: number;
|
|
4
4
|
hosts: string[];
|
|
5
5
|
}) => Promise<PortStatus>;
|
|
6
|
+
export declare const getPortConfig: () => {
|
|
7
|
+
host: string;
|
|
8
|
+
hostsToTry: string[];
|
|
9
|
+
};
|
|
6
10
|
export declare const getDesiredPort: ({ desiredPort, from, hostsToTry, to, }: {
|
|
7
11
|
desiredPort: number | undefined;
|
|
8
12
|
from: number;
|
package/dist/get-port.js
CHANGED
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getDesiredPort = exports.testPortAvailableOnMultipleHosts = void 0;
|
|
6
|
+
exports.getDesiredPort = exports.getPortConfig = exports.testPortAvailableOnMultipleHosts = void 0;
|
|
7
7
|
const net_1 = __importDefault(require("net"));
|
|
8
|
+
const is_ipv6_supported_1 = require("./is-ipv6-supported");
|
|
8
9
|
const locks_1 = require("./locks");
|
|
9
10
|
const isPortAvailableOnHost = ({ portToTry, host, }) => {
|
|
10
11
|
return new Promise((resolve) => {
|
|
@@ -47,6 +48,14 @@ const getPort = async ({ from, to, hostsToTest, }) => {
|
|
|
47
48
|
throw new Error('No available ports found');
|
|
48
49
|
};
|
|
49
50
|
const portLocks = (0, locks_1.createLock)({ timeout: 10000 });
|
|
51
|
+
const getPortConfig = () => {
|
|
52
|
+
const host = (0, is_ipv6_supported_1.isIpV6Supported)() ? '::' : '0.0.0.0';
|
|
53
|
+
const hostsToTry = (0, is_ipv6_supported_1.isIpV6Supported)()
|
|
54
|
+
? ['::', '::1', '0.0.0.0', '127.0.0.1']
|
|
55
|
+
: ['0.0.0.0', '127.0.0.1'];
|
|
56
|
+
return { host, hostsToTry };
|
|
57
|
+
};
|
|
58
|
+
exports.getPortConfig = getPortConfig;
|
|
50
59
|
const getDesiredPort = async ({ desiredPort, from, hostsToTry, to, }) => {
|
|
51
60
|
await portLocks.waitForAllToBeDone();
|
|
52
61
|
const lockPortSelection = portLocks.lock();
|
|
@@ -54,7 +63,7 @@ const getDesiredPort = async ({ desiredPort, from, hostsToTry, to, }) => {
|
|
|
54
63
|
if (typeof desiredPort !== 'undefined' &&
|
|
55
64
|
(await (0, exports.testPortAvailableOnMultipleHosts)({
|
|
56
65
|
port: desiredPort,
|
|
57
|
-
hosts:
|
|
66
|
+
hosts: hostsToTry,
|
|
58
67
|
})) === 'available') {
|
|
59
68
|
return { port: desiredPort, didUsePort };
|
|
60
69
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
import execa from 'execa';
|
|
2
4
|
import { HeadlessBrowser } from './browser/Browser';
|
|
3
5
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -135,8 +137,8 @@ export declare const RenderInternals: {
|
|
|
135
137
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
136
138
|
DEFAULT_BROWSER: "chrome";
|
|
137
139
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
138
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
139
|
-
validateOpenGlRenderer: (option: "
|
|
140
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
141
|
+
validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
140
142
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
141
143
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
142
144
|
validateJpegQuality: (q: number | undefined) => void;
|
|
@@ -327,8 +329,8 @@ export declare const RenderInternals: {
|
|
|
327
329
|
};
|
|
328
330
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
329
331
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
330
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
331
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
332
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
333
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
332
334
|
DEFAULT_JPEG_QUALITY: number;
|
|
333
335
|
chalk: {
|
|
334
336
|
enabled: () => boolean;
|
|
@@ -427,7 +429,7 @@ export declare const RenderInternals: {
|
|
|
427
429
|
frame: number;
|
|
428
430
|
serializedInputPropsWithCustomSchema: string;
|
|
429
431
|
serializedResolvedPropsWithCustomSchema: string;
|
|
430
|
-
imageFormat: "
|
|
432
|
+
imageFormat: "jpeg" | "png" | "webp" | "pdf";
|
|
431
433
|
jpegQuality: number;
|
|
432
434
|
puppeteerInstance: HeadlessBrowser | null;
|
|
433
435
|
envVariables: Record<string, string>;
|
|
@@ -527,4 +529,8 @@ export declare const RenderInternals: {
|
|
|
527
529
|
feature: string;
|
|
528
530
|
status: string;
|
|
529
531
|
}[]>;
|
|
532
|
+
getPortConfig: () => {
|
|
533
|
+
host: string;
|
|
534
|
+
hostsToTry: string[];
|
|
535
|
+
};
|
|
530
536
|
};
|
package/dist/index.js
CHANGED
|
@@ -195,6 +195,7 @@ exports.RenderInternals = {
|
|
|
195
195
|
copyImageToClipboard: copy_to_clipboard_1.copyImageToClipboard,
|
|
196
196
|
isIpV6Supported: is_ipv6_supported_1.isIpV6Supported,
|
|
197
197
|
getChromiumGpuInformation: test_gpu_1.getChromiumGpuInformation,
|
|
198
|
+
getPortConfig: get_port_1.getPortConfig,
|
|
198
199
|
};
|
|
199
200
|
// Warn of potential performance issues with Apple Silicon (M1 chip under Rosetta)
|
|
200
201
|
(0, check_apple_silicon_1.checkNodeVersionAndWarnAboutRosetta)();
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const glOption: {
|
|
|
4
4
|
cliFlag: string;
|
|
5
5
|
docLink: string;
|
|
6
6
|
name: string;
|
|
7
|
-
type: "
|
|
7
|
+
type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
8
8
|
ssrName: string;
|
|
9
9
|
description: () => JSX.Element;
|
|
10
10
|
};
|
package/dist/options/index.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export declare const allOptions: {
|
|
|
116
116
|
cliFlag: string;
|
|
117
117
|
docLink: string;
|
|
118
118
|
name: string;
|
|
119
|
-
type: "
|
|
119
|
+
type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
120
120
|
ssrName: string;
|
|
121
121
|
description: () => JSX.Element;
|
|
122
122
|
};
|
package/dist/serve-static.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.serveStatic = void 0;
|
|
7
7
|
const node_http_1 = __importDefault(require("node:http"));
|
|
8
8
|
const get_port_1 = require("./get-port");
|
|
9
|
-
const is_ipv6_supported_1 = require("./is-ipv6-supported");
|
|
10
9
|
const offthread_video_server_1 = require("./offthread-video-server");
|
|
11
10
|
const serve_handler_1 = require("./serve-handler");
|
|
12
11
|
const serveStatic = async (path, options) => {
|
|
@@ -46,10 +45,7 @@ const serveStatic = async (path, options) => {
|
|
|
46
45
|
});
|
|
47
46
|
let selectedPort = null;
|
|
48
47
|
const maxTries = 5;
|
|
49
|
-
const
|
|
50
|
-
const hostsToTry = (0, is_ipv6_supported_1.isIpV6Supported)()
|
|
51
|
-
? ['::', '::1']
|
|
52
|
-
: ['0.0.0.0', '127.0.0.1'];
|
|
48
|
+
const portConfig = (0, get_port_1.getPortConfig)();
|
|
53
49
|
for (let i = 0; i < maxTries; i++) {
|
|
54
50
|
try {
|
|
55
51
|
selectedPort = await new Promise((resolve, reject) => {
|
|
@@ -58,10 +54,10 @@ const serveStatic = async (path, options) => {
|
|
|
58
54
|
desiredPort: (_a = options === null || options === void 0 ? void 0 : options.port) !== null && _a !== void 0 ? _a : undefined,
|
|
59
55
|
from: 3000,
|
|
60
56
|
to: 3100,
|
|
61
|
-
hostsToTry,
|
|
57
|
+
hostsToTry: portConfig.hostsToTry,
|
|
62
58
|
})
|
|
63
59
|
.then(({ port, didUsePort }) => {
|
|
64
|
-
server.listen({ port, host });
|
|
60
|
+
server.listen({ port, host: portConfig.host });
|
|
65
61
|
server.on('listening', () => {
|
|
66
62
|
resolve(port);
|
|
67
63
|
return didUsePort();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.59",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.7.0",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.59"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"vitest": "0.31.1"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@remotion/compositor-
|
|
44
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-linux-x64-
|
|
47
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
48
|
-
"@remotion/compositor-linux-arm64-
|
|
49
|
-
"@remotion/compositor-linux-x64-
|
|
43
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.59",
|
|
44
|
+
"@remotion/compositor-darwin-x64": "4.0.59",
|
|
45
|
+
"@remotion/compositor-darwin-arm64": "4.0.59",
|
|
46
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.59",
|
|
47
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.59",
|
|
48
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.59",
|
|
49
|
+
"@remotion/compositor-linux-x64-musl": "4.0.59"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|