@remotion/cli 4.0.50 → 4.0.52

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 (45) hide show
  1. package/dist/benchmark.js +9 -8
  2. package/dist/config/chromium-flags.d.ts +1 -1
  3. package/dist/config/index.d.ts +3 -3
  4. package/dist/config/log.d.ts +1 -1
  5. package/dist/editor/components/CurrentComposition.d.ts +0 -1
  6. package/dist/editor/components/Modals.js +1 -1
  7. package/dist/editor/components/NewComposition/RemInput.d.ts +2 -2
  8. package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +1 -1
  9. package/dist/editor/components/RenderButton.js +2 -19
  10. package/dist/editor/components/RenderModal/RenderModal.d.ts +2 -6
  11. package/dist/editor/components/RenderModal/RenderModal.js +25 -1
  12. package/dist/editor/components/RenderModal/RenderModalAdvanced.js +9 -1
  13. package/dist/editor/components/SidebarRenderButton.js +3 -28
  14. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +4 -2
  15. package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +10 -5
  16. package/dist/editor/components/UpdateCheck.d.ts +0 -1
  17. package/dist/editor/helpers/colors.d.ts +1 -1
  18. package/dist/editor/state/modals.d.ts +2 -6
  19. package/dist/get-cli-options.d.ts +1 -1
  20. package/dist/get-cli-options.js +12 -3
  21. package/dist/get-final-output-codec.d.ts +2 -1
  22. package/dist/get-final-output-codec.js +4 -1
  23. package/dist/gpu.d.ts +2 -0
  24. package/dist/gpu.js +43 -0
  25. package/dist/index.d.ts +11 -10
  26. package/dist/index.js +4 -0
  27. package/dist/list-of-remotion-packages.js +1 -0
  28. package/dist/log.d.ts +4 -4
  29. package/dist/make-on-download.d.ts +3 -1
  30. package/dist/make-on-download.js +3 -1
  31. package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +8 -4
  32. package/dist/preview-server/render-queue/get-default-video-contexts.js +21 -5
  33. package/dist/preview-server/render-queue/make-retry-payload.js +6 -28
  34. package/dist/print-help.js +37 -66
  35. package/dist/progress-bar.d.ts +2 -1
  36. package/dist/progress-bar.js +4 -3
  37. package/dist/render-flows/render.js +8 -1
  38. package/dist/render-flows/still.js +18 -4
  39. package/package.json +8 -8
  40. package/dist/config/presets-profile.d.ts +0 -3
  41. package/dist/config/presets-profile.js +0 -12
  42. package/dist/editor/components/DownloadButton.d.ts +0 -0
  43. package/dist/editor/components/DownloadButton.js +0 -1
  44. package/dist/handle-common-errors.d.ts +0 -2
  45. package/dist/handle-common-errors.js +0 -60
@@ -38,11 +38,12 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
38
38
  renderer_1.RenderInternals.isServeUrl(fullEntryPoint) ? null : 'bundling',
39
39
  'rendering',
40
40
  ].filter(truthy_1.truthy);
