@remotion/renderer 4.0.264 → 4.0.266
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.
|
@@ -3,6 +3,7 @@ export declare const nextFrameToRenderState: ({ allFramesAndExtraFrames, concurr
|
|
|
3
3
|
concurrencyOrFramesToRender: number;
|
|
4
4
|
}) => {
|
|
5
5
|
getNextFrame: (_pageIndex: number) => number;
|
|
6
|
+
returnFrame: (frame: number) => void;
|
|
6
7
|
};
|
|
7
8
|
type Fn = typeof nextFrameToRenderState;
|
|
8
9
|
export type NextFrameToRender = ReturnType<Fn>;
|
|
@@ -18,6 +18,9 @@ concurrencyOrFramesToRender: _concurrency, }) => {
|
|
|
18
18
|
rendered.set(nextFrame, true);
|
|
19
19
|
return nextFrame;
|
|
20
20
|
},
|
|
21
|
+
returnFrame: (frame) => {
|
|
22
|
+
rendered.delete(frame);
|
|
23
|
+
},
|
|
21
24
|
};
|
|
22
25
|
};
|
|
23
26
|
exports.nextFrameToRenderState = nextFrameToRenderState;
|
|
@@ -30,6 +33,9 @@ const partitionedNextFrameToRenderState = ({ allFramesAndExtraFrames, concurrenc
|
|
|
30
33
|
getNextFrame: (pageIndex) => {
|
|
31
34
|
return partitions.getNextFrame(pageIndex);
|
|
32
35
|
},
|
|
36
|
+
returnFrame: () => {
|
|
37
|
+
throw new Error('retrying failed frames for partitioned rendering is not supported. Disable partitioned rendering.');
|
|
38
|
+
},
|
|
33
39
|
};
|
|
34
40
|
};
|
|
35
41
|
exports.partitionedNextFrameToRenderState = partitionedNextFrameToRenderState;
|
|
@@ -127,6 +127,7 @@ const renderFrameAndRetryTargetClose = async ({ retriesLeft, attempt, assets, im
|
|
|
127
127
|
pool.release(newPage);
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
+
nextFrameToRender.returnFrame(frame);
|
|
130
131
|
await (0, exports.renderFrameAndRetryTargetClose)({
|
|
131
132
|
retriesLeft: retriesLeft - 1,
|
|
132
133
|
attempt: attempt + 1,
|
package/dist/seek-to-frame.js
CHANGED
|
@@ -83,7 +83,7 @@ const waitForReady = ({ page, timeoutInMilliseconds, frame, indent, logLevel, })
|
|
|
83
83
|
timeoutInMilliseconds: 5000,
|
|
84
84
|
})
|
|
85
85
|
.then((res) => {
|
|
86
|
-
reject(new Error(`Timeout (${timeoutInMilliseconds}ms) exceeded rendering the component${frame ? ' at frame ' + frame : ' initially'}. ${res.value ? `Open delayRender() handles: ${res.value}` : ''}
|
|
86
|
+
reject(new Error(`Timeout (${timeoutInMilliseconds}ms) exceeded rendering the component${frame ? ' at frame ' + frame : ' initially'}. ${res.value ? `Open delayRender() handles: ${res.value}` : ''}. You can increase the timeout using the "timeoutInMilliseconds" / "--timeout" option of the function or command you used to trigger this render.`));
|
|
87
87
|
})
|
|
88
88
|
.catch((newErr) => {
|
|
89
89
|
logger_1.Log.warn({ indent, logLevel }, 'Tried to get delayRender() handles for timeout, but could not do so because of', newErr);
|
|
@@ -38,12 +38,12 @@ const validateEvenDimensionsWithCodec = ({ width, height, codec, scale, wantsIma
|
|
|
38
38
|
.join(' ');
|
|
39
39
|
throw new Error(message);
|
|
40
40
|
}
|
|
41
|
-
if (
|
|
41
|
+
if (actualHeight % 2 !== 0) {
|
|
42
42
|
const message = [
|
|
43
43
|
`Codec error: You are trying to render a video with a ${displayName} codec that has a height of ${actualHeight}px, which is an uneven number.`,
|
|
44
44
|
`The ${displayName} codec does only support dimensions that are evenly divisible by two. `,
|
|
45
45
|
scale === 1
|
|
46
|
-
? `Change the height to ${Math.floor(
|
|
46
|
+
? `Change the height to ${Math.floor(actualHeight - 1)}px to fix this issue.`
|
|
47
47
|
: `You have used the "scale" option which might be the reason for the problem: The original height is ${height} and the scale is ${scale}x, which was multiplied to get the actual height.`,
|
|
48
48
|
].join(' ');
|
|
49
49
|
throw new Error(message);
|
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.266",
|
|
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
|
-
"@remotion/streaming": "4.0.
|
|
21
|
+
"remotion": "4.0.266",
|
|
22
|
+
"@remotion/streaming": "4.0.266"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"react-dom": "19.0.0",
|
|
34
34
|
"@types/ws": "8.5.10",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
|
-
"@remotion/example-videos": "4.0.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
36
|
+
"@remotion/example-videos": "4.0.266",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.266"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
41
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
42
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
43
|
-
"@remotion/compositor-linux-
|
|
44
|
-
"@remotion/compositor-linux-x64-
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.266",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.266",
|
|
42
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.266",
|
|
43
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.266",
|
|
44
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.266",
|
|
45
|
+
"@remotion/compositor-linux-x64-musl": "4.0.266",
|
|
46
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.266"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|