@remotion/renderer 4.0.327 → 4.0.330
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/esm/index.mjs
CHANGED
|
@@ -19469,20 +19469,12 @@ var validateEvenDimensionsWithCodec = ({
|
|
|
19469
19469
|
}
|
|
19470
19470
|
const displayName = codec === "h265" ? "H265" : "H264";
|
|
19471
19471
|
if (actualWidth % 2 !== 0) {
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
`The ${displayName} codec does only support dimensions that are evenly divisible by two.`,
|
|
19475
|
-
scale === 1 ? `Change the width to ${Math.floor(width - 1)}px to fix this issue.` : `You have used the "scale" option which might be the reason for the problem: The original width is ${width} and the scale is ${scale}x, which was multiplied to get the actual width.`
|
|
19476
|
-
].filter(truthy).join(" ");
|
|
19477
|
-
throw new Error(message);
|
|
19472
|
+
Log.verbose({ indent, logLevel }, `Rounding width down to an even number from ${actualWidth} to ${actualWidth - 1} for ${displayName} codec compatibility`);
|
|
19473
|
+
actualWidth -= 1;
|
|
19478
19474
|
}
|
|
19479
19475
|
if (actualHeight % 2 !== 0) {
|
|
19480
|
-
|
|
19481
|
-
|
|
19482
|
-
`The ${displayName} codec does only support dimensions that are evenly divisible by two. `,
|
|
19483
|
-
scale === 1 ? `Change the height to ${Math.floor(actualHeight - 1)}px to fix this issue.` : `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.`
|
|
19484
|
-
].join(" ");
|
|
19485
|
-
throw new Error(message);
|
|
19476
|
+
Log.verbose({ indent, logLevel }, `Rounding height down to an even number from ${actualHeight} to ${actualHeight - 1} for ${displayName} codec compatibility`);
|
|
19477
|
+
actualHeight -= 1;
|
|
19486
19478
|
}
|
|
19487
19479
|
return {
|
|
19488
19480
|
actualWidth,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateEvenDimensionsWithCodec = void 0;
|
|
4
4
|
const logger_1 = require("./logger");
|
|
5
|
-
const truthy_1 = require("./truthy");
|
|
6
5
|
const validateEvenDimensionsWithCodec = ({ width, height, codec, scale, wantsImageSequence, indent, logLevel, }) => {
|
|
7
6
|
let actualWidth = width * scale;
|
|
8
7
|
let actualHeight = height * scale;
|
|
@@ -33,26 +32,12 @@ const validateEvenDimensionsWithCodec = ({ width, height, codec, scale, wantsIma
|
|
|
33
32
|
}
|
|
34
33
|
const displayName = codec === 'h265' ? 'H265' : 'H264';
|
|
35
34
|
if (actualWidth % 2 !== 0) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
`The ${displayName} codec does only support dimensions that are evenly divisible by two.`,
|
|
39
|
-
scale === 1
|
|
40
|
-
? `Change the width to ${Math.floor(width - 1)}px to fix this issue.`
|
|
41
|
-
: `You have used the "scale" option which might be the reason for the problem: The original width is ${width} and the scale is ${scale}x, which was multiplied to get the actual width.`,
|
|
42
|
-
]
|
|
43
|
-
.filter(truthy_1.truthy)
|
|
44
|
-
.join(' ');
|
|
45
|
-
throw new Error(message);
|
|
35
|
+
logger_1.Log.verbose({ indent, logLevel }, `Rounding width down to an even number from ${actualWidth} to ${actualWidth - 1} for ${displayName} codec compatibility`);
|
|
36
|
+
actualWidth -= 1;
|
|
46
37
|
}
|
|
47
38
|
if (actualHeight % 2 !== 0) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`The ${displayName} codec does only support dimensions that are evenly divisible by two. `,
|
|
51
|
-
scale === 1
|
|
52
|
-
? `Change the height to ${Math.floor(actualHeight - 1)}px to fix this issue.`
|
|
53
|
-
: `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.`,
|
|
54
|
-
].join(' ');
|
|
55
|
-
throw new Error(message);
|
|
39
|
+
logger_1.Log.verbose({ indent, logLevel }, `Rounding height down to an even number from ${actualHeight} to ${actualHeight - 1} for ${displayName} codec compatibility`);
|
|
40
|
+
actualHeight -= 1;
|
|
56
41
|
}
|
|
57
42
|
return {
|
|
58
43
|
actualWidth,
|
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.330",
|
|
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.330",
|
|
22
|
+
"@remotion/streaming": "4.0.330"
|
|
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.330",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.330"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-
|
|
41
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
42
|
-
"@remotion/compositor-linux-
|
|
43
|
-
"@remotion/compositor-
|
|
44
|
-
"@remotion/compositor-linux-arm64-
|
|
45
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
46
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
40
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.330",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.330",
|
|
42
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.330",
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.330",
|
|
44
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.330",
|
|
45
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.330",
|
|
46
|
+
"@remotion/compositor-linux-x64-musl": "4.0.330"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|