@remotion/renderer 4.0.71 → 4.0.73
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/calculate-asset-positions.d.ts +1 -1
- package/dist/assets/convert-assets-to-file-urls.d.ts +1 -1
- package/dist/assets/download-and-map-assets-to-file.d.ts +1 -1
- package/dist/assets/download-and-map-assets-to-file.js +2 -2
- package/dist/assets/download-map.d.ts +1 -1
- package/dist/assets/types.d.ts +1 -1
- package/dist/browser/BrowserPage.d.ts +0 -15
- package/dist/browser/BrowserPage.js +16 -16
- package/dist/client.d.ts +37 -37
- package/dist/compress-assets.d.ts +1 -1
- package/dist/delay-render-embedded-stack.js +3 -3
- package/dist/error-handling/handle-javascript-exception.js +2 -2
- package/dist/get-bundle-url-from-serve-url.js +3 -3
- package/dist/get-compositions.d.ts +1 -1
- package/dist/get-compositions.js +6 -4
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +28 -27
- package/dist/offthread-video-server.js +5 -2
- package/dist/open-browser.js +4 -2
- package/dist/options/color-space.d.ts +1 -1
- package/dist/options/index.d.ts +1 -1
- package/dist/prepare-server.js +2 -2
- package/dist/print-useful-error-message.js +32 -24
- package/dist/provide-screenshot.d.ts +3 -2
- package/dist/provide-screenshot.js +2 -1
- package/dist/puppeteer-evaluate.d.ts +2 -1
- package/dist/puppeteer-evaluate.js +3 -2
- package/dist/puppeteer-screenshot.d.ts +1 -1
- package/dist/render-frames.d.ts +1 -1
- package/dist/render-frames.js +5 -3
- package/dist/render-media.d.ts +1 -1
- package/dist/render-media.js +4 -3
- package/dist/render-still.d.ts +1 -1
- package/dist/render-still.js +6 -4
- package/dist/screenshot-dom-element.d.ts +3 -2
- package/dist/screenshot-dom-element.js +3 -1
- package/dist/screenshot-task.d.ts +1 -1
- package/dist/seek-to-frame.js +3 -0
- package/dist/select-composition.d.ts +1 -1
- package/dist/select-composition.js +6 -4
- package/dist/set-props-and-env.js +4 -0
- package/dist/stitch-frames-to-video.js +2 -2
- package/dist/take-frame-and-compose.d.ts +3 -2
- package/dist/take-frame-and-compose.js +4 -1
- package/dist/test-gpu.d.ts +2 -1
- package/dist/test-gpu.js +2 -1
- package/dist/validate-output-filename.d.ts +1 -1
- package/dist/validate.d.ts +4 -4
- package/dist/validate.js +4 -4
- package/package.json +9 -9
|
@@ -10,7 +10,7 @@ const compose_1 = require("./compositor/compose");
|
|
|
10
10
|
const provide_screenshot_1 = require("./provide-screenshot");
|
|
11
11
|
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
12
12
|
const truthy_1 = require("./truthy");
|
|
13
|
-
const takeFrameAndCompose = async ({ freePage, imageFormat, jpegQuality, frame, width, height, output, scale, downloadMap, wantsBuffer, compositor, }) => {
|
|
13
|
+
const takeFrameAndCompose = async ({ freePage, imageFormat, jpegQuality, frame, width, height, output, scale, downloadMap, wantsBuffer, compositor, timeoutInMilliseconds, }) => {
|
|
14
14
|
var _a;
|
|
15
15
|
const [{ value: clipRegion }, { value: collectedAssets }] = await Promise.all([
|
|
16
16
|
(0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
@@ -23,6 +23,7 @@ const takeFrameAndCompose = async ({ freePage, imageFormat, jpegQuality, frame,
|
|
|
23
23
|
args: [],
|
|
24
24
|
frame,
|
|
25
25
|
page: freePage,
|
|
26
|
+
timeoutInMilliseconds,
|
|
26
27
|
}),
|
|
27
28
|
(0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
28
29
|
pageFunction: () => {
|
|
@@ -31,6 +32,7 @@ const takeFrameAndCompose = async ({ freePage, imageFormat, jpegQuality, frame,
|
|
|
31
32
|
args: [],
|
|
32
33
|
frame,
|
|
33
34
|
page: freePage,
|
|
35
|
+
timeoutInMilliseconds,
|
|
34
36
|
}),
|
|
35
37
|
]);
|
|
36
38
|
if (imageFormat === 'none') {
|
|
@@ -56,6 +58,7 @@ const takeFrameAndCompose = async ({ freePage, imageFormat, jpegQuality, frame,
|
|
|
56
58
|
height,
|
|
57
59
|
width,
|
|
58
60
|
clipRegion,
|
|
61
|
+
timeoutInMilliseconds,
|
|
59
62
|
});
|
|
60
63
|
if (shouldMakeBuffer) {
|
|
61
64
|
return { buffer: buf, collectedAssets };
|
package/dist/test-gpu.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ type Item = {
|
|
|
5
5
|
feature: string;
|
|
6
6
|
status: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const getChromiumGpuInformation: ({ browserExecutable, indent, logLevel, chromiumOptions, }: {
|
|
8
|
+
export declare const getChromiumGpuInformation: ({ browserExecutable, indent, logLevel, chromiumOptions, timeoutInMilliseconds, }: {
|
|
9
9
|
browserExecutable: BrowserExecutable;
|
|
10
10
|
indent: boolean;
|
|
11
11
|
logLevel: LogLevel;
|
|
12
12
|
chromiumOptions: ChromiumOptions;
|
|
13
|
+
timeoutInMilliseconds: number;
|
|
13
14
|
}) => Promise<Item[]>;
|
|
14
15
|
export {};
|
package/dist/test-gpu.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getChromiumGpuInformation = void 0;
|
|
4
4
|
const get_browser_instance_1 = require("./get-browser-instance");
|
|
5
5
|
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
6
|
-
const getChromiumGpuInformation = async ({ browserExecutable, indent, logLevel, chromiumOptions, }) => {
|
|
6
|
+
const getChromiumGpuInformation = async ({ browserExecutable, indent, logLevel, chromiumOptions, timeoutInMilliseconds, }) => {
|
|
7
7
|
const { page, cleanup } = await (0, get_browser_instance_1.getPageAndCleanupFn)({
|
|
8
8
|
passedInInstance: undefined,
|
|
9
9
|
browserExecutable,
|
|
@@ -32,6 +32,7 @@ const getChromiumGpuInformation = async ({ browserExecutable, indent, logLevel,
|
|
|
32
32
|
frame: null,
|
|
33
33
|
args: [],
|
|
34
34
|
page,
|
|
35
|
+
timeoutInMilliseconds,
|
|
35
36
|
});
|
|
36
37
|
cleanup();
|
|
37
38
|
return value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AudioCodec } from './audio-codec';
|
|
2
|
-
export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
2
|
+
export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
3
3
|
codec: T;
|
|
4
4
|
audioCodec: AudioCodec | null;
|
|
5
5
|
extension: string;
|
package/dist/validate.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const validateFps: typeof
|
|
3
|
-
export declare const validateDimension: typeof
|
|
4
|
-
export declare const validateDurationInFrames: typeof
|
|
1
|
+
import { NoReactInternals } from 'remotion/no-react';
|
|
2
|
+
export declare const validateFps: typeof NoReactInternals.validateFps;
|
|
3
|
+
export declare const validateDimension: typeof NoReactInternals.validateDimension;
|
|
4
|
+
export declare const validateDurationInFrames: typeof NoReactInternals.validateDurationInFrames;
|
package/dist/validate.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateDurationInFrames = exports.validateDimension = exports.validateFps = void 0;
|
|
4
4
|
/* eslint-disable prefer-destructuring */
|
|
5
|
-
const
|
|
6
|
-
exports.validateFps =
|
|
7
|
-
exports.validateDimension =
|
|
8
|
-
exports.validateDurationInFrames =
|
|
5
|
+
const no_react_1 = require("remotion/no-react");
|
|
6
|
+
exports.validateFps = no_react_1.NoReactInternals.validateFps;
|
|
7
|
+
exports.validateDimension = no_react_1.NoReactInternals.validateDimension;
|
|
8
|
+
exports.validateDurationInFrames = no_react_1.NoReactInternals.validateDurationInFrames;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.73",
|
|
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.73"
|
|
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-darwin-
|
|
44
|
-
"@remotion/compositor-darwin-
|
|
45
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
46
|
-
"@remotion/compositor-linux-
|
|
47
|
-
"@remotion/compositor-linux-
|
|
48
|
-
"@remotion/compositor-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-x64": "4.0.73",
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "4.0.73",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.73",
|
|
46
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.73",
|
|
47
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.73",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.73",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.73"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|