41
- const updateRenderProgress = ({ newline, printToConsole, }) => {
41
+ const updateRenderProgress = ({ newline, printToConsole, isUsingParallelEncoding, }) => {
42
42
  const { output, progress, message } = (0, progress_bar_1.makeRenderingAndStitchingProgress)({
43
43
  prog: aggregate,
44
44
  steps: steps.length,
45
45
  stitchingStep: steps.indexOf('stitching'),
46
+ isUsingParallelEncoding,
46
47
  });
47
48
  if (printToConsole) {
48
49
  renderProgress.update(updatesDontOverwrite ? message : output, newline);
@@ -69,7 +70,11 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
69
70
  onProgress: ({ copying, bundling }) => {
70
71
  aggregate.bundling = bundling;
71
72
  aggregate.copyingState = copying;
72
- updateRenderProgress({ newline: false, printToConsole: true });
73
+ updateRenderProgress({
74
+ newline: false,
75
+ printToConsole: true,
76
+ isUsingParallelEncoding: false,
77
+ });
73
78
  },
74
79
  indentOutput: indent,
75
80
  logLevel,
@@ -142,13 +147,18 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
142
147
  steps,
143
148
  totalFrames: 1,
144
149
  };
145
- updateRenderProgress({ newline: false, printToConsole: true });
150
+ updateRenderProgress({
151
+ newline: false,
152
+ printToConsole: true,
153
+ isUsingParallelEncoding: false,
154
+ });
146
155
  const onDownload = (0, make_on_download_1.makeOnDownload)({
147
156
  downloads: aggregate.downloads,
148
157
  indent,
149
158
  logLevel,
150
159
  updateRenderProgress,
151
160
  updatesDontOverwrite,
161
+ isUsingParallelEncoding: false,
152
162
  });
153
163
  await renderer_1.RenderInternals.internalRenderStill({
154
164
  composition: config,
@@ -186,7 +196,11 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
186
196
  steps,
187
197
  totalFrames: 1,
188
198
  };
189
- updateRenderProgress({ newline: true, printToConsole: true });
199
+ updateRenderProgress({
200
+ newline: true,
201
+ printToConsole: true,
202
+ isUsingParallelEncoding: false,
203
+ });
190
204
  log_1.Log.infoAdvanced({ indent, logLevel }, chalk_1.chalk.blue(`${exists ? '○' : '+'} ${absoluteOutputLocation}`));
191
205
  };
192
206
  exports.renderStillFlow = renderStillFlow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "4.0.50",
3
+ "version": "4.0.52",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -35,11 +35,11 @@
35
35
  "prompts": "2.4.1",
36
36
  "semver": "7.5.3",
37
37
  "source-map": "0.6.1",
38
- "@remotion/bundler": "4.0.50",
39
- "@remotion/media-utils": "4.0.50",
40
- "@remotion/renderer": "4.0.50",
41
- "remotion": "4.0.50",
42
- "@remotion/player": "4.0.50"
38
+ "@remotion/bundler": "4.0.52",
39
+ "@remotion/renderer": "4.0.52",
40
+ "@remotion/media-utils": "4.0.52",
41
+ "@remotion/player": "4.0.52",
42
+ "remotion": "4.0.52"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0",
@@ -65,8 +65,8 @@
65
65
  "react-dom": "^18.0.0",
66
66
  "vitest": "0.31.1",
67
67
  "zod": "^3.22.3",
68
- "@remotion/zod-types": "4.0.50",
69
- "@remotion/tailwind": "4.0.50"
68
+ "@remotion/zod-types": "4.0.52",
69
+ "@remotion/tailwind": "4.0.52"
70
70
  },
71
71
  "keywords": [
72
72
  "remotion",
@@ -1,3 +0,0 @@
1
- import type { x264Preset } from '@remotion/renderer';
2
- export declare const getPresetProfile: () => x264Preset | undefined;
3
- export declare const setPresetProfile: (profile: x264Preset | undefined) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setPresetProfile = exports.getPresetProfile = void 0;
4
- let preset;
5
- const getPresetProfile = () => {
6
- return preset;
7
- };
8
- exports.getPresetProfile = getPresetProfile;
9
- const setPresetProfile = (profile) => {
10
- preset = profile;
11
- };
12
- exports.setPresetProfile = setPresetProfile;
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,2 +0,0 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const handleCommonError: (err: Error, logLevel: LogLevel) => Promise<void>;
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleCommonError = void 0;
4
- const chalk_1 = require("./chalk");
5
- const log_1 = require("./log");
6
- const print_error_1 = require("./print-error");
7
- const truthy_1 = require("./truthy");
8
- const handleCommonError = async (err, logLevel) => {
9
- var _a;
10
- await (0, print_error_1.printError)(err, logLevel);
11
- if (err.message.includes('Could not play video with')) {
12
- log_1.Log.info();
13
- log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/media-playback-error');
14
- }
15
- if (err.message.includes('A delayRender()') &&
16
- err.message.includes('was called but not cleared after')) {
17
- log_1.Log.info();
18
- log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/timeout');
19
- }
20
- if (err.message.includes('Target closed')) {
21
- log_1.Log.info();
22
- log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/target-closed');
23
- }
24
- if (err.message.includes('ENAMETOOLONG')) {
25
- log_1.Log.info();
26
- log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/enametoolong');
27
- }
28
- if (err.message.includes('Error creating WebGL context')) {
29
- log_1.Log.info();
30
- log_1.Log.warn('💡 You might need to set the OpenGL renderer to "angle" (or "swangle" if rendering on lambda). Learn why at https://www.remotion.dev/docs/three');
31
- log_1.Log.warn("💡 Check how it's done at https://www.remotion.dev/docs/chromium-flags#--gl");
32
- }
33
- if (err.message.includes('The bucket does not allow ACLs')) {
34
- log_1.Log.info();
35
- log_1.Log.info(chalk_1.chalk.green('💡 Fix this issue https://remotion.dev/docs/lambda/troubleshooting/bucket-disallows-acl'));
36
- }
37
- if (err.message.includes('Minified React error #306')) {
38
- const componentName = (_a = err.message.match(/<\w+>/)) === null || _a === void 0 ? void 0 : _a[0];
39
- log_1.Log.info([
40
- '💡 This error indicates that the component',
41
- componentName ? `(${componentName})` : null,
42
- 'you are trying to render is not imported correctly.',
43
- ]
44
- .filter(truthy_1.truthy)
45
- .join(' '));
46
- log_1.Log.info();
47
- log_1.Log.info(' Check the root file and ensure that the component is not undefined.');
48
- log_1.Log.info(' Oftentimes, this happens if the component is missing the `export` keyword');
49
- log_1.Log.info(' or if the component was renamed and the import statement not properly adjusted.');
50
- }
51
- if (err.message.includes('GLIBC_')) {
52
- log_1.Log.info('💡 Remotion requires at least Libc 2.35.');
53
- log_1.Log.info('💡 Get help for this issue: https://github.com/remotion-dev/remotion/issues/2439');
54
- }
55
- if (err.message.includes('EBADF')) {
56
- log_1.Log.info('💡 This error might be fixed by changing your Node version:');
57
- log_1.Log.info(' https://github.com/remotion-dev/remotion/issues/2452');
58
- }
59
- };
60
- exports.handleCommonError = handleCommonError;