@remotion/renderer 4.0.193 → 4.0.195
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 +3 -3
- package/dist/error-handling/handle-javascript-exception.d.ts +3 -1
- package/dist/error-handling/handle-javascript-exception.js +3 -1
- package/dist/error-handling/symbolicate-error.js +1 -0
- package/dist/error-handling/symbolicateable-error.d.ts +3 -1
- package/dist/error-handling/symbolicateable-error.js +2 -1
- package/dist/example-videos.d.ts +9 -0
- package/dist/example-videos.js +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/offthread-video-server.js +2 -0
- package/dist/options/gl.d.ts +3 -3
- package/dist/options/index.d.ts +3 -3
- package/dist/puppeteer-evaluate.js +1 -0
- package/dist/seek-to-frame.js +1 -0
- package/package.json +10 -10
package/dist/client.d.ts
CHANGED
|
@@ -467,19 +467,19 @@ export declare const BrowserSafeApis: {
|
|
|
467
467
|
cliFlag: "gl";
|
|
468
468
|
docLink: string;
|
|
469
469
|
name: string;
|
|
470
|
-
type: "
|
|
470
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
471
471
|
ssrName: string;
|
|
472
472
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
473
473
|
getValue: ({ commandLine }: {
|
|
474
474
|
commandLine: Record<string, unknown>;
|
|
475
475
|
}) => {
|
|
476
|
-
value: "
|
|
476
|
+
value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
477
477
|
source: string;
|
|
478
478
|
} | {
|
|
479
479
|
value: null;
|
|
480
480
|
source: string;
|
|
481
481
|
};
|
|
482
|
-
setConfig: (value: "
|
|
482
|
+
setConfig: (value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
|
|
483
483
|
};
|
|
484
484
|
enableLambdaInsights: {
|
|
485
485
|
name: string;
|
|
@@ -3,12 +3,14 @@ import type { SymbolicatedStackFrame } from '../symbolicate-stacktrace';
|
|
|
3
3
|
export declare class ErrorWithStackFrame extends Error {
|
|
4
4
|
symbolicatedStackFrames: SymbolicatedStackFrame[] | null;
|
|
5
5
|
frame: number | null;
|
|
6
|
+
chunk: number | null;
|
|
6
7
|
name: string;
|
|
7
8
|
delayRenderCall: SymbolicatedStackFrame[] | null;
|
|
8
|
-
constructor({ message, symbolicatedStackFrames, frame, name, delayRenderCall, stack, }: {
|
|
9
|
+
constructor({ message, symbolicatedStackFrames, frame, name, delayRenderCall, stack, chunk, }: {
|
|
9
10
|
message: string;
|
|
10
11
|
symbolicatedStackFrames: SymbolicatedStackFrame[] | null;
|
|
11
12
|
frame: number | null;
|
|
13
|
+
chunk: number | null;
|
|
12
14
|
name: string;
|
|
13
15
|
delayRenderCall: SymbolicatedStackFrame[] | null;
|
|
14
16
|
stack: string | undefined;
|
|
@@ -4,10 +4,11 @@ exports.handleJavascriptException = exports.ErrorWithStackFrame = void 0;
|
|
|
4
4
|
const no_react_1 = require("remotion/no-react");
|
|
5
5
|
const symbolicateable_error_1 = require("./symbolicateable-error");
|
|
6
6
|
class ErrorWithStackFrame extends Error {
|
|
7
|
-
constructor({ message, symbolicatedStackFrames, frame, name, delayRenderCall, stack, }) {
|
|
7
|
+
constructor({ message, symbolicatedStackFrames, frame, name, delayRenderCall, stack, chunk, }) {
|
|
8
8
|
super(message);
|
|
9
9
|
this.symbolicatedStackFrames = symbolicatedStackFrames;
|
|
10
10
|
this.frame = frame;
|
|
11
|
+
this.chunk = chunk;
|
|
11
12
|
this.name = name;
|
|
12
13
|
this.delayRenderCall = delayRenderCall;
|
|
13
14
|
// If error symbolication did not yield any stack frames, we print the original stack
|
|
@@ -72,6 +73,7 @@ const handleJavascriptException = ({ page, onError, frame, }) => {
|
|
|
72
73
|
frame,
|
|
73
74
|
name: errorType,
|
|
74
75
|
stack: (_c = exception.exceptionDetails.exception) === null || _c === void 0 ? void 0 : _c.description,
|
|
76
|
+
chunk: null,
|
|
75
77
|
});
|
|
76
78
|
onError(symbolicatedErr);
|
|
77
79
|
};
|
|
@@ -6,11 +6,13 @@ export declare class SymbolicateableError extends Error {
|
|
|
6
6
|
stackFrame: UnsymbolicatedStackFrame[] | null;
|
|
7
7
|
delayRenderCall: UnsymbolicatedStackFrame[] | null;
|
|
8
8
|
frame: number | null;
|
|
9
|
-
|
|
9
|
+
chunk: number | null;
|
|
10
|
+
constructor({ message, stack, stackFrame, frame, name, chunk, }: {
|
|
10
11
|
message: string;
|
|
11
12
|
stack: string | undefined;
|
|
12
13
|
frame: number | null;
|
|
13
14
|
name: string;
|
|
14
15
|
stackFrame: UnsymbolicatedStackFrame[] | null;
|
|
16
|
+
chunk: number | null;
|
|
15
17
|
});
|
|
16
18
|
}
|
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SymbolicateableError = void 0;
|
|
7
7
|
const delay_render_embedded_stack_1 = require("../delay-render-embedded-stack");
|
|
8
8
|
class SymbolicateableError extends Error {
|
|
9
|
-
constructor({ message, stack, stackFrame, frame, name, }) {
|
|
9
|
+
constructor({ message, stack, stackFrame, frame, name, chunk, }) {
|
|
10
10
|
super(message);
|
|
11
11
|
this.stack = stack;
|
|
12
12
|
this.stackFrame = stackFrame;
|
|
13
13
|
this.frame = frame;
|
|
14
|
+
this.chunk = chunk;
|
|
14
15
|
this.name = name;
|
|
15
16
|
this.delayRenderCall = stack ? (0, delay_render_embedded_stack_1.parseDelayRenderEmbeddedStack)(stack) : null;
|
|
16
17
|
}
|
package/dist/example-videos.d.ts
CHANGED
|
@@ -20,4 +20,13 @@ export declare const exampleVideos: {
|
|
|
20
20
|
iphonehevc: string;
|
|
21
21
|
matroskaPcm16: string;
|
|
22
22
|
mp4withmp3: string;
|
|
23
|
+
av1bbb: string;
|
|
24
|
+
av1mp4: string;
|
|
25
|
+
av1mp4WithColr: string;
|
|
26
|
+
vp8Vorbis: string;
|
|
27
|
+
vp9: string;
|
|
28
|
+
stretchedVp8: string;
|
|
29
|
+
matroskaMp3: string;
|
|
30
|
+
matroskaH265Aac: string;
|
|
31
|
+
opusWebm: string;
|
|
23
32
|
};
|
package/dist/example-videos.js
CHANGED
|
@@ -29,4 +29,13 @@ exports.exampleVideos = {
|
|
|
29
29
|
iphonehevc: node_path_1.default.join(examplePackage, 'public', 'iphone-hevc.mov'),
|
|
30
30
|
matroskaPcm16: node_path_1.default.join(examplePackage, 'public', 'matroska-pcm16.mkv'),
|
|
31
31
|
mp4withmp3: node_path_1.default.join(examplePackage, 'public', 'mp4-mp3.mp4'),
|
|
32
|
+
av1bbb: node_path_1.default.join(examplePackage, 'public', 'av1-bbb.webm'),
|
|
33
|
+
av1mp4: node_path_1.default.join(examplePackage, 'public', 'av1-bbb.mp4'),
|
|
34
|
+
av1mp4WithColr: node_path_1.default.join(examplePackage, 'public', 'av1.mp4'),
|
|
35
|
+
vp8Vorbis: node_path_1.default.join(examplePackage, 'public', 'vp8-vorbis.webm'),
|
|
36
|
+
vp9: node_path_1.default.join(examplePackage, 'public', 'vp9.webm'),
|
|
37
|
+
stretchedVp8: node_path_1.default.join(examplePackage, 'public', 'stretched-vp8.webm'),
|
|
38
|
+
matroskaMp3: node_path_1.default.join(examplePackage, 'public', 'matroska-mp3.mkv'),
|
|
39
|
+
matroskaH265Aac: node_path_1.default.join(examplePackage, 'public', 'matroska-h265-aac.mkv'),
|
|
40
|
+
opusWebm: node_path_1.default.join(examplePackage, 'public', 'opus.webm'),
|
|
32
41
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -980,5 +980,14 @@ export declare const RenderInternals: {
|
|
|
980
980
|
iphonehevc: string;
|
|
981
981
|
matroskaPcm16: string;
|
|
982
982
|
mp4withmp3: string;
|
|
983
|
+
av1bbb: string;
|
|
984
|
+
av1mp4: string;
|
|
985
|
+
av1mp4WithColr: string;
|
|
986
|
+
vp8Vorbis: string;
|
|
987
|
+
vp9: string;
|
|
988
|
+
stretchedVp8: string;
|
|
989
|
+
matroskaMp3: string;
|
|
990
|
+
matroskaH265Aac: string;
|
|
991
|
+
opusWebm: string;
|
|
983
992
|
};
|
|
984
993
|
};
|
|
@@ -143,9 +143,11 @@ const startOffthreadVideoServer = ({ downloadMap, concurrency, logLevel, indent,
|
|
|
143
143
|
const isBmp = firstByte === 0x42 && secondByte === 0x4d;
|
|
144
144
|
if (isPng) {
|
|
145
145
|
response.setHeader('content-type', `image/png`);
|
|
146
|
+
response.setHeader('content-length', readable.byteLength);
|
|
146
147
|
}
|
|
147
148
|
else if (isBmp) {
|
|
148
149
|
response.setHeader('content-type', `image/bmp`);
|
|
150
|
+
response.setHeader('content-length', readable.byteLength);
|
|
149
151
|
}
|
|
150
152
|
else {
|
|
151
153
|
reject(new Error(`Unknown file type: ${firstByte} ${secondByte} ${thirdByte}`));
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
2
2
|
export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
|
|
3
3
|
export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
|
|
4
|
-
export declare const getChromiumOpenGlRenderer: () => "
|
|
4
|
+
export declare const getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
5
5
|
export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
|
|
6
6
|
export declare const glOption: {
|
|
7
7
|
cliFlag: "gl";
|
|
8
8
|
docLink: string;
|
|
9
9
|
name: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
11
11
|
ssrName: string;
|
|
12
12
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
getValue: ({ commandLine }: {
|
|
14
14
|
commandLine: Record<string, unknown>;
|
|
15
15
|
}) => {
|
|
16
|
-
value: "
|
|
16
|
+
value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
17
17
|
source: string;
|
|
18
18
|
} | {
|
|
19
19
|
value: null;
|
package/dist/options/index.d.ts
CHANGED
|
@@ -245,19 +245,19 @@ export declare const allOptions: {
|
|
|
245
245
|
cliFlag: "gl";
|
|
246
246
|
docLink: string;
|
|
247
247
|
name: string;
|
|
248
|
-
type: "
|
|
248
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
249
249
|
ssrName: string;
|
|
250
250
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
251
251
|
getValue: ({ commandLine }: {
|
|
252
252
|
commandLine: Record<string, unknown>;
|
|
253
253
|
}) => {
|
|
254
|
-
value: "
|
|
254
|
+
value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
255
255
|
source: string;
|
|
256
256
|
} | {
|
|
257
257
|
value: null;
|
|
258
258
|
source: string;
|
|
259
259
|
};
|
|
260
|
-
setConfig: (value: "
|
|
260
|
+
setConfig: (value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
|
|
261
261
|
};
|
|
262
262
|
enableLambdaInsights: {
|
|
263
263
|
name: string;
|
|
@@ -107,6 +107,7 @@ async function puppeteerEvaluateWithCatch({ page, pageFunction, frame, args, })
|
|
|
107
107
|
message: (_d = (_c = exceptionDetails.exception) === null || _c === void 0 ? void 0 : _c.description) === null || _d === void 0 ? void 0 : _d.split('\n')[0],
|
|
108
108
|
frame,
|
|
109
109
|
stackFrame: (0, parse_browser_error_stack_1.parseStack)(((_e = exceptionDetails.exception) === null || _e === void 0 ? void 0 : _e.description).split('\n')),
|
|
110
|
+
chunk: null,
|
|
110
111
|
});
|
|
111
112
|
page.close();
|
|
112
113
|
throw err;
|
package/dist/seek-to-frame.js
CHANGED
|
@@ -29,6 +29,7 @@ const waitForReady = ({ page, timeoutInMilliseconds, frame, indent, logLevel, })
|
|
|
29
29
|
name: 'CancelledError',
|
|
30
30
|
message: val.split('\n')[0],
|
|
31
31
|
stackFrame: (0, parse_browser_error_stack_1.parseStack)(val.split('\n')),
|
|
32
|
+
chunk: null,
|
|
32
33
|
}));
|
|
33
34
|
})
|
|
34
35
|
.catch((err) => {
|
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.195",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"
|
|
21
|
+
"@remotion/streaming": "4.0.195",
|
|
22
|
+
"remotion": "4.0.195"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@types/ws": "8.5.10"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
38
|
-
"@remotion/compositor-
|
|
39
|
-
"@remotion/compositor-linux-x64-
|
|
40
|
-
"@remotion/compositor-linux-arm64-
|
|
41
|
-
"@remotion/compositor-
|
|
42
|
-
"@remotion/compositor-linux-arm64-
|
|
43
|
-
"@remotion/compositor-
|
|
37
|
+
"@remotion/compositor-darwin-arm64": "4.0.195",
|
|
38
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.195",
|
|
39
|
+
"@remotion/compositor-linux-x64-musl": "4.0.195",
|
|
40
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.195",
|
|
41
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.195",
|
|
42
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.195",
|
|
43
|
+
"@remotion/compositor-darwin-x64": "4.0.195"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"remotion",
|