@remotion/renderer 4.0.95 → 4.0.97
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/check-version-requirements.d.ts +3 -0
- package/dist/check-version-requirements.js +61 -0
- package/dist/client.d.ts +1 -1
- package/dist/compositor/get-executable-path.d.ts +4 -0
- package/dist/compositor/get-executable-path.js +3 -2
- package/dist/index.d.ts +5 -7
- package/dist/index.js +2 -2
- package/dist/options/gl.d.ts +1 -1
- package/dist/options/index.d.ts +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkNodeVersionAndWarnAboutRosetta = exports.gLibCErrorMessage = void 0;
|
|
4
|
+
const get_executable_path_1 = require("./compositor/get-executable-path");
|
|
5
|
+
const logger_1 = require("./logger");
|
|
6
|
+
const getRequiredLibCVersion = () => {
|
|
7
|
+
if (process.platform !== 'linux') {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
if ((0, get_executable_path_1.isMusl)({ indent: false, logLevel: 'warn' })) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
// Uses Amazon Linux 2 to compile
|
|
14
|
+
if (process.arch === 'arm64') {
|
|
15
|
+
return [2, 26];
|
|
16
|
+
}
|
|
17
|
+
// Uses Ubuntu 20.04 to compile
|
|
18
|
+
return [2, 31];
|
|
19
|
+
};
|
|
20
|
+
const required = getRequiredLibCVersion();
|
|
21
|
+
const gLibCErrorMessage = (libCString) => {
|
|
22
|
+
if (required === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const split = libCString.split('.');
|
|
26
|
+
if (split.length !== 2) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
if (split[0] === String(required[0]) && Number(split[1]) >= required[1]) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
if (Number(split[0]) > required[0]) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return `Rendering videos requires glibc ${required.join('.')} on your or higher on your OS. Your system has glibc ${libCString}.`;
|
|
36
|
+
};
|
|
37
|
+
exports.gLibCErrorMessage = gLibCErrorMessage;
|
|
38
|
+
const checkLibCRequirement = (logLevel, indent) => {
|
|
39
|
+
const { report } = process;
|
|
40
|
+
if (report) {
|
|
41
|
+
// @ts-expect-error no types
|
|
42
|
+
const { glibcVersionRuntime } = report.getReport().header;
|
|
43
|
+
if (!glibcVersionRuntime) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const error = (0, exports.gLibCErrorMessage)(glibcVersionRuntime);
|
|
47
|
+
if (error) {
|
|
48
|
+
logger_1.Log.warn({ logLevel, indent }, error);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const checkNodeVersionAndWarnAboutRosetta = (logLevel, indent) => {
|
|
53
|
+
const version = process.version.replace('v', '').split('.');
|
|
54
|
+
const majorVersion = Number(version[0]);
|
|
55
|
+
const requiredNodeVersion = 16;
|
|
56
|
+
if (majorVersion < 16) {
|
|
57
|
+
throw new Error(`Remotion requires at least Node ${requiredNodeVersion}. You currently have ${process.version}. Update your node version to ${requiredNodeVersion} to use Remotion.`);
|
|
58
|
+
}
|
|
59
|
+
checkLibCRequirement(logLevel, indent);
|
|
60
|
+
};
|
|
61
|
+
exports.checkNodeVersionAndWarnAboutRosetta = checkNodeVersionAndWarnAboutRosetta;
|
package/dist/client.d.ts
CHANGED
|
@@ -316,7 +316,7 @@ export declare const BrowserSafeApis: {
|
|
|
316
316
|
cliFlag: "gl";
|
|
317
317
|
docLink: string;
|
|
318
318
|
name: string;
|
|
319
|
-
type: "
|
|
319
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
320
320
|
ssrName: string;
|
|
321
321
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
322
322
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type { LogLevel } from '../log-level';
|
|
2
|
+
export declare function isMusl({ indent, logLevel, }: {
|
|
3
|
+
indent: boolean;
|
|
4
|
+
logLevel: LogLevel;
|
|
5
|
+
}): boolean;
|
|
2
6
|
export declare const getExecutablePath: (type: 'compositor' | 'ffmpeg' | 'ffprobe' | 'ffmpeg-cwd', indent: boolean, logLevel: LogLevel) => string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Adapted from @swc/core package
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getExecutablePath = void 0;
|
|
4
|
+
exports.getExecutablePath = exports.isMusl = void 0;
|
|
5
5
|
const logger_1 = require("../logger");
|
|
6
6
|
let warned = false;
|
|
7
|
-
function isMusl({ indent, logLevel }) {
|
|
7
|
+
function isMusl({ indent, logLevel, }) {
|
|
8
8
|
// @ts-expect-error bun no types
|
|
9
9
|
if (!process.report && typeof Bun !== 'undefined') {
|
|
10
10
|
if (!warned) {
|
|
@@ -17,6 +17,7 @@ function isMusl({ indent, logLevel }) {
|
|
|
17
17
|
const { glibcVersionRuntime } = process.report.getReport().header;
|
|
18
18
|
return !glibcVersionRuntime;
|
|
19
19
|
}
|
|
20
|
+
exports.isMusl = isMusl;
|
|
20
21
|
const getExecutablePath = (type, indent, logLevel) => {
|
|
21
22
|
if (type === 'compositor' && process.env.COMPOSITOR_PATH) {
|
|
22
23
|
return process.env.COMPOSITOR_PATH;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import execa from 'execa';
|
|
4
2
|
import { HeadlessBrowser } from './browser/Browser';
|
|
5
3
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -137,8 +135,8 @@ export declare const RenderInternals: {
|
|
|
137
135
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
138
136
|
DEFAULT_BROWSER: "chrome";
|
|
139
137
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
140
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
141
|
-
validateOpenGlRenderer: (option: "
|
|
138
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
139
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
142
140
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
143
141
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
144
142
|
validateJpegQuality: (q: number | undefined) => void;
|
|
@@ -329,8 +327,8 @@ export declare const RenderInternals: {
|
|
|
329
327
|
};
|
|
330
328
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
331
329
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
332
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
333
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
330
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
331
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
|
|
334
332
|
DEFAULT_JPEG_QUALITY: number;
|
|
335
333
|
chalk: {
|
|
336
334
|
enabled: () => boolean;
|
|
@@ -429,7 +427,7 @@ export declare const RenderInternals: {
|
|
|
429
427
|
frame: number;
|
|
430
428
|
serializedInputPropsWithCustomSchema: string;
|
|
431
429
|
serializedResolvedPropsWithCustomSchema: string;
|
|
432
|
-
imageFormat: "
|
|
430
|
+
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
433
431
|
jpegQuality: number;
|
|
434
432
|
puppeteerInstance: HeadlessBrowser | null;
|
|
435
433
|
envVariables: Record<string, string>;
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ const call_ffmpeg_1 = require("./call-ffmpeg");
|
|
|
37
37
|
const can_use_parallel_encoding_1 = require("./can-use-parallel-encoding");
|
|
38
38
|
const chalk_1 = require("./chalk");
|
|
39
39
|
const is_color_supported_1 = require("./chalk/is-color-supported");
|
|
40
|
-
const
|
|
40
|
+
const check_version_requirements_1 = require("./check-version-requirements");
|
|
41
41
|
const codec_1 = require("./codec");
|
|
42
42
|
const combine_videos_1 = require("./combine-videos");
|
|
43
43
|
const get_executable_path_1 = require("./compositor/get-executable-path");
|
|
@@ -200,4 +200,4 @@ exports.RenderInternals = {
|
|
|
200
200
|
makeDownloadMap: download_map_1.makeDownloadMap,
|
|
201
201
|
};
|
|
202
202
|
// Warn of potential performance issues with Apple Silicon (M1 chip under Rosetta)
|
|
203
|
-
(0,
|
|
203
|
+
(0, check_version_requirements_1.checkNodeVersionAndWarnAboutRosetta)('info', false);
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const glOption: {
|
|
|
3
3
|
cliFlag: "gl";
|
|
4
4
|
docLink: string;
|
|
5
5
|
name: string;
|
|
6
|
-
type: "
|
|
6
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
7
7
|
ssrName: string;
|
|
8
8
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
};
|
package/dist/options/index.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export declare const allOptions: {
|
|
|
115
115
|
cliFlag: "gl";
|
|
116
116
|
docLink: string;
|
|
117
117
|
name: string;
|
|
118
|
-
type: "
|
|
118
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
119
119
|
ssrName: string;
|
|
120
120
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
121
121
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.97",
|
|
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.97"
|
|
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-
|
|
45
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-
|
|
48
|
-
"@remotion/compositor-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.97",
|
|
44
|
+
"@remotion/compositor-darwin-x64": "4.0.97",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.97",
|
|
46
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.97",
|
|
47
|
+
"@remotion/compositor-linux-x64-musl": "4.0.97",
|
|
48
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.97",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.97"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|