@remotion/lambda 4.0.136 → 4.0.137

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.
@@ -130,6 +130,7 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
130
130
  binariesDirectory,
131
131
  forceIPv4: false,
132
132
  });
133
+ const indent = false;
133
134
  const { compositionId } = await cli_1.CliInternals.getCompositionWithDimensionOverride({
134
135
  args: args.slice(1),
135
136
  compositionIdFromUi: null,
@@ -137,7 +138,7 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
137
138
  chromiumOptions,
138
139
  envVariables,
139
140
  height,
140
- indent: false,
141
+ indent,
141
142
  serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
142
143
  indent: undefined,
143
144
  staticBase: null,
@@ -152,6 +153,11 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
152
153
  server,
153
154
  offthreadVideoCacheSizeInBytes,
154
155
  binariesDirectory,
156
+ onBrowserDownload: cli_1.CliInternals.defaultBrowserDownloadProgress({
157
+ indent,
158
+ logLevel,
159
+ quiet: cli_1.CliInternals.quietFlagProvided(),
160
+ }),
155
161
  });
156
162
  composition = compositionId;
157
163
  }
@@ -77,10 +77,11 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
77
77
  binariesDirectory,
78
78
  forceIPv4: false,
79
79
  });
80
+ const indent = false;
80
81
  const { compositionId } = await getCompositionWithDimensionOverride({
81
82
  args: args.slice(1),
82
83
  compositionIdFromUi: null,
83
- indent: false,
84
+ indent,
84
85
  serveUrlOrWebpackUrl: serveUrl,
85
86
  logLevel,
86
87
  browserExecutable,
@@ -99,6 +100,11 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
99
100
  server,
100
101
  offthreadVideoCacheSizeInBytes,
101
102
  binariesDirectory,
103
+ onBrowserDownload: cli_1.CliInternals.defaultBrowserDownloadProgress({
104
+ indent,
105
+ logLevel,
106
+ quiet: cli_1.CliInternals.quietFlagProvided(),
107
+ }),
102
108
  });
103
109
  composition = compositionId;
104
110
  }
@@ -58,6 +58,9 @@ const compositionsHandler = async (lambdaParams, options) => {
58
58
  onBrowserLog: null,
59
59
  offthreadVideoCacheSizeInBytes: lambdaParams.offthreadVideoCacheSizeInBytes,
60
60
  binariesDirectory: null,
61
+ onBrowserDownload: () => {
62
+ throw new Error('Should not download a browser in Lambda');
63
+ },
61
64
  });
