@remotion/lambda 4.0.261 → 4.0.263

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.
@@ -61,10 +61,10 @@ const uploadDir = async ({ bucket, region, localDir, onProgress, keyPrefix, priv
61
61
  : privacy === 'private'
62
62
  ? 'private'
63
63
  : 'public-read';
64
- const paralellUploads3 = new lib_storage_1.Upload({
64
+ const parallelUploadsS3 = new lib_storage_1.Upload({
65
65
  client,
66
- queueSize: 4,
67
- partSize: 5 * 1024 * 1024,
66
+ queueSize: 2,
67
+ partSize: 40 * 1024 * 1024,
68
68
  params: {
69
69
  Key,
70
70
  Bucket: bucket,
@@ -73,11 +73,11 @@ const uploadDir = async ({ bucket, region, localDir, onProgress, keyPrefix, priv
73
73
  ContentType,
74
74
  },
75
75
  });
76
- paralellUploads3.on('httpUploadProgress', (progress) => {
76
+ parallelUploadsS3.on('httpUploadProgress', (progress) => {
77
77
  var _a;
78
78
  progresses[filePath.name] = (_a = progress.loaded) !== null && _a !== void 0 ? _a : 0;
79
79
  });
80
- const prom = await paralellUploads3.done();
80
+ const prom = await parallelUploadsS3.done();
81
81
  return prom;
82
82
  };
83
83
  const uploadWithRetry = async (filePath) => {
@@ -24,7 +24,7 @@ const quit_1 = require("../../helpers/quit");
24
24
  const log_1 = require("../../log");
25
25
  const progress_1 = require("./progress");
26
26
  exports.RENDER_COMMAND = 'render';
27
- const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, } = client_1.BrowserSafeApis.options;
27
+ const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, } = client_1.BrowserSafeApis.options;
28
28
  const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
29
29
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
30
30
  const serveUrl = args[0];
@@ -50,6 +50,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
50
50
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
51
51
  commandLine: cli_1.CliInternals.parsedCli,
52
52
  }).value;
53
+ const offthreadVideoThreads = offthreadVideoThreadsOption.getValue({
54
+ commandLine: cli_1.CliInternals.parsedCli,
55
+ }).value;
53
56
  const scale = scaleOption.getValue({
54
57
  commandLine: cli_1.CliInternals.parsedCli,
55
58
  }).value;
@@ -120,7 +123,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
120
123
  throw Error('Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.');
121
124
  }
122
125
  const server = await renderer_1.RenderInternals.prepareServer({
123
- concurrency: 1,
126
+ offthreadVideoThreads: 1,
124
127
  indent: false,
125
128
  port: config_1.ConfigInternals.getRendererPortFromConfigFileAndCliFlag(),
126
129
  remotionRoot,
@@ -152,6 +155,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
152
155
  width,
153
156
  server,
154
157
  offthreadVideoCacheSizeInBytes,
158
+ offthreadVideoThreads,
155
159
  binariesDirectory,
156
160
  onBrowserDownload: cli_1.CliInternals.defaultBrowserDownloadProgress({
157
161
  indent,
@@ -235,6 +239,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
235
239
  colorSpace,
236
240
  downloadBehavior: { type: 'play-in-browser' },
237
241
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
242
+ offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
238
243
  x264Preset: x264Preset !== null && x264Preset !== void 0 ? x264Preset : null,
239
244
  preferLossless,
240
245
  indent: false,
@@ -21,7 +21,7 @@ const find_function_name_1 = require("../helpers/find-function-name");
21
21
  const quit_1 = require("../helpers/quit");
22
22
  const log_1 = require("../log");
23
23
  const progress_1 = require("./render/progress");
24
- const { offthreadVideoCacheSizeInBytesOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, } = client_1.BrowserSafeApis.options;
24
+ const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, } = client_1.BrowserSafeApis.options;
25
25
  const { parsedCli, determineFinalStillImageFormat, chalk, getCliOptions, formatBytes, getCompositionWithDimensionOverride, } = cli_1.CliInternals;
26
26
  exports.STILL_COMMAND = 'still';
27
27
  const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }) => {
@@ -62,6 +62,9 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
62
62
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
63
63
  commandLine: parsedCli,
64
64
  }).value;
65
+ const offthreadVideoThreads = offthreadVideoThreadsOption.getValue({
66
+ commandLine: parsedCli,
67
+ }).value;
65
68
  const binariesDirectory = binariesDirectoryOption.getValue({
66
69
  commandLine: parsedCli,
67
70
  }).value;
@@ -72,7 +75,7 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
72
75
  throw Error('Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.');
73
76
  }
74
77
  const server = await renderer_1.RenderInternals.prepareServer({
75
- concurrency: 1,
78
+ offthreadVideoThreads: 1,
76
79
  indent: false,
77
80
  port: config_1.ConfigInternals.getRendererPortFromConfigFileAndCliFlag(),
78
81
  remotionRoot,
@@ -104,6 +107,7 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
104
107
  width,
105
108
  server,
106
109
  offthreadVideoCacheSizeInBytes,
110
+ offthreadVideoThreads,
107
111
  binariesDirectory,
108
112
  onBrowserDownload: cli_1.CliInternals.defaultBrowserDownloadProgress({
109
113
  indent,
package/dist/cli/log.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare const Log: {
2
- trace: (options: import("@remotion/renderer").LogOptions & {
2
+ trace: (options: import("@remotion/renderer/dist/logger").LogOptions & {
3
3
  tag?: string;
4
4
  }, ...args: Parameters<typeof console.log>) => boolean | void;
5
5
  verbose: (options: import("@remotion/renderer").LogOptions & {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.261",
6
+ "version": "4.0.263",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -21,13 +21,13 @@
21
21
  "@aws-sdk/lib-storage": "3.738.0",
22
22
  "@smithy/abort-controller": "4.0.1",
23
23
  "zod": "3.22.3",
24
- "@remotion/bundler": "4.0.261",
25
- "@remotion/renderer": "4.0.261",
26
- "@remotion/lambda-client": "4.0.261",
27
- "@remotion/serverless": "4.0.261",
28
- "remotion": "4.0.261",
29
- "@remotion/cli": "4.0.261",
30
- "@remotion/streaming": "4.0.261"
24
+ "@remotion/bundler": "4.0.263",
25
+ "@remotion/cli": "4.0.263",
26
+ "@remotion/renderer": "4.0.263",
27
+ "@remotion/serverless": "4.0.263",
28
+ "remotion": "4.0.263",
29
+ "@remotion/lambda-client": "4.0.263",
30
+ "@remotion/streaming": "4.0.263"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/express": "^5.0.0",
@@ -40,12 +40,12 @@
40
40
  "next": "15.1.6",
41
41
  "pureimage": "0.4.13",
42
42
  "zip-lib": "^0.7.2",
43
- "@remotion/bundler": "4.0.261",
44
- "@remotion/compositor-linux-arm64-gnu": "4.0.261",
45
- "@remotion/eslint-config-internal": "4.0.261"
43
+ "@remotion/bundler": "4.0.263",
44
+ "@remotion/eslint-config-internal": "4.0.263",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.263"
46
46
  },
47
47
  "peerDependencies": {
48
- "@remotion/bundler": "4.0.261"
48
+ "@remotion/bundler": "4.0.263"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
Binary file