@remotion/renderer 4.0.354 → 4.0.355

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.
@@ -21448,15 +21448,20 @@ var internalRenderMediaRaw = ({
21448
21448
  if (onCtrlCExit && workingDir) {
21449
21449
  onCtrlCExit(`Delete ${workingDir}`, () => deleteDirectory(workingDir));
21450
21450
  }
21451
- const { actualWidth: widthEvenDimensions, actualHeight: heightEvenDimensions } = validateEvenDimensionsWithCodec({
21451
+ const {
21452
+ actualWidth: widthEvenDimensionsUndivided,
21453
+ actualHeight: heightEvenDimensionsUndivided
21454
+ } = validateEvenDimensionsWithCodec({
21452
21455
  codec,
21453
21456
  height: compositionWithPossibleUnevenDimensions.height,
21454
- scale: 1,
21457
+ scale,
21455
21458
  width: compositionWithPossibleUnevenDimensions.width,
21456
21459
  wantsImageSequence: false,
21457
21460
  indent,
21458
21461
  logLevel
21459
21462
  });
21463
+ const heightEvenDimensions = Math.round(heightEvenDimensionsUndivided / scale);
21464
+ const widthEvenDimensions = Math.round(widthEvenDimensionsUndivided / scale);
21460
21465
  const { actualWidth, actualHeight } = validateEvenDimensionsWithCodec({
21461
21466
  codec,
21462
21467
  height: compositionWithPossibleUnevenDimensions.height,
@@ -177,16 +177,17 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition: c
177
177
  if (onCtrlCExit && workingDir) {
178
178
  onCtrlCExit(`Delete ${workingDir}`, () => (0, delete_directory_1.deleteDirectory)(workingDir));
179
179
  }
180
- const { actualWidth: widthEvenDimensions, actualHeight: heightEvenDimensions } = (0, validate_even_dimensions_with_codec_1.validateEvenDimensionsWithCodec)({
180
+ const { actualWidth: widthEvenDimensionsUndivided, actualHeight: heightEvenDimensionsUndivided, } = (0, validate_even_dimensions_with_codec_1.validateEvenDimensionsWithCodec)({
181
181
  codec,
182
182
  height: compositionWithPossibleUnevenDimensions.height,
183
- // Don't apply scale yet, only ensure even dimensions
184
- scale: 1,
183
+ scale,
185
184
  width: compositionWithPossibleUnevenDimensions.width,
186
185
  wantsImageSequence: false,
187
186
  indent,
188
187
  logLevel,
189
188
  });
189
+ const heightEvenDimensions = Math.round(heightEvenDimensionsUndivided / scale);
190
+ const widthEvenDimensions = Math.round(widthEvenDimensionsUndivided / scale);
190
191
  const { actualWidth, actualHeight } = (0, validate_even_dimensions_with_codec_1.validateEvenDimensionsWithCodec)({
191
192
  codec,
192
193
  height: compositionWithPossibleUnevenDimensions.height,
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.354",
6
+ "version": "4.0.355",
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.354",
22
- "@remotion/streaming": "4.0.354"
21
+ "remotion": "4.0.355",
22
+ "@remotion/streaming": "4.0.355"
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.354",
37
- "@remotion/eslint-config-internal": "4.0.354"
36
+ "@remotion/eslint-config-internal": "4.0.355",
37
+ "@remotion/example-videos": "4.0.355"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-x64": "4.0.354",
41
- "@remotion/compositor-darwin-arm64": "4.0.354",
42
- "@remotion/compositor-linux-arm64-gnu": "4.0.354",
43
- "@remotion/compositor-linux-arm64-musl": "4.0.354",
44
- "@remotion/compositor-linux-x64-musl": "4.0.354",
45
- "@remotion/compositor-linux-x64-gnu": "4.0.354",
46
- "@remotion/compositor-win32-x64-msvc": "4.0.354"
40
+ "@remotion/compositor-darwin-arm64": "4.0.355",
41
+ "@remotion/compositor-darwin-x64": "4.0.355",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.355",
43
+ "@remotion/compositor-linux-x64-gnu": "4.0.355",
44
+ "@remotion/compositor-linux-arm64-musl": "4.0.355",
45
+ "@remotion/compositor-linux-x64-musl": "4.0.355",
46
+ "@remotion/compositor-win32-x64-msvc": "4.0.355"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",