@remotion/renderer 4.0.539 → 4.0.540

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.
Files changed (157) hide show
  1. package/dist/assets/download-and-map-assets-to-file.js +16 -3
  2. package/dist/assets/download-file.js +9 -2
  3. package/dist/assets/download-map.d.ts +1 -1
  4. package/dist/assets/read-file.d.ts +1 -1
  5. package/dist/assets/read-file.js +6 -5
  6. package/dist/browser/BrowserFetcher.js +4 -1
  7. package/dist/browser/BrowserPage.js +27 -8
  8. package/dist/browser/NetworkManager.js +6 -1
  9. package/dist/browser/devtools-commands.d.ts +6 -1
  10. package/dist/browser/get-chrome-download-url.d.ts +1 -1
  11. package/dist/browser/get-chrome-download-url.js +4 -1
  12. package/dist/check-version-requirements.js +6 -6
  13. package/dist/client.d.ts +459 -238
  14. package/dist/esm/client.mjs +349 -310
  15. package/dist/esm/index.mjs +306 -261
  16. package/dist/get-compositions.js +6 -3
  17. package/dist/index.d.ts +113 -41
  18. package/dist/index.js +4 -2
  19. package/dist/make-page.d.ts +3 -1
  20. package/dist/make-page.js +2 -1
  21. package/dist/options/allow-html-in-canvas.d.ts +1 -1
  22. package/dist/options/api-key.d.ts +1 -1
  23. package/dist/options/ask-ai.d.ts +1 -1
  24. package/dist/options/ask-ai.js +1 -1
  25. package/dist/options/audio-bitrate.d.ts +1 -1
  26. package/dist/options/beep-on-finish.d.ts +1 -1
  27. package/dist/options/benchmark-concurrencies.d.ts +1 -1
  28. package/dist/options/binaries-directory.d.ts +1 -1
  29. package/dist/options/browser-executable.d.ts +1 -1
  30. package/dist/options/browser-executable.js +1 -1
  31. package/dist/options/browser.d.ts +1 -1
  32. package/dist/options/bundle-cache.d.ts +1 -1
  33. package/dist/options/canvas-tabs.d.ts +1 -1
  34. package/dist/options/chrome-mode.d.ts +1 -1
  35. package/dist/options/color-space.d.ts +1 -1
  36. package/dist/options/concurrency.d.ts +1 -1
  37. package/dist/options/config.d.ts +1 -1
  38. package/dist/options/crf.d.ts +1 -1
  39. package/dist/options/crf.js +1 -1
  40. package/dist/options/cross-site-isolation.d.ts +1 -1
  41. package/dist/options/cross-site-isolation.js +2 -2
  42. package/dist/options/dark-mode.d.ts +1 -1
  43. package/dist/options/default-coding-agent.d.ts +1 -1
  44. package/dist/options/default-editor.d.ts +1 -1
  45. package/dist/options/default-premount-in-seconds.d.ts +1 -1
  46. package/dist/options/delete-after.d.ts +1 -1
  47. package/dist/options/disable-git-source.d.ts +2 -2
  48. package/dist/options/disable-shared-memory-capture.d.ts +1 -1
  49. package/dist/options/disable-web-security.d.ts +1 -1
  50. package/dist/options/disallow-parallel-encoding.d.ts +1 -1
  51. package/dist/options/enable-cancellation.d.ts +1 -1
  52. package/dist/options/enable-lambda-insights.d.ts +1 -1
  53. package/dist/options/enable-lambda-insights.js +2 -2
  54. package/dist/options/enable-multiprocess-on-linux.d.ts +1 -1
  55. package/dist/options/enable-multiprocess-on-linux.js +2 -2
  56. package/dist/options/encoding-buffer-size.d.ts +1 -1
  57. package/dist/options/encoding-max-rate.d.ts +1 -1
  58. package/dist/options/enforce-audio.d.ts +1 -1
  59. package/dist/options/env-file.d.ts +1 -1
  60. package/dist/options/every-nth-frame.d.ts +1 -1
  61. package/dist/options/experimental-keep-audio-context-alive.d.ts +1 -1
  62. package/dist/options/folder-expiry.d.ts +1 -1
  63. package/dist/options/folder-expiry.js +1 -1
  64. package/dist/options/for-seamless-aac-concatenation.d.ts +1 -1
  65. package/dist/options/force-new-studio.d.ts +1 -1
  66. package/dist/options/frames.d.ts +1 -1
  67. package/dist/options/gl.d.ts +1 -1
  68. package/dist/options/gop-size.d.ts +1 -1
  69. package/dist/options/headless.d.ts +1 -1
  70. package/dist/options/ignore-certificate-errors.d.ts +1 -1
  71. package/dist/options/image-sequence-pattern.d.ts +1 -1
  72. package/dist/options/image-sequence.d.ts +1 -1
  73. package/dist/options/index.d.ts +119 -102
  74. package/dist/options/index.js +2 -0
  75. package/dist/options/interactivity.d.ts +1 -1
  76. package/dist/options/ipv4.d.ts +1 -1
  77. package/dist/options/is-production.d.ts +1 -1
  78. package/dist/options/jpeg-quality.d.ts +1 -1
  79. package/dist/options/keyboard-shortcuts.d.ts +1 -1
  80. package/dist/options/latency-hint.d.ts +1 -1
  81. package/dist/options/license-key.d.ts +1 -1
  82. package/dist/options/log-level.d.ts +1 -1
  83. package/dist/options/metadata.d.ts +1 -1
  84. package/dist/options/mute.d.ts +1 -1
  85. package/dist/options/no-open.d.ts +1 -1
  86. package/dist/options/number-of-gif-loops.d.ts +1 -1
  87. package/dist/options/number-of-shared-audio-tags.d.ts +1 -1
  88. package/dist/options/offthreadvideo-cache-size.d.ts +1 -1
  89. package/dist/options/offthreadvideo-threads.d.ts +1 -1
  90. package/dist/options/on-browser-download.d.ts +1 -1
  91. package/dist/options/options-map.d.ts +340 -136
  92. package/dist/options/options-map.js +13 -0
  93. package/dist/options/out-dir.d.ts +1 -1
  94. package/dist/options/override-duration.d.ts +1 -1
  95. package/dist/options/override-fps.d.ts +1 -1
  96. package/dist/options/override-height.d.ts +1 -1
  97. package/dist/options/override-width.d.ts +1 -1
  98. package/dist/options/overwrite.d.ts +1 -1
  99. package/dist/options/package-manager.d.ts +1 -1
  100. package/dist/options/pixel-format.d.ts +1 -1
  101. package/dist/options/port.d.ts +1 -1
  102. package/dist/options/prefer-lossless.d.ts +1 -1
  103. package/dist/options/preferred-effect-backend.d.ts +18 -0
  104. package/dist/options/preferred-effect-backend.js +28 -0
  105. package/dist/options/preserve-pitch-on-playback.d.ts +1 -1
  106. package/dist/options/preview-sample-rate.d.ts +1 -1
  107. package/dist/options/props.d.ts +1 -1
  108. package/dist/options/prores-profile.d.ts +1 -1
  109. package/dist/options/public-dir.d.ts +1 -1
  110. package/dist/options/public-license-key.d.ts +1 -1
  111. package/dist/options/public-path.d.ts +1 -1
  112. package/dist/options/repro.d.ts +1 -1
  113. package/dist/options/rspack.d.ts +1 -1
  114. package/dist/options/runs.d.ts +1 -1
  115. package/dist/options/sample-rate.d.ts +1 -1
  116. package/dist/options/scale.d.ts +1 -1
  117. package/dist/options/sequence-activity-limit.d.ts +1 -1
  118. package/dist/options/show-layer-frame-numbers.d.ts +1 -1
  119. package/dist/options/show-premounting.d.ts +1 -1
  120. package/dist/options/skip-skills.d.ts +1 -1
  121. package/dist/options/still-frame.d.ts +1 -1
  122. package/dist/options/still-image-format.d.ts +1 -1
  123. package/dist/options/throw-if-site-exists.d.ts +2 -2
  124. package/dist/options/timeout.d.ts +1 -1
  125. package/dist/options/user-agent.d.ts +1 -1
  126. package/dist/options/version-flag.d.ts +1 -1
  127. package/dist/options/video-bitrate.d.ts +1 -1
  128. package/dist/options/video-cache-size.d.ts +1 -1
  129. package/dist/options/video-codec.d.ts +1 -1
  130. package/dist/options/video-image-format.d.ts +1 -1
  131. package/dist/options/webhook-custom-data.d.ts +1 -1
  132. package/dist/options/webpack-poll.d.ts +1 -1
  133. package/dist/options/x264-preset.d.ts +1 -1
  134. package/dist/render-frames.js +6 -3
  135. package/dist/render-media.d.ts +1 -1
  136. package/dist/render-media.js +4 -2
  137. package/dist/render-still.js +6 -2
  138. package/dist/select-composition.js +6 -3
  139. package/dist/set-props-and-env.d.ts +2 -0
  140. package/dist/set-props-and-env.js +8 -3
  141. package/dist/stringify-ffmpeg-filter.js +6 -2
  142. package/dist/symbolicate-stacktrace.js +1 -1
  143. package/dist/validate-selected-frames.d.ts +4 -4
  144. package/dist/validate-selected-frames.js +2 -31
  145. package/package.json +15 -15
  146. package/dist/options/experimental-client-side-rendering.d.ts +0 -16
  147. package/dist/options/experimental-client-side-rendering.js +0 -30
  148. package/dist/options/experimental-sequence-activity-limit.d.ts +0 -19
  149. package/dist/options/experimental-sequence-activity-limit.js +0 -40
  150. package/dist/options/experimental-sequence-activity.d.ts +0 -19
  151. package/dist/options/experimental-sequence-activity.js +0 -38
  152. package/dist/options/experimental-tracks.d.ts +0 -19
  153. package/dist/options/experimental-tracks.js +0 -43
  154. package/dist/prestitcher-memory-usage.d.ts +0 -13
  155. package/dist/prestitcher-memory-usage.js +0 -33
  156. package/dist/render-partitions.d.ts +0 -7
  157. package/dist/render-partitions.js +0 -50
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderPartitions = void 0;
4
- const renderPartitions = ({ frames, concurrency, }) => {
5
- const partitions = [];
6
- let start = 0;
7
- for (let i = 0; i < concurrency; i++) {
8
- const end = start + Math.ceil((frames.length - start) / (concurrency - i));
9
- partitions.push(frames.slice(start, end));
10
- start = end;
11
- }
12
- return {
13
- partitions,
14
- getNextFrame: (pageIndex) => {
15
- if (partitions[pageIndex].length === 0) {
16
- const partitionLengths = partitions.map((p) => p.length);
17
- if (partitionLengths.every((p) => p === 0)) {
18
- throw new Error('No more frames to render');
19
- }
20
- let longestRemainingPartitionIndex = -1;
21
- for (let i = 0; i < partitions.length; i++) {
22
- if (longestRemainingPartitionIndex === -1) {
23
- longestRemainingPartitionIndex = i;
24
- continue;
25
- }
26
- if (partitions[i].length >
27
- partitions[longestRemainingPartitionIndex].length) {
28
- longestRemainingPartitionIndex = i;
29
- }
30
- }
31
- if (longestRemainingPartitionIndex === -1) {
32
- throw new Error('No more frames to render');
33
- }
34
- // Round up - let's say only one frame is left to render, we should take this one
35
- const slicePoint = Math.ceil(partitions[longestRemainingPartitionIndex].length / 2) -
36
- // but don't forget it's zero indexed :)
37
- 1;
38
- partitions[pageIndex] =
39
- partitions[longestRemainingPartitionIndex].slice(slicePoint);
40
- partitions[longestRemainingPartitionIndex] = partitions[longestRemainingPartitionIndex].slice(0, slicePoint);
41
- }
42
- const value = partitions[pageIndex].shift();
43
- if (value === undefined) {
44
- throw new Error('No more frames to render');
45
- }
46
- return value;
47
- },
48
- };
49
- };
50
- exports.renderPartitions = renderPartitions;