@remotion/renderer 4.0.327 → 4.0.329

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.
@@ -19469,20 +19469,12 @@ var validateEvenDimensionsWithCodec = ({
19469
19469
  }
19470
19470
  const displayName = codec === "h265" ? "H265" : "H264";
19471
19471
  if (actualWidth % 2 !== 0) {
19472
- const message = [
19473
- `Codec error: You are trying to render a video with a ${displayName} codec that has a width of ${actualWidth}px, which is an uneven number.`,
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
- const message = [
19481
- `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.`,
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
- const message = [
37
- `Codec error: You are trying to render a video with a ${displayName} codec that has a width of ${actualWidth}px, which is an uneven number.`,
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
- const message = [
49
- `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.`,
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.327",
6
+ "version": "4.0.329",
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.327",
22
- "@remotion/streaming": "4.0.327"
21
+ "@remotion/streaming": "4.0.329",
22
+ "remotion": "4.0.329"
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.327",
37
- "@remotion/eslint-config-internal": "4.0.327"
36
+ "@remotion/eslint-config-internal": "4.0.329",
37
+ "@remotion/example-videos": "4.0.329"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-arm64": "4.0.327",
41
- "@remotion/compositor-darwin-x64": "4.0.327",
42
- "@remotion/compositor-linux-arm64-musl": "4.0.327",
43
- "@remotion/compositor-linux-x64-gnu": "4.0.327",
44
- "@remotion/compositor-linux-arm64-gnu": "4.0.327",
45
- "@remotion/compositor-win32-x64-msvc": "4.0.327",
46
- "@remotion/compositor-linux-x64-musl": "4.0.327"
40
+ "@remotion/compositor-darwin-arm64": "4.0.329",
41
+ "@remotion/compositor-darwin-x64": "4.0.329",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.329",
43
+ "@remotion/compositor-linux-arm64-musl": "4.0.329",
44
+ "@remotion/compositor-linux-x64-gnu": "4.0.329",
45
+ "@remotion/compositor-win32-x64-msvc": "4.0.329",
46
+ "@remotion/compositor-linux-x64-musl": "4.0.329"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",