@remotion/renderer 4.0.452 → 4.0.453

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.
@@ -7,7 +7,7 @@ const uncompressMediaAsset = (allRenderAssets, assetToUncompress) => {
7
7
  return assetToUncompress;
8
8
  }
9
9
  const [, id, frame] = isCompressed;
10
- const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame);
10
+ const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame && !a.src.startsWith('same-as'));
11
11
  if (!assetToFill) {
12
12
  console.log('List of assets:');
13
13
  console.log(allRenderAssets);
@@ -17244,8 +17244,8 @@ var getFramesToRender = (frameRange, everyNthFrame) => {
17244
17244
  }
17245
17245
  return new Array(frameRange[1] - frameRange[0] + 1).fill(true).map((_, index) => {
17246
17246
  return index + frameRange[0];
17247
- }).filter((index) => {
17248
- return index % everyNthFrame === 0;
17247
+ }).filter((frame) => {
17248
+ return (frame - frameRange[0]) % everyNthFrame === 0;
17249
17249
  });
17250
17250
  };
17251
17251
 
@@ -20324,7 +20324,7 @@ var uncompressMediaAsset = (allRenderAssets, assetToUncompress) => {
20324
20324
  return assetToUncompress;
20325
20325
  }
20326
20326
  const [, id, frame] = isCompressed;
20327
- const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame);
20327
+ const assetToFill = allRenderAssets.find((a) => a.id === id && String(a.frame) === frame && !a.src.startsWith("same-as"));
20328
20328
  if (!assetToFill) {
20329
20329
  console.log("List of assets:");
20330
20330
  console.log(allRenderAssets);
package/dist/esm/pure.mjs CHANGED
@@ -65,8 +65,8 @@ var getFramesToRender = (frameRange, everyNthFrame) => {
65
65
  }
66
66
  return new Array(frameRange[1] - frameRange[0] + 1).fill(true).map((_, index) => {
67
67
  return index + frameRange[0];
68
- }).filter((index) => {
69
- return index % everyNthFrame === 0;
68
+ }).filter((frame) => {
69
+ return (frame - frameRange[0]) % everyNthFrame === 0;
70
70
  });
71
71
  };
72
72
 
@@ -10,8 +10,8 @@ const getFramesToRender = (frameRange, everyNthFrame) => {
10
10
  .map((_, index) => {
11
11
  return index + frameRange[0];
12
12
  })
13
- .filter((index) => {
14
- return index % everyNthFrame === 0;
13
+ .filter((frame) => {
14
+ return (frame - frameRange[0]) % everyNthFrame === 0;
15
15
  });
16
16
  };
17
17
  exports.getFramesToRender = getFramesToRender;
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.452",
6
+ "version": "4.0.453",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -24,11 +24,11 @@
24
24
  "dependencies": {
25
25
  "execa": "5.1.1",
26
26
  "extract-zip": "2.0.1",
27
- "remotion": "4.0.452",
28
- "@remotion/streaming": "4.0.452",
27
+ "remotion": "4.0.453",
28
+ "@remotion/streaming": "4.0.453",
29
29
  "source-map": "^0.8.0-beta.0",
30
30
  "ws": "8.17.1",
31
- "@remotion/licensing": "4.0.452"
31
+ "@remotion/licensing": "4.0.453"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=16.8.0",
@@ -42,19 +42,19 @@
42
42
  "react-dom": "19.2.3",
43
43
  "@typescript/native-preview": "7.0.0-dev.20260217.1",
44
44
  "@types/ws": "8.5.10",
45
- "@remotion/example-videos": "4.0.452",
46
- "@remotion/eslint-config-internal": "4.0.452",
45
+ "@remotion/example-videos": "4.0.453",
46
+ "@remotion/eslint-config-internal": "4.0.453",
47
47
  "eslint": "9.19.0",
48
48
  "@types/node": "20.12.14"
49
49
  },
50
50
  "optionalDependencies": {
51
- "@remotion/compositor-darwin-arm64": "4.0.452",
52
- "@remotion/compositor-darwin-x64": "4.0.452",
53
- "@remotion/compositor-linux-arm64-gnu": "4.0.452",
54
- "@remotion/compositor-linux-arm64-musl": "4.0.452",
55
- "@remotion/compositor-linux-x64-gnu": "4.0.452",
56
- "@remotion/compositor-linux-x64-musl": "4.0.452",
57
- "@remotion/compositor-win32-x64-msvc": "4.0.452"
51
+ "@remotion/compositor-darwin-arm64": "4.0.453",
52
+ "@remotion/compositor-darwin-x64": "4.0.453",
53
+ "@remotion/compositor-linux-arm64-gnu": "4.0.453",
54
+ "@remotion/compositor-linux-arm64-musl": "4.0.453",
55
+ "@remotion/compositor-linux-x64-gnu": "4.0.453",
56
+ "@remotion/compositor-linux-x64-musl": "4.0.453",
57
+ "@remotion/compositor-win32-x64-msvc": "4.0.453"
58
58
  },
59
59
  "keywords": [
60
60
  "remotion",
@@ -1 +0,0 @@
1
- export declare const DEFAULT_SAMPLE_RATE = 48000;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_SAMPLE_RATE = void 0;
4
- exports.DEFAULT_SAMPLE_RATE = 48000;