@remotion/renderer 4.0.451 → 4.0.453
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/types.js +1 -1
- package/dist/browser/get-chrome-download-url.d.ts +1 -1
- package/dist/browser/get-chrome-download-url.js +6 -6
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/index.mjs +14 -10
- package/dist/esm/pure.mjs +2 -2
- package/dist/get-duration-from-frame-range.js +2 -2
- package/dist/open-browser.js +5 -1
- package/dist/options/latency-hint.js +1 -1
- package/package.json +13 -13
- package/dist/options/browser-download-dir.d.ts +0 -16
- package/dist/options/browser-download-dir.js +0 -42
- package/dist/sample-rate.d.ts +0 -1
- package/dist/sample-rate.js +0 -4
package/dist/assets/types.js
CHANGED
|
@@ -7,7 +7,7 @@ const uncompressMediaAsset = (allRenderAssets, assetToUncompress) => {
|
|
|
7
7
|
return assetToUncompress;
|
|
8
8
|
}
|
|
9
9
|
const [, id, frame] = isCompressed;
|
|
10
|
-
const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame);
|
|
10
|
+
const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame && !a.src.startsWith('same-as'));
|
|
11
11
|
if (!assetToFill) {
|
|
12
12
|
console.log('List of assets:');
|
|
13
13
|
console.log(allRenderAssets);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChromeMode } from '../options/chrome-mode';
|
|
2
|
-
export declare const TESTED_VERSION = "
|
|
2
|
+
export declare const TESTED_VERSION = "149.0.7790.0";
|
|
3
3
|
export type Platform = 'linux64' | 'linux-arm64' | 'mac-x64' | 'mac-arm64' | 'win64';
|
|
4
4
|
export declare const isAmazonLinux2023: () => boolean;
|
|
5
5
|
export declare const canUseRemotionMediaBinaries: () => boolean;
|
|
@@ -38,10 +38,10 @@ exports.getChromeDownloadUrl = getChromeDownloadUrl;
|
|
|
38
38
|
const fs = __importStar(require("node:fs"));
|
|
39
39
|
const os = __importStar(require("node:os"));
|
|
40
40
|
const logger_1 = require("../logger");
|
|
41
|
-
exports.TESTED_VERSION = '
|
|
41
|
+
exports.TESTED_VERSION = '149.0.7790.0';
|
|
42
42
|
// https://github.com/microsoft/playwright/blame/e76ca6cba40c26bf22c19cf37398d2b9da9ed465/packages/playwright-core/browsers.json
|
|
43
43
|
// packages/playwright-core/browsers.json
|
|
44
|
-
const PLAYWRIGHT_VERSION = '
|
|
44
|
+
const PLAYWRIGHT_VERSION = '1421'; // 149.0.7790.0
|
|
45
45
|
const isAmazonLinux2023 = () => {
|
|
46
46
|
if (os.platform() !== 'linux') {
|
|
47
47
|
return false;
|
|
@@ -109,7 +109,7 @@ function getChromeDownloadUrl({ platform, version, chromeMode, }) {
|
|
|
109
109
|
// Amazon Linux 2023 on arm64 needs a special build.
|
|
110
110
|
// This binary is compatible with older glibc (no 2.35 requirement).
|
|
111
111
|
if ((0, exports.isAmazonLinux2023)() && chromeMode === 'headless-shell' && !version) {
|
|
112
|
-
return 'https://remotion.media/chromium-headless-shell-amazon-linux-arm64-
|
|
112
|
+
return 'https://remotion.media/chromium-headless-shell-amazon-linux-arm64-149.0.7790.0.zip?clear';
|
|
113
113
|
}
|
|
114
114
|
if (chromeMode === 'chrome-for-testing') {
|
|
115
115
|
return `https://playwright.azureedge.net/builds/chromium/${version !== null && version !== void 0 ? version : PLAYWRIGHT_VERSION}/chromium-linux-arm64.zip`;
|
|
@@ -119,7 +119,7 @@ function getChromeDownloadUrl({ platform, version, chromeMode, }) {
|
|
|
119
119
|
}
|
|
120
120
|
// Regular arm64 binary requires glibc 2.35+
|
|
121
121
|
if ((0, exports.canUseRemotionMediaBinaries)()) {
|
|
122
|
-
return `https://remotion.media/chromium-headless-shell-linux-arm64-${exports.TESTED_VERSION}.zip?
|
|
122
|
+
return `https://remotion.media/chromium-headless-shell-linux-arm64-${exports.TESTED_VERSION}.zip?clear`;
|
|
123
123
|
}
|
|
124
124
|
// Fall back to Playwright for older glibc (non-Amazon Linux systems)
|
|
125
125
|
return `https://playwright.azureedge.net/builds/chromium/${PLAYWRIGHT_VERSION}/chromium-headless-shell-linux-arm64.zip`;
|
|
@@ -128,11 +128,11 @@ function getChromeDownloadUrl({ platform, version, chromeMode, }) {
|
|
|
128
128
|
// Amazon Linux 2023 needs a special build.
|
|
129
129
|
// This binary is compatible with older glibc (no 2.35 requirement).
|
|
130
130
|
if ((0, exports.isAmazonLinux2023)() && platform === 'linux64' && !version) {
|
|
131
|
-
return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-
|
|
131
|
+
return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0.zip?clear`;
|
|
132
132
|
}
|
|
133
133
|
if (platform === 'linux64' && version === null) {
|
|
134
134
|
if ((0, exports.canUseRemotionMediaBinaries)()) {
|
|
135
|
-
return `https://remotion.media/chromium-headless-shell-linux-x64-${exports.TESTED_VERSION}.zip?
|
|
135
|
+
return `https://remotion.media/chromium-headless-shell-linux-x64-${exports.TESTED_VERSION}.zip?clear`;
|
|
136
136
|
}
|
|
137
137
|
// Fall back to Google's CDN for older glibc
|
|
138
138
|
return `https://storage.googleapis.com/chrome-for-testing-public/${exports.TESTED_VERSION}/${platform}/chrome-headless-shell-${platform}.zip`;
|
package/dist/esm/client.mjs
CHANGED
|
@@ -2739,7 +2739,7 @@ var audioLatencyHintOption = {
|
|
|
2739
2739
|
}),
|
|
2740
2740
|
ssrName: "audioLatencyHint",
|
|
2741
2741
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
2742
|
-
type: "
|
|
2742
|
+
type: "playback",
|
|
2743
2743
|
getValue: ({ commandLine }) => {
|
|
2744
2744
|
const val = commandLine[cliFlag47];
|
|
2745
2745
|
if (typeof val !== "undefined") {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4795,8 +4795,8 @@ import extractZip from "extract-zip";
|
|
|
4795
4795
|
// src/browser/get-chrome-download-url.ts
|
|
4796
4796
|
import * as fs5 from "node:fs";
|
|
4797
4797
|
import * as os3 from "node:os";
|
|
4798
|
-
var TESTED_VERSION = "
|
|
4799
|
-
var PLAYWRIGHT_VERSION = "
|
|
4798
|
+
var TESTED_VERSION = "149.0.7790.0";
|
|
4799
|
+
var PLAYWRIGHT_VERSION = "1421";
|
|
4800
4800
|
var isAmazonLinux2023 = () => {
|
|
4801
4801
|
if (os3.platform() !== "linux") {
|
|
4802
4802
|
return false;
|
|
@@ -4859,7 +4859,7 @@ function getChromeDownloadUrl({
|
|
|
4859
4859
|
}) {
|
|
4860
4860
|
if (platform2 === "linux-arm64") {
|
|
4861
4861
|
if (isAmazonLinux2023() && chromeMode === "headless-shell" && !version) {
|
|
4862
|
-
return "https://remotion.media/chromium-headless-shell-amazon-linux-arm64-
|
|
4862
|
+
return "https://remotion.media/chromium-headless-shell-amazon-linux-arm64-149.0.7790.0.zip?clear";
|
|
4863
4863
|
}
|
|
4864
4864
|
if (chromeMode === "chrome-for-testing") {
|
|
4865
4865
|
return `https://playwright.azureedge.net/builds/chromium/${version ?? PLAYWRIGHT_VERSION}/chromium-linux-arm64.zip`;
|
|
@@ -4868,17 +4868,17 @@ function getChromeDownloadUrl({
|
|
|
4868
4868
|
return `https://playwright.azureedge.net/builds/chromium/${version}/chromium-headless-shell-linux-arm64.zip`;
|
|
4869
4869
|
}
|
|
4870
4870
|
if (canUseRemotionMediaBinaries()) {
|
|
4871
|
-
return `https://remotion.media/chromium-headless-shell-linux-arm64-${TESTED_VERSION}.zip?
|
|
4871
|
+
return `https://remotion.media/chromium-headless-shell-linux-arm64-${TESTED_VERSION}.zip?clear`;
|
|
4872
4872
|
}
|
|
4873
4873
|
return `https://playwright.azureedge.net/builds/chromium/${PLAYWRIGHT_VERSION}/chromium-headless-shell-linux-arm64.zip`;
|
|
4874
4874
|
}
|
|
4875
4875
|
if (chromeMode === "headless-shell") {
|
|
4876
4876
|
if (isAmazonLinux2023() && platform2 === "linux64" && !version) {
|
|
4877
|
-
return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-
|
|
4877
|
+
return `https://remotion.media/chromium-headless-shell-amazon-linux-x64-149.0.7790.0.zip?clear`;
|
|
4878
4878
|
}
|
|
4879
4879
|
if (platform2 === "linux64" && version === null) {
|
|
4880
4880
|
if (canUseRemotionMediaBinaries()) {
|
|
4881
|
-
return `https://remotion.media/chromium-headless-shell-linux-x64-${TESTED_VERSION}.zip?
|
|
4881
|
+
return `https://remotion.media/chromium-headless-shell-linux-x64-${TESTED_VERSION}.zip?clear`;
|
|
4882
4882
|
}
|
|
4883
4883
|
return `https://storage.googleapis.com/chrome-for-testing-public/${TESTED_VERSION}/${platform2}/chrome-headless-shell-${platform2}.zip`;
|
|
4884
4884
|
}
|
|
@@ -5403,7 +5403,11 @@ var validateOpenGlRenderer = (option) => {
|
|
|
5403
5403
|
// src/open-browser.ts
|
|
5404
5404
|
var featuresToEnable = (option) => {
|
|
5405
5405
|
const renderer = option ?? DEFAULT_OPENGL_RENDERER;
|
|
5406
|
-
const enableAlways = [
|
|
5406
|
+
const enableAlways = [
|
|
5407
|
+
"NetworkService",
|
|
5408
|
+
"NetworkServiceInProcess",
|
|
5409
|
+
"CanvasDrawElement"
|
|
5410
|
+
];
|
|
5407
5411
|
if (renderer === "vulkan") {
|
|
5408
5412
|
return [...enableAlways, "Vulkan", "UseSkiaRenderer"];
|
|
5409
5413
|
}
|
|
@@ -17240,8 +17244,8 @@ var getFramesToRender = (frameRange, everyNthFrame) => {
|
|
|
17240
17244
|
}
|
|
17241
17245
|
return new Array(frameRange[1] - frameRange[0] + 1).fill(true).map((_, index) => {
|
|
17242
17246
|
return index + frameRange[0];
|
|
17243
|
-
}).filter((
|
|
17244
|
-
return
|
|
17247
|
+
}).filter((frame) => {
|
|
17248
|
+
return (frame - frameRange[0]) % everyNthFrame === 0;
|
|
17245
17249
|
});
|
|
17246
17250
|
};
|
|
17247
17251
|
|
|
@@ -20320,7 +20324,7 @@ var uncompressMediaAsset = (allRenderAssets, assetToUncompress) => {
|
|
|
20320
20324
|
return assetToUncompress;
|
|
20321
20325
|
}
|
|
20322
20326
|
const [, id, frame] = isCompressed;
|
|
20323
|
-
const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame);
|
|
20327
|
+
const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame && !a.src.startsWith("same-as"));
|
|
20324
20328
|
if (!assetToFill) {
|
|
20325
20329
|
console.log("List of assets:");
|
|
20326
20330
|
console.log(allRenderAssets);
|
package/dist/esm/pure.mjs
CHANGED
|
@@ -65,8 +65,8 @@ var getFramesToRender = (frameRange, everyNthFrame) => {
|
|
|
65
65
|
}
|
|
66
66
|
return new Array(frameRange[1] - frameRange[0] + 1).fill(true).map((_, index) => {
|
|
67
67
|
return index + frameRange[0];
|
|
68
|
-
}).filter((
|
|
69
|
-
return
|
|
68
|
+
}).filter((frame) => {
|
|
69
|
+
return (frame - frameRange[0]) % everyNthFrame === 0;
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
|
|
@@ -10,8 +10,8 @@ const getFramesToRender = (frameRange, everyNthFrame) => {
|
|
|
10
10
|
.map((_, index) => {
|
|
11
11
|
return index + frameRange[0];
|
|
12
12
|
})
|
|
13
|
-
.filter((
|
|
14
|
-
return
|
|
13
|
+
.filter((frame) => {
|
|
14
|
+
return (frame - frameRange[0]) % everyNthFrame === 0;
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
exports.getFramesToRender = getFramesToRender;
|
package/dist/open-browser.js
CHANGED
|
@@ -16,7 +16,11 @@ const logger_1 = require("./logger");
|
|
|
16
16
|
const gl_1 = require("./options/gl");
|
|
17
17
|
const featuresToEnable = (option) => {
|
|
18
18
|
const renderer = option !== null && option !== void 0 ? option : gl_1.DEFAULT_OPENGL_RENDERER;
|
|
19
|
-
const enableAlways = [
|
|
19
|
+
const enableAlways = [
|
|
20
|
+
'NetworkService',
|
|
21
|
+
'NetworkServiceInProcess',
|
|
22
|
+
'CanvasDrawElement',
|
|
23
|
+
];
|
|
20
24
|
if (renderer === 'vulkan') {
|
|
21
25
|
return [...enableAlways, 'Vulkan', 'UseSkiaRenderer'];
|
|
22
26
|
}
|
|
@@ -19,7 +19,7 @@ exports.audioLatencyHintOption = {
|
|
|
19
19
|
] })),
|
|
20
20
|
ssrName: 'audioLatencyHint',
|
|
21
21
|
docLink: 'https://www.remotion.dev/docs/renderer/render-media',
|
|
22
|
-
type: '
|
|
22
|
+
type: 'playback',
|
|
23
23
|
getValue: ({ commandLine }) => {
|
|
24
24
|
const val = commandLine[cliFlag];
|
|
25
25
|
if (typeof val !== 'undefined') {
|
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.453",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"execa": "5.1.1",
|
|
26
26
|
"extract-zip": "2.0.1",
|
|
27
|
-
"remotion": "4.0.
|
|
28
|
-
"@remotion/streaming": "4.0.
|
|
27
|
+
"remotion": "4.0.453",
|
|
28
|
+
"@remotion/streaming": "4.0.453",
|
|
29
29
|
"source-map": "^0.8.0-beta.0",
|
|
30
30
|
"ws": "8.17.1",
|
|
31
|
-
"@remotion/licensing": "4.0.
|
|
31
|
+
"@remotion/licensing": "4.0.453"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"react-dom": "19.2.3",
|
|
43
43
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
44
44
|
"@types/ws": "8.5.10",
|
|
45
|
-
"@remotion/example-videos": "4.0.
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/example-videos": "4.0.453",
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.453",
|
|
47
47
|
"eslint": "9.19.0",
|
|
48
48
|
"@types/node": "20.12.14"
|
|
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.453",
|
|
52
|
+
"@remotion/compositor-darwin-x64": "4.0.453",
|
|
53
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.453",
|
|
54
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.453",
|
|
55
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.453",
|
|
56
|
+
"@remotion/compositor-linux-x64-musl": "4.0.453",
|
|
57
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.453"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"remotion",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const browserDownloadDirOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "browser-download-dir";
|
|
4
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
ssrName: "browserDownloadDir";
|
|
6
|
-
docLink: string;
|
|
7
|
-
type: string | null;
|
|
8
|
-
getValue: ({ commandLine }: {
|
|
9
|
-
commandLine: Record<string, unknown>;
|
|
10
|
-
}) => {
|
|
11
|
-
source: string;
|
|
12
|
-
value: string | null;
|
|
13
|
-
};
|
|
14
|
-
setConfig: (value: string | null) => void;
|
|
15
|
-
id: "browser-download-dir";
|
|
16
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.browserDownloadDirOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'browser-download-dir';
|
|
6
|
-
let currentDirectory = null;
|
|
7
|
-
exports.browserDownloadDirOption = {
|
|
8
|
-
name: 'Browser Download Directory',
|
|
9
|
-
cliFlag,
|
|
10
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the directory where the browser should be downloaded to when calling ",
|
|
11
|
-
jsx_runtime_1.jsx("code", { children: "npx remotion browser ensure" }),
|
|
12
|
-
". By default, Remotion downloads the browser into ",
|
|
13
|
-
jsx_runtime_1.jsx("code", { children: "node_modules/.remotion" }),
|
|
14
|
-
" inside the nearest project root. Use this option to override the default download location. Pass ",
|
|
15
|
-
jsx_runtime_1.jsx("code", { children: "null" }),
|
|
16
|
-
" to use the default location."] })),
|
|
17
|
-
ssrName: 'browserDownloadDir',
|
|
18
|
-
docLink: 'https://www.remotion.dev/docs/config#setbrowserdownloaddir',
|
|
19
|
-
type: '',
|
|
20
|
-
getValue: ({ commandLine }) => {
|
|
21
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
22
|
-
return {
|
|
23
|
-
source: 'cli',
|
|
24
|
-
value: commandLine[cliFlag],
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
if (currentDirectory !== null) {
|
|
28
|
-
return {
|
|
29
|
-
source: 'config',
|
|
30
|
-
value: currentDirectory,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
source: 'default',
|
|
35
|
-
value: null,
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
setConfig: (value) => {
|
|
39
|
-
currentDirectory = value;
|
|
40
|
-
},
|
|
41
|
-
id: cliFlag,
|
|
42
|
-
};
|
package/dist/sample-rate.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_SAMPLE_RATE = 48000;
|
package/dist/sample-rate.js
DELETED