62
65
  return Promise.resolve({
63
66
  compositions,
@@ -43,6 +43,7 @@ const getBrowserInstance = async (logLevel, indent, chromiumOptions) => {
43
43
  ...chromiumOptions,
44
44
  // Override the `null` value, which might come from CLI with swANGLE
45
45
  gl: (_a = chromiumOptions.gl) !== null && _a !== void 0 ? _a : 'swangle',
46
+ enableMultiProcessOnLinux: false,
46
47
  };
47
48
  const configurationString = makeConfigurationString(actualChromiumOptions, logLevel);
48
49
  renderer_1.RenderInternals.Log.info({ indent: false, logLevel }, `Rendering with Remotion v${version_1.VERSION}.`);
@@ -65,6 +66,9 @@ const getBrowserInstance = async (logLevel, indent, chromiumOptions) => {
65
66
  indent: false,
66
67
  viewport: null,
67
68
  logLevel,
69
+ onBrowserDownload: () => {
70
+ throw new Error('Should not download a browser in Lambda');
71
+ },
68
72
  });
69
73
  instance.on('disconnected', () => {
70
74
  var _a;
@@ -1,4 +1,4 @@
1
- import type { ChromiumOptions, LogLevel, openBrowser, RemotionServer } from '@remotion/renderer';
1
+ import type { ChromiumOptions, LogLevel, OnBrowserDownload, openBrowser, RemotionServer } from '@remotion/renderer';
2
2
  import type { VideoConfig } from 'remotion/no-react';
3
3
  import type { Await } from '../../shared/await';
4
4
  type ValidateCompositionOptions = {
@@ -15,6 +15,7 @@ type ValidateCompositionOptions = {
15
15
  logLevel: LogLevel;
16
16
  server: RemotionServer | undefined;
17
17
  offthreadVideoCacheSizeInBytes: number | null;
18
+ onBrowserDownload: OnBrowserDownload;
18
19
  };
19
- export declare const validateComposition: ({ serveUrl, composition, browserInstance, serializedInputPropsWithCustomSchema, envVariables, timeoutInMilliseconds, chromiumOptions, port, forceHeight, forceWidth, logLevel, server, offthreadVideoCacheSizeInBytes, }: ValidateCompositionOptions) => Promise<VideoConfig>;
20
+ export declare const validateComposition: ({ serveUrl, composition, browserInstance, serializedInputPropsWithCustomSchema, envVariables, timeoutInMilliseconds, chromiumOptions, port, forceHeight, forceWidth, logLevel, server, offthreadVideoCacheSizeInBytes, onBrowserDownload, }: ValidateCompositionOptions) => Promise<VideoConfig>;
20
21
  export {};
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateComposition = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
5
  const get_chromium_executable_path_1 = require("./get-chromium-executable-path");
6
- const validateComposition = async ({ serveUrl, composition, browserInstance, serializedInputPropsWithCustomSchema, envVariables, timeoutInMilliseconds, chromiumOptions, port, forceHeight, forceWidth, logLevel, server, offthreadVideoCacheSizeInBytes, }) => {
6
+ const validateComposition = async ({ serveUrl, composition, browserInstance, serializedInputPropsWithCustomSchema, envVariables, timeoutInMilliseconds, chromiumOptions, port, forceHeight, forceWidth, logLevel, server, offthreadVideoCacheSizeInBytes, onBrowserDownload, }) => {
7
7
  const { metadata: comp } = await renderer_1.RenderInternals.internalSelectComposition({
8
8
  id: composition,
9
9
  puppeteerInstance: browserInstance,
@@ -20,6 +20,7 @@ const validateComposition = async ({ serveUrl, composition, browserInstance, ser
20
20
  server,
21
21
  offthreadVideoCacheSizeInBytes,
22
22
  binariesDirectory: null,
23
+ onBrowserDownload,
23
24
  });
24
25
  return {
25
26
  ...comp,
@@ -87,6 +87,9 @@ const innerLaunchHandler = async ({ functionName, params, options, onAllChunksAv
87
87
  logLevel: params.logLevel,
88
88
  server: undefined,
89
89
  offthreadVideoCacheSizeInBytes: params.offthreadVideoCacheSizeInBytes,
90
+ onBrowserDownload: () => {
91
+ throw new Error('Should not download a browser in Lambda');
92
+ },
90
93
  });
91
94
  renderer_1.RenderInternals.Log.info(logOptions, 'Composition validated, resolved props', comp.props);
92
95
  (0, validate_1.validateDurationInFrames)(comp.durationInFrames, {
@@ -195,6 +195,9 @@ const renderHandler = async (params, options, logs) => {
195
195
  separateAudioTo: audioOutputLocation,
196
196
  forSeamlessAacConcatenation: seamlessAudio,
197
197
  compositionStart: params.compositionStart,
198
+ onBrowserDownload: () => {
199
+ throw new Error('Should not download a browser in Lambda');
200
+ },
198
201
  })
199
202
  .then(({ slowestFrames }) => {
200
203
  renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel: params.logLevel }, `Slowest frames:`);
@@ -98,6 +98,9 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
98
98
  logLevel: lambdaParams.logLevel,
99
99
  server,
100
100
  offthreadVideoCacheSizeInBytes: lambdaParams.offthreadVideoCacheSizeInBytes,
101
+ onBrowserDownload: () => {
102
+ throw new Error('Should not download a browser in Lambda');
103
+ },
101
104
  });
102
105
  const renderMetadata = {
103
106
  startedDate: Date.now(),
@@ -134,6 +137,9 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
134
137
  downloadBehavior: null,
135
138
  customCredentials: null,
136
139
  });
140
+ const onBrowserDownload = () => {
141
+ throw new Error('Should not download a browser in Lambda');
142
+ };
137
143
  await renderer_1.RenderInternals.internalRenderStill({
138
144
  composition,
139
145
  output: outputPath,
@@ -166,6 +172,7 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
166
172
  }).serializedString,
167
173
  offthreadVideoCacheSizeInBytes: lambdaParams.offthreadVideoCacheSizeInBytes,
168
174
  binariesDirectory: null,
175
+ onBrowserDownload,
169
176
  });
170
177
  const { key, renderBucketName, customCredentials } = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName, (0, expected_out_name_1.getCredentialsFromOutName)(lambdaParams.outName));
171
178
  const { size } = await node_fs_1.default.promises.stat(outputPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "4.0.136",
3
+ "version": "4.0.137",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,10 +26,10 @@
26
26
  "aws-policies": "^1.0.1",
27
27
  "mime-types": "2.1.34",
28
28
  "zod": "3.22.3",
29
- "@remotion/renderer": "4.0.136",
30
- "@remotion/bundler": "4.0.136",
31
- "remotion": "4.0.136",
32
- "@remotion/cli": "4.0.136"
29
+ "@remotion/renderer": "4.0.137",
30
+ "remotion": "4.0.137",
31
+ "@remotion/bundler": "4.0.137",
32
+ "@remotion/cli": "4.0.137"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@jonny/eslint-config": "3.0.276",
@@ -44,11 +44,11 @@
44
44
  "ts-node": "^10.8.0",
45
45
  "vitest": "0.31.1",
46
46
  "zip-lib": "^0.7.2",
47
- "@remotion/bundler": "4.0.136",
48
- "@remotion/compositor-linux-arm64-gnu": "4.0.136"
47
+ "@remotion/bundler": "4.0.137",
48
+ "@remotion/compositor-linux-arm64-gnu": "4.0.137"
49
49
  },
50
50
  "peerDependencies": {
51
- "@remotion/bundler": "4.0.136"
51
+ "@remotion/bundler": "4.0.137"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
Binary file