@remotion/renderer 4.0.536 → 4.0.537
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/esm/index.mjs +66 -66
- package/dist/serve-static.js +4 -4
- package/package.json +13 -13
package/dist/esm/index.mjs
CHANGED
|
@@ -17683,69 +17683,6 @@ var makeRange = (from, to) => {
|
|
|
17683
17683
|
});
|
|
17684
17684
|
};
|
|
17685
17685
|
|
|
17686
|
-
// src/port-config.ts
|
|
17687
|
-
import os9 from "os";
|
|
17688
|
-
var cached = null;
|
|
17689
|
-
var getPortConfig = (preferIpv4) => {
|
|
17690
|
-
if (cached) {
|
|
17691
|
-
return cached;
|
|
17692
|
-
}
|
|
17693
|
-
const networkInterfaces = os9.networkInterfaces();
|
|
17694
|
-
const flattened = flattenNetworkInterfaces(networkInterfaces);
|
|
17695
|
-
const host = getHostToBind(flattened, preferIpv4);
|
|
17696
|
-
const hostsToTry = getHostsToTry(flattened);
|
|
17697
|
-
const response = { host, hostsToTry };
|
|
17698
|
-
cached = response;
|
|
17699
|
-
return response;
|
|
17700
|
-
};
|
|
17701
|
-
var getHostToBind = (flattened, preferIpv4) => {
|
|
17702
|
-
if (preferIpv4 || !isIpV6Supported(flattened)) {
|
|
17703
|
-
return "0.0.0.0";
|
|
17704
|
-
}
|
|
17705
|
-
return "::";
|
|
17706
|
-
};
|
|
17707
|
-
var getHostsToTry = (flattened) => {
|
|
17708
|
-
return [
|
|
17709
|
-
hasIPv6LoopbackAddress(flattened) ? "::1" : null,
|
|
17710
|
-
hasIpv4LoopbackAddress(flattened) ? "127.0.0.1" : null,
|
|
17711
|
-
isIpV6Supported(flattened) ? "::" : null,
|
|
17712
|
-
"0.0.0.0"
|
|
17713
|
-
].filter(truthy);
|
|
17714
|
-
};
|
|
17715
|
-
var flattenNetworkInterfaces = (networkInterfaces) => {
|
|
17716
|
-
const result = [];
|
|
17717
|
-
for (const iface in networkInterfaces) {
|
|
17718
|
-
for (const configuration of networkInterfaces[iface]) {
|
|
17719
|
-
result.push(configuration);
|
|
17720
|
-
}
|
|
17721
|
-
}
|
|
17722
|
-
return result;
|
|
17723
|
-
};
|
|
17724
|
-
var isIpV6Supported = (flattened) => {
|
|
17725
|
-
for (const configuration of flattened) {
|
|
17726
|
-
if (configuration.family === "IPv6" && !configuration.internal) {
|
|
17727
|
-
return true;
|
|
17728
|
-
}
|
|
17729
|
-
}
|
|
17730
|
-
return false;
|
|
17731
|
-
};
|
|
17732
|
-
var hasIPv6LoopbackAddress = (flattened) => {
|
|
17733
|
-
for (const configuration of flattened) {
|
|
17734
|
-
if (configuration.family === "IPv6" && configuration.internal && configuration.address === "::1") {
|
|
17735
|
-
return true;
|
|
17736
|
-
}
|
|
17737
|
-
}
|
|
17738
|
-
return false;
|
|
17739
|
-
};
|
|
17740
|
-
var hasIpv4LoopbackAddress = (flattened) => {
|
|
17741
|
-
for (const configuration of flattened) {
|
|
17742
|
-
if (configuration.family === "IPv4" && configuration.internal && configuration.address === "127.0.0.1") {
|
|
17743
|
-
return true;
|
|
17744
|
-
}
|
|
17745
|
-
}
|
|
17746
|
-
return false;
|
|
17747
|
-
};
|
|
17748
|
-
|
|
17749
17686
|
// src/serve-handler/index.ts
|
|
17750
17687
|
import { createReadStream, promises as promises3 } from "node:fs";
|
|
17751
17688
|
import path19 from "node:path";
|
|
@@ -18032,7 +17969,7 @@ var serveStatic = async (path, options2) => {
|
|
|
18032
17969
|
});
|
|
18033
17970
|
let selectedPort = null;
|
|
18034
17971
|
const maxTries = 10;
|
|
18035
|
-
const
|
|
17972
|
+
const host = "127.0.0.1";
|
|
18036
17973
|
for (let i = 0;i < maxTries; i++) {
|
|
18037
17974
|
let unlock = () => {};
|
|
18038
17975
|
try {
|
|
@@ -18041,10 +17978,10 @@ var serveStatic = async (path, options2) => {
|
|
|
18041
17978
|
desiredPort: options2?.port ?? undefined,
|
|
18042
17979
|
from: 3000,
|
|
18043
17980
|
to: 3100,
|
|
18044
|
-
hostsToTry:
|
|
17981
|
+
hostsToTry: [host]
|
|
18045
17982
|
}).then(({ port, unlockPort }) => {
|
|
18046
17983
|
unlock = unlockPort;
|
|
18047
|
-
server.listen({ port, host
|
|
17984
|
+
server.listen({ port, host });
|
|
18048
17985
|
server.on("listening", () => {
|
|
18049
17986
|
resolve(port);
|
|
18050
17987
|
return unlock();
|
|
@@ -19544,6 +19481,69 @@ var validateSelectedPixelFormatAndCodecCombination = (pixelFormat, codec) => {
|
|
|
19544
19481
|
}
|
|
19545
19482
|
};
|
|
19546
19483
|
|
|
19484
|
+
// src/port-config.ts
|
|
19485
|
+
import os9 from "os";
|
|
19486
|
+
var cached = null;
|
|
19487
|
+
var getPortConfig = (preferIpv4) => {
|
|
19488
|
+
if (cached) {
|
|
19489
|
+
return cached;
|
|
19490
|
+
}
|
|
19491
|
+
const networkInterfaces = os9.networkInterfaces();
|
|
19492
|
+
const flattened = flattenNetworkInterfaces(networkInterfaces);
|
|
19493
|
+
const host = getHostToBind(flattened, preferIpv4);
|
|
19494
|
+
const hostsToTry = getHostsToTry(flattened);
|
|
19495
|
+
const response = { host, hostsToTry };
|
|
19496
|
+
cached = response;
|
|
19497
|
+
return response;
|
|
19498
|
+
};
|
|
19499
|
+
var getHostToBind = (flattened, preferIpv4) => {
|
|
19500
|
+
if (preferIpv4 || !isIpV6Supported(flattened)) {
|
|
19501
|
+
return "0.0.0.0";
|
|
19502
|
+
}
|
|
19503
|
+
return "::";
|
|
19504
|
+
};
|
|
19505
|
+
var getHostsToTry = (flattened) => {
|
|
19506
|
+
return [
|
|
19507
|
+
hasIPv6LoopbackAddress(flattened) ? "::1" : null,
|
|
19508
|
+
hasIpv4LoopbackAddress(flattened) ? "127.0.0.1" : null,
|
|
19509
|
+
isIpV6Supported(flattened) ? "::" : null,
|
|
19510
|
+
"0.0.0.0"
|
|
19511
|
+
].filter(truthy);
|
|
19512
|
+
};
|
|
19513
|
+
var flattenNetworkInterfaces = (networkInterfaces) => {
|
|
19514
|
+
const result = [];
|
|
19515
|
+
for (const iface in networkInterfaces) {
|
|
19516
|
+
for (const configuration of networkInterfaces[iface]) {
|
|
19517
|
+
result.push(configuration);
|
|
19518
|
+
}
|
|
19519
|
+
}
|
|
19520
|
+
return result;
|
|
19521
|
+
};
|
|
19522
|
+
var isIpV6Supported = (flattened) => {
|
|
19523
|
+
for (const configuration of flattened) {
|
|
19524
|
+
if (configuration.family === "IPv6" && !configuration.internal) {
|
|
19525
|
+
return true;
|
|
19526
|
+
}
|
|
19527
|
+
}
|
|
19528
|
+
return false;
|
|
19529
|
+
};
|
|
19530
|
+
var hasIPv6LoopbackAddress = (flattened) => {
|
|
19531
|
+
for (const configuration of flattened) {
|
|
19532
|
+
if (configuration.family === "IPv6" && configuration.internal && configuration.address === "::1") {
|
|
19533
|
+
return true;
|
|
19534
|
+
}
|
|
19535
|
+
}
|
|
19536
|
+
return false;
|
|
19537
|
+
};
|
|
19538
|
+
var hasIpv4LoopbackAddress = (flattened) => {
|
|
19539
|
+
for (const configuration of flattened) {
|
|
19540
|
+
if (configuration.family === "IPv4" && configuration.internal && configuration.address === "127.0.0.1") {
|
|
19541
|
+
return true;
|
|
19542
|
+
}
|
|
19543
|
+
}
|
|
19544
|
+
return false;
|
|
19545
|
+
};
|
|
19546
|
+
|
|
19547
19547
|
// src/probe-shared-memory-capture.ts
|
|
19548
19548
|
import fs16 from "node:fs";
|
|
19549
19549
|
import os10 from "node:os";
|
package/dist/serve-static.js
CHANGED
|
@@ -7,7 +7,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
9
|
const offthread_video_server_1 = require("./offthread-video-server");
|
|
10
|
-
const port_config_1 = require("./port-config");
|
|
11
10
|
const serve_handler_1 = require("./serve-handler");
|
|
12
11
|
const serveStatic = async (path, options) => {
|
|
13
12
|
const { listener: offthreadRequest, close: closeCompositor, compositor, } = (0, offthread_video_server_1.startOffthreadVideoServer)({
|
|
@@ -54,7 +53,8 @@ const serveStatic = async (path, options) => {
|
|
|
54
53
|
});
|
|
55
54
|
let selectedPort = null;
|
|
56
55
|
const maxTries = 10;
|
|
57
|
-
|
|
56
|
+
// Rendering only needs local access, unlike the Studio server.
|
|
57
|
+
const host = '127.0.0.1';
|
|
58
58
|
for (let i = 0; i < maxTries; i++) {
|
|
59
59
|
let unlock = () => { };
|
|
60
60
|
try {
|
|
@@ -64,11 +64,11 @@ const serveStatic = async (path, options) => {
|
|
|
64
64
|
desiredPort: (_a = options === null || options === void 0 ? void 0 : options.port) !== null && _a !== void 0 ? _a : undefined,
|
|
65
65
|
from: 3000,
|
|
66
66
|
to: 3100,
|
|
67
|
-
hostsToTry:
|
|
67
|
+
hostsToTry: [host],
|
|
68
68
|
})
|
|
69
69
|
.then(({ port, unlockPort }) => {
|
|
70
70
|
unlock = unlockPort;
|
|
71
|
-
server.listen({ port, host
|
|
71
|
+
server.listen({ port, host });
|
|
72
72
|
server.on('listening', () => {
|
|
73
73
|
resolve(port);
|
|
74
74
|
return unlock();
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.537",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5.1.1",
|
|
25
|
-
"remotion": "4.0.
|
|
26
|
-
"@remotion/streaming": "4.0.
|
|
25
|
+
"remotion": "4.0.537",
|
|
26
|
+
"@remotion/streaming": "4.0.537",
|
|
27
27
|
"source-map": "0.8.0",
|
|
28
28
|
"ws": "8.21.0",
|
|
29
|
-
"@remotion/licensing": "4.0.
|
|
29
|
+
"@remotion/licensing": "4.0.537"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": ">=16.8.0",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"react-dom": "19.2.3",
|
|
41
41
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
42
42
|
"@types/ws": "8.5.10",
|
|
43
|
-
"@remotion/example-videos": "4.0.
|
|
44
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
43
|
+
"@remotion/example-videos": "4.0.537",
|
|
44
|
+
"@remotion/eslint-config-internal": "4.0.537",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
46
|
"@types/node": "20.12.14",
|
|
47
47
|
"@types/pngjs": "6.0.5",
|
|
48
48
|
"pngjs": "7.0.0"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
52
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
55
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
56
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
57
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
51
|
+
"@remotion/compositor-darwin-arm64": "4.0.537",
|
|
52
|
+
"@remotion/compositor-darwin-x64": "4.0.537",
|
|
53
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.537",
|
|
54
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.537",
|
|
55
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.537",
|
|
56
|
+
"@remotion/compositor-linux-x64-musl": "4.0.537",
|
|
57
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.537"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"remotion",
|