@remotion/lambda 4.0.424 → 4.0.426

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.
@@ -24,6 +24,7 @@ type OptionalParameters = {
24
24
  keyboardShortcutsEnabled?: boolean;
25
25
  askAIEnabled?: boolean;
26
26
  experimentalClientSideRenderingEnabled?: boolean;
27
+ rspack?: boolean;
27
28
  };
28
29
  privacy: 'public' | 'no-acl';
29
30
  gitSource: GitSource | null;
@@ -14,7 +14,7 @@ const get_s3_operations_1 = require("../shared/get-s3-operations");
14
14
  const validate_site_name_1 = require("../shared/validate-site-name");
15
15
  const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options, region, privacy, gitSource, throwIfSiteExists, providerSpecifics, forcePathStyle, fullClientSpecifics, requestHandler, }) => {
16
16
  var _a, _b;
17
- var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
17
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  lambda_client_1.LambdaClientInternals.validateAwsRegion(region);
19
19
  (0, serverless_1.validateBucketName)({
20
20
  bucketName,
@@ -68,6 +68,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
68
68
  experimentalClientSideRenderingEnabled: (_k = options === null || options === void 0 ? void 0 : options.experimentalClientSideRenderingEnabled) !== null && _k !== void 0 ? _k : false,
69
69
  keyboardShortcutsEnabled: (_l = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _l !== void 0 ? _l : true,
70
70
  renderDefaults: null,
71
+ rspack: (_m = options === null || options === void 0 ? void 0 : options.rspack) !== null && _m !== void 0 ? _m : false,
71
72
  }),
72
73
  ]);
73
74
  if (throwIfSiteExists && files.length > 0) {
@@ -96,7 +97,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
96
97
  bucket: bucketName,
97
98
  region,
98
99
  localDir: bundled,
99
- onProgress: (_m = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _m !== void 0 ? _m : (() => undefined),
100
+ onProgress: (_o = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _o !== void 0 ? _o : (() => undefined),
100
101
  keyPrefix: subFolder,
101
102
  privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
102
103
  toUpload,
@@ -15,8 +15,6 @@ type LambdaCommandLineOptions = {
15
15
  f: boolean;
16
16
  ['default-only']: boolean;
17
17
  ['site-name']: string | undefined;
18
- ['disable-chunk-optimization']: boolean;
19
- ['save-browser-logs']: boolean;
20
18
  ['disable-cloudwatch']: boolean;
21
19
  [BrowserSafeApis.options.enableLambdaInsights.cliFlag]: boolean;
22
20
  ['max-retries']?: number;
package/dist/cli/args.js CHANGED
@@ -2,8 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.forceFlagProvided = exports.parsedLambdaCli = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
+ const LambdaBooleanFlags = [
6
+ ...cli_1.CliInternals.BooleanFlags,
7
+ 'force',
8
+ 'disable-cloudwatch',
9
+ 'enable-lambda-insights',
10
+ 'yes',
11
+ 'y',
12
+ 'default-only',
13
+ 'compatible-only',
14
+ 'force-path-style',
15
+ ];
5
16
  exports.parsedLambdaCli = cli_1.CliInternals.minimist(process.argv.slice(2), {
6
- boolean: cli_1.CliInternals.BooleanFlags,
17
+ boolean: LambdaBooleanFlags,
7
18
  string: ['_'],
8
19
  });
9
20
  exports.forceFlagProvided = exports.parsedLambdaCli.f ||
@@ -11,7 +11,7 @@ const find_function_name_1 = require("../../helpers/find-function-name");
11
11
  const quit_1 = require("../../helpers/quit");
12
12
  const log_1 = require("../../log");
13
13
  exports.COMPOSITIONS_COMMAND = 'compositions';
14
- const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, darkModeOption, } = client_1.BrowserSafeApis.options;
14
+ const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, darkModeOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
15
15
  const compositionsCommand = async ({ args, logLevel, providerSpecifics, }) => {
16
16
  const serveUrl = args[0];
17
17
  if (!serveUrl) {
@@ -21,11 +21,20 @@ const compositionsCommand = async ({ args, logLevel, providerSpecifics, }) => {
21
21
  log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.COMPOSITIONS_COMMAND} <serve-url>`);
22
22
  (0, quit_1.quit)(1);
23
23
  }
24
- const { envVariables, inputProps, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
24
+ const { envVariables, inputProps } = cli_1.CliInternals.getCliOptions({
25
25
  isStill: false,
26
26
  logLevel,
27
27
  indent: false,
28
28
  });
29
+ const userAgent = userAgentOption.getValue({
30
+ commandLine: cli_1.CliInternals.parsedCli,
31
+ }).value;
32
+ const disableWebSecurity = disableWebSecurityOption.getValue({
33
+ commandLine: cli_1.CliInternals.parsedCli,
34
+ }).value;
35
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
36
+ commandLine: cli_1.CliInternals.parsedCli,
37
+ }).value;
29
38
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
30
39
  commandLine: cli_1.CliInternals.parsedCli,
31
40
  }).value;
@@ -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, offthreadVideoThreadsOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, mutedOption, colorSpaceOption, deleteAfterOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, overwriteOption, binariesDirectoryOption, preferLosslessOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, } = 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, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, audioCodecOption, videoCodecOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = 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, _o, _p, _q;
30
30
  const serveUrl = args[0];
@@ -36,11 +36,44 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
36
36
  (0, quit_1.quit)(1);
37
37
  }
38
38
  const region = (0, get_aws_region_1.getAwsRegion)();
39
- const { envVariables, frameRange, inputProps, pixelFormat, proResProfile, everyNthFrame, height, width, browserExecutable, ignoreCertificateErrors, userAgent, disableWebSecurity, } = cli_1.CliInternals.getCliOptions({
39
+ const { envVariables, frameRange, inputProps } = cli_1.CliInternals.getCliOptions({
40
40
  isStill: false,
41
41
  logLevel,
42
42
  indent: false,
43
43
  });
44
+ const height = overrideHeightOption.getValue({
45
+ commandLine: cli_1.CliInternals.parsedCli,
46
+ }).value;
47
+ const width = overrideWidthOption.getValue({
48
+ commandLine: cli_1.CliInternals.parsedCli,
49
+ }).value;
50
+ const fps = overrideFpsOption.getValue({
51
+ commandLine: cli_1.CliInternals.parsedCli,
52
+ }).value;
53
+ const durationInFrames = overrideDurationOption.getValue({
54
+ commandLine: cli_1.CliInternals.parsedCli,
55
+ }).value;
56
+ const pixelFormat = pixelFormatOption.getValue({
57
+ commandLine: cli_1.CliInternals.parsedCli,
58
+ }).value;
59
+ const browserExecutable = browserExecutableOption.getValue({
60
+ commandLine: cli_1.CliInternals.parsedCli,
61
+ }).value;
62
+ const everyNthFrame = everyNthFrameOption.getValue({
63
+ commandLine: cli_1.CliInternals.parsedCli,
64
+ }).value;
65
+ const proResProfile = proResProfileOption.getValue({
66
+ commandLine: cli_1.CliInternals.parsedCli,
67
+ }).value;
68
+ const userAgent = userAgentOption.getValue({
69
+ commandLine: cli_1.CliInternals.parsedCli,
70
+ }).value;
71
+ const disableWebSecurity = disableWebSecurityOption.getValue({
72
+ commandLine: cli_1.CliInternals.parsedCli,
73
+ }).value;
74
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
75
+ commandLine: cli_1.CliInternals.parsedCli,
76
+ }).value;
44
77
  const x264Preset = x264Option.getValue({
45
78
  commandLine: cli_1.CliInternals.parsedCli,
46
79
  }).value;
@@ -113,6 +146,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
113
146
  const darkMode = darkModeOption.getValue({
114
147
  commandLine: cli_1.CliInternals.parsedCli,
115
148
  }).value;
149
+ const audioCodec = audioCodecOption.getValue({
150
+ commandLine: cli_1.CliInternals.parsedCli,
151
+ }).value;
116
152
  const chromiumOptions = {
117
153
  disableWebSecurity,
118
154
  enableMultiProcessOnLinux,
@@ -148,6 +184,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
148
184
  chromiumOptions,
149
185
  envVariables,
150
186
  height,
187
+ width,
188
+ fps,
189
+ durationInFrames,
151
190
  indent,
152
191
  serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
153
192
  indent: undefined,
@@ -159,7 +198,6 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
159
198
  serveUrlOrWebpackUrl: serveUrl,
160
199
  timeoutInMilliseconds,
161
200
  logLevel,
162
- width,
163
201
  server,
164
202
  offthreadVideoCacheSizeInBytes,
165
203
  offthreadVideoThreads,
@@ -177,7 +215,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
177
215
  }
178
216
  const outName = args_1.parsedLambdaCli['out-name'];
179
217
  const downloadName = (_a = args[2]) !== null && _a !== void 0 ? _a : null;
180
- const { value: codec, source: reason } = client_1.BrowserSafeApis.options.videoCodecOption.getValue({
218
+ const { value: codec, source: reason } = videoCodecOption.getValue({
181
219
  commandLine: cli_1.CliInternals.parsedCli,
182
220
  }, {
183
221
  downloadName,
@@ -233,6 +271,8 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
233
271
  encodingMaxRate,
234
272
  forceHeight: height,
235
273
  forceWidth: width,
274
+ forceFps: fps,
275
+ forceDurationInFrames: durationInFrames,
236
276
  webhook: args_1.parsedLambdaCli.webhook
237
277
  ? {
238
278
  url: args_1.parsedLambdaCli.webhook,
@@ -242,7 +282,7 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
242
282
  : null,
243
283
  rendererFunctionName: (_k = args_1.parsedLambdaCli['renderer-function-name']) !== null && _k !== void 0 ? _k : null,
244
284
  forceBucketName: (_l = args_1.parsedLambdaCli['force-bucket-name']) !== null && _l !== void 0 ? _l : null,
245
- audioCodec: cli_1.CliInternals.parsedCli[client_1.BrowserSafeApis.options.audioCodecOption.cliFlag],
285
+ audioCodec,
246
286
  deleteAfter: deleteAfter !== null && deleteAfter !== void 0 ? deleteAfter : null,
247
287
  colorSpace,
248
288
  downloadBehavior: { type: 'play-in-browser' },
@@ -153,7 +153,9 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementatio
153
153
  };
154
154
  updateProgress(false);
155
155
  },
156
- enableCaching: config_1.ConfigInternals.getWebpackCaching(),
156
+ enableCaching: client_1.BrowserSafeApis.options.bundleCacheOption.getValue({
157
+ commandLine: cli_1.CliInternals.parsedCli,
158
+ }).value,
157
159
  webpackOverride: (_c = config_1.ConfigInternals.getWebpackOverrideFn()) !== null && _c !== void 0 ? _c : ((f) => f),
158
160
  bypassBucketNameValidation: Boolean(args_1.parsedLambdaCli['force-bucket-name']),
159
161
  askAIEnabled,
@@ -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, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
24
+ const { offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, deleteAfterOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = 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, }) => {
@@ -34,11 +34,29 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
34
34
  log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${exports.STILL_COMMAND} <serve-url> <composition-id> [output-location]`);
35
35
  (0, quit_1.quit)(1);
36
36
  }
37
- const { envVariables, inputProps, stillFrame, height, width, browserExecutable, userAgent, disableWebSecurity, ignoreCertificateErrors, } = getCliOptions({
37
+ const { envVariables, inputProps, stillFrame } = getCliOptions({
38
38
  isStill: true,
39
39
  logLevel,
40
40
  indent: false,
41
41
  });
42
+ const height = overrideHeightOption.getValue({
43
+ commandLine: parsedCli,
44
+ }).value;
45
+ const width = overrideWidthOption.getValue({ commandLine: parsedCli }).value;
46
+ const fps = overrideFpsOption.getValue({ commandLine: parsedCli }).value;
47
+ const durationInFrames = overrideDurationOption.getValue({
48
+ commandLine: parsedCli,
49
+ }).value;
50
+ const browserExecutable = browserExecutableOption.getValue({
51
+ commandLine: parsedCli,
52
+ }).value;
53
+ const userAgent = userAgentOption.getValue({ commandLine: parsedCli }).value;
54
+ const disableWebSecurity = disableWebSecurityOption.getValue({
55
+ commandLine: parsedCli,
56
+ }).value;
57
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
58
+ commandLine: parsedCli,
59
+ }).value;
42
60
  const region = (0, get_aws_region_1.getAwsRegion)();
43
61
  let composition = args[1];
44
62
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
@@ -110,6 +128,8 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
110
128
  timeoutInMilliseconds,
111
129
  height,
112
130
  width,
131
+ fps,
132
+ durationInFrames,
113
133
  server,
114
134
  offthreadVideoCacheSizeInBytes,
115
135
  offthreadVideoThreads,
@@ -170,6 +190,8 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
170
190
  scale,
171
191
  forceHeight: height,
172
192
  forceWidth: width,
193
+ forceFps: fps,
194
+ forceDurationInFrames: durationInFrames,
173
195
  onInit: ({ cloudWatchLogs, lambdaInsightsUrl }) => {
174
196
  log_1.Log.verbose({ indent: false, logLevel }, `${cli_1.CliInternals.makeHyperlink({
175
197
  text: 'CloudWatch Logs',
@@ -8604,12 +8604,12 @@ var require_package = __commonJS((exports, module) => {
8604
8604
  url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
8605
8605
  },
8606
8606
  name: "@remotion/lambda",
8607
- version: "4.0.424",
8607
+ version: "4.0.426",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
8611
8611
  scripts: {
8612
- formatting: "prettier --experimental-cli src --check",
8612
+ formatting: "prettier src --check",
8613
8613
  lint: "eslint src",
8614
8614
  testlambda: "exit 0",
8615
8615
  test: "bun test src/test/unit",
@@ -10205,7 +10205,8 @@ var mandatoryDeploySite = async ({
10205
10205
  audioLatencyHint: null,
10206
10206
  experimentalClientSideRenderingEnabled: options?.experimentalClientSideRenderingEnabled ?? false,
10207
10207
  keyboardShortcutsEnabled: options?.keyboardShortcutsEnabled ?? true,
10208
- renderDefaults: null
10208
+ renderDefaults: null,
10209
+ rspack: options?.rspack ?? false
10209
10210
  })
10210
10211
  ]);
10211
10212
  if (throwIfSiteExists && files.length > 0) {
@@ -10559,8 +10560,19 @@ import {
10559
10560
 
10560
10561
  // src/cli/args.ts
10561
10562
  import { CliInternals } from "@remotion/cli";
10563
+ var LambdaBooleanFlags = [
10564
+ ...CliInternals.BooleanFlags,
10565
+ "force",
10566
+ "disable-cloudwatch",
10567
+ "enable-lambda-insights",
10568
+ "yes",
10569
+ "y",
10570
+ "default-only",
10571
+ "compatible-only",
10572
+ "force-path-style"
10573
+ ];
10562
10574
  var parsedLambdaCli = CliInternals.minimist(process.argv.slice(2), {
10563
- boolean: CliInternals.BooleanFlags,
10575
+ boolean: LambdaBooleanFlags,
10564
10576
  string: ["_"]
10565
10577
  });
10566
10578
  var forceFlagProvided = parsedLambdaCli.f || parsedLambdaCli.force || parsedLambdaCli.yes || parsedLambdaCli.y;
@@ -11072,7 +11084,10 @@ var {
11072
11084
  glOption,
11073
11085
  delayRenderTimeoutInMillisecondsOption,
11074
11086
  headlessOption,
11075
- darkModeOption
11087
+ darkModeOption,
11088
+ userAgentOption,
11089
+ disableWebSecurityOption,
11090
+ ignoreCertificateErrorsOption
11076
11091
  } = BrowserSafeApis.options;
11077
11092
  var compositionsCommand = async ({
11078
11093
  args,
@@ -11087,17 +11102,20 @@ var compositionsCommand = async ({
11087
11102
  Log.info({ indent: false, logLevel }, `${BINARY_NAME4} ${COMPOSITIONS_COMMAND} <serve-url>`);
11088
11103
  quit(1);
11089
11104
  }
11090
- const {
11091
- envVariables,
11092
- inputProps,
11093
- ignoreCertificateErrors,
11094
- userAgent,
11095
- disableWebSecurity
11096
- } = CliInternals8.getCliOptions({
11105
+ const { envVariables, inputProps } = CliInternals8.getCliOptions({
11097
11106
  isStill: false,
11098
11107
  logLevel,
11099
11108
  indent: false
11100
11109
  });
11110
+ const userAgent = userAgentOption.getValue({
11111
+ commandLine: CliInternals8.parsedCli
11112
+ }).value;
11113
+ const disableWebSecurity = disableWebSecurityOption.getValue({
11114
+ commandLine: CliInternals8.parsedCli
11115
+ }).value;
11116
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
11117
+ commandLine: CliInternals8.parsedCli
11118
+ }).value;
11101
11119
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
11102
11120
  commandLine: CliInternals8.parsedCli
11103
11121
  }).value;
@@ -11622,7 +11640,20 @@ var {
11622
11640
  preferLosslessOption,
11623
11641
  metadataOption,
11624
11642
  mediaCacheSizeInBytesOption,
11625
- darkModeOption: darkModeOption2
11643
+ darkModeOption: darkModeOption2,
11644
+ pixelFormatOption,
11645
+ browserExecutableOption,
11646
+ everyNthFrameOption,
11647
+ proResProfileOption,
11648
+ userAgentOption: userAgentOption2,
11649
+ disableWebSecurityOption: disableWebSecurityOption2,
11650
+ ignoreCertificateErrorsOption: ignoreCertificateErrorsOption2,
11651
+ audioCodecOption,
11652
+ videoCodecOption,
11653
+ overrideHeightOption,
11654
+ overrideWidthOption,
11655
+ overrideFpsOption,
11656
+ overrideDurationOption
11626
11657
  } = BrowserSafeApis3.options;
11627
11658
  var renderCommand = async ({
11628
11659
  args,
@@ -11639,24 +11670,44 @@ var renderCommand = async ({
11639
11670
  quit(1);
11640
11671
  }
11641
11672
  const region = getAwsRegion();
11642
- const {
11643
- envVariables,
11644
- frameRange,
11645
- inputProps,
11646
- pixelFormat,
11647
- proResProfile,
11648
- everyNthFrame,
11649
- height,
11650
- width,
11651
- browserExecutable,
11652
- ignoreCertificateErrors,
11653
- userAgent,
11654
- disableWebSecurity
11655
- } = CliInternals14.getCliOptions({
11673
+ const { envVariables, frameRange, inputProps } = CliInternals14.getCliOptions({
11656
11674
  isStill: false,
11657
11675
  logLevel,
11658
11676
  indent: false
11659
11677
  });
11678
+ const height = overrideHeightOption.getValue({
11679
+ commandLine: CliInternals14.parsedCli
11680
+ }).value;
11681
+ const width = overrideWidthOption.getValue({
11682
+ commandLine: CliInternals14.parsedCli
11683
+ }).value;
11684
+ const fps = overrideFpsOption.getValue({
11685
+ commandLine: CliInternals14.parsedCli
11686
+ }).value;
11687
+ const durationInFrames = overrideDurationOption.getValue({
11688
+ commandLine: CliInternals14.parsedCli
11689
+ }).value;
11690
+ const pixelFormat = pixelFormatOption.getValue({
11691
+ commandLine: CliInternals14.parsedCli
11692
+ }).value;
11693
+ const browserExecutable = browserExecutableOption.getValue({
11694
+ commandLine: CliInternals14.parsedCli
11695
+ }).value;
11696
+ const everyNthFrame = everyNthFrameOption.getValue({
11697
+ commandLine: CliInternals14.parsedCli
11698
+ }).value;
11699
+ const proResProfile = proResProfileOption.getValue({
11700
+ commandLine: CliInternals14.parsedCli
11701
+ }).value;
11702
+ const userAgent = userAgentOption2.getValue({
11703
+ commandLine: CliInternals14.parsedCli
11704
+ }).value;
11705
+ const disableWebSecurity = disableWebSecurityOption2.getValue({
11706
+ commandLine: CliInternals14.parsedCli
11707
+ }).value;
11708
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption2.getValue({
11709
+ commandLine: CliInternals14.parsedCli
11710
+ }).value;
11660
11711
  const x264Preset = x264Option.getValue({
11661
11712
  commandLine: CliInternals14.parsedCli
11662
11713
  }).value;
@@ -11729,6 +11780,9 @@ var renderCommand = async ({
11729
11780
  const darkMode = darkModeOption2.getValue({
11730
11781
  commandLine: CliInternals14.parsedCli
11731
11782
  }).value;
11783
+ const audioCodec = audioCodecOption.getValue({
11784
+ commandLine: CliInternals14.parsedCli
11785
+ }).value;
11732
11786
  const chromiumOptions = {
11733
11787
  disableWebSecurity,
11734
11788
  enableMultiProcessOnLinux,
@@ -11765,6 +11819,9 @@ var renderCommand = async ({
11765
11819
  chromiumOptions,
11766
11820
  envVariables,
11767
11821
  height,
11822
+ width,
11823
+ fps,
11824
+ durationInFrames,
11768
11825
  indent,
11769
11826
  serializedInputPropsWithCustomSchema: NoReactInternals2.serializeJSONWithSpecialTypes({
11770
11827
  indent: undefined,
@@ -11776,7 +11833,6 @@ var renderCommand = async ({
11776
11833
  serveUrlOrWebpackUrl: serveUrl,
11777
11834
  timeoutInMilliseconds,
11778
11835
  logLevel,
11779
- width,
11780
11836
  server,
11781
11837
  offthreadVideoCacheSizeInBytes,
11782
11838
  offthreadVideoThreads,
@@ -11796,7 +11852,7 @@ var renderCommand = async ({
11796
11852
  }
11797
11853
  const outName = parsedLambdaCli["out-name"];
11798
11854
  const downloadName = args[2] ?? null;
11799
- const { value: codec, source: reason } = BrowserSafeApis3.options.videoCodecOption.getValue({
11855
+ const { value: codec, source: reason } = videoCodecOption.getValue({
11800
11856
  commandLine: CliInternals14.parsedCli
11801
11857
  }, {
11802
11858
  downloadName,
@@ -11852,6 +11908,8 @@ var renderCommand = async ({
11852
11908
  encodingMaxRate,
11853
11909
  forceHeight: height,
11854
11910
  forceWidth: width,
11911
+ forceFps: fps,
11912
+ forceDurationInFrames: durationInFrames,
11855
11913
  webhook: parsedLambdaCli.webhook ? {
11856
11914
  url: parsedLambdaCli.webhook,
11857
11915
  secret: parsedLambdaCli["webhook-secret"] ?? null,
@@ -11859,7 +11917,7 @@ var renderCommand = async ({
11859
11917
  } : null,
11860
11918
  rendererFunctionName: parsedLambdaCli["renderer-function-name"] ?? null,
11861
11919
  forceBucketName: parsedLambdaCli["force-bucket-name"] ?? null,
11862
- audioCodec: CliInternals14.parsedCli[BrowserSafeApis3.options.audioCodecOption.cliFlag],
11920
+ audioCodec,
11863
11921
  deleteAfter: deleteAfter ?? null,
11864
11922
  colorSpace,
11865
11923
  downloadBehavior: { type: "play-in-browser" },
@@ -12259,7 +12317,9 @@ var sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation)
12259
12317
  };
12260
12318
  updateProgress(false);
12261
12319
  },
12262
- enableCaching: ConfigInternals2.getWebpackCaching(),
12320
+ enableCaching: BrowserSafeApis4.options.bundleCacheOption.getValue({
12321
+ commandLine: CliInternals16.parsedCli
12322
+ }).value,
12263
12323
  webpackOverride: ConfigInternals2.getWebpackOverrideFn() ?? ((f) => f),
12264
12324
  bypassBucketNameValidation: Boolean(parsedLambdaCli["force-bucket-name"]),
12265
12325
  askAIEnabled,
@@ -12515,7 +12575,15 @@ var {
12515
12575
  delayRenderTimeoutInMillisecondsOption: delayRenderTimeoutInMillisecondsOption3,
12516
12576
  binariesDirectoryOption: binariesDirectoryOption2,
12517
12577
  mediaCacheSizeInBytesOption: mediaCacheSizeInBytesOption2,
12518
- darkModeOption: darkModeOption3
12578
+ darkModeOption: darkModeOption3,
12579
+ browserExecutableOption: browserExecutableOption2,
12580
+ userAgentOption: userAgentOption3,
12581
+ disableWebSecurityOption: disableWebSecurityOption3,
12582
+ ignoreCertificateErrorsOption: ignoreCertificateErrorsOption3,
12583
+ overrideHeightOption: overrideHeightOption2,
12584
+ overrideWidthOption: overrideWidthOption2,
12585
+ overrideFpsOption: overrideFpsOption2,
12586
+ overrideDurationOption: overrideDurationOption2
12519
12587
  } = BrowserSafeApis5.options;
12520
12588
  var {
12521
12589
  parsedCli,
@@ -12540,21 +12608,29 @@ var stillCommand = async ({
12540
12608
  Log.info({ indent: false, logLevel }, `${BINARY_NAME12} ${STILL_COMMAND} <serve-url> <composition-id> [output-location]`);
12541
12609
  quit(1);
12542
12610
  }
12543
- const {
12544
- envVariables,
12545
- inputProps,
12546
- stillFrame,
12547
- height,
12548
- width,
12549
- browserExecutable,
12550
- userAgent,
12551
- disableWebSecurity,
12552
- ignoreCertificateErrors
12553
- } = getCliOptions({
12611
+ const { envVariables, inputProps, stillFrame } = getCliOptions({
12554
12612
  isStill: true,
12555
12613
  logLevel,
12556
12614
  indent: false
12557
12615
  });
12616
+ const height = overrideHeightOption2.getValue({
12617
+ commandLine: parsedCli
12618
+ }).value;
12619
+ const width = overrideWidthOption2.getValue({ commandLine: parsedCli }).value;
12620
+ const fps = overrideFpsOption2.getValue({ commandLine: parsedCli }).value;
12621
+ const durationInFrames = overrideDurationOption2.getValue({
12622
+ commandLine: parsedCli
12623
+ }).value;
12624
+ const browserExecutable = browserExecutableOption2.getValue({
12625
+ commandLine: parsedCli
12626
+ }).value;
12627
+ const userAgent = userAgentOption3.getValue({ commandLine: parsedCli }).value;
12628
+ const disableWebSecurity = disableWebSecurityOption3.getValue({
12629
+ commandLine: parsedCli
12630
+ }).value;
12631
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption3.getValue({
12632
+ commandLine: parsedCli
12633
+ }).value;
12558
12634
  const region = getAwsRegion();
12559
12635
  let composition = args[1];
12560
12636
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption3.getValue({
@@ -12627,6 +12703,8 @@ var stillCommand = async ({
12627
12703
  timeoutInMilliseconds,
12628
12704
  height,
12629
12705
  width,
12706
+ fps,
12707
+ durationInFrames,
12630
12708
  server,
12631
12709
  offthreadVideoCacheSizeInBytes,
12632
12710
  offthreadVideoThreads,
@@ -12689,6 +12767,8 @@ var stillCommand = async ({
12689
12767
  scale,
12690
12768
  forceHeight: height,
12691
12769
  forceWidth: width,
12770
+ forceFps: fps,
12771
+ forceDurationInFrames: durationInFrames,
12692
12772
  onInit: ({ cloudWatchLogs, lambdaInsightsUrl }) => {
12693
12773
  Log.verbose({ indent: false, logLevel }, `${CliInternals21.makeHyperlink({
12694
12774
  text: "CloudWatch Logs",
package/package.json CHANGED
@@ -3,12 +3,12 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.424",
6
+ "version": "4.0.426",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
10
10
  "scripts": {
11
- "formatting": "prettier --experimental-cli src --check",
11
+ "formatting": "prettier src --check",
12
12
  "lint": "eslint src",
13
13
  "testlambda": "exit 0",
14
14
  "test": "bun test src/test/unit",
@@ -28,22 +28,22 @@
28
28
  "@aws-sdk/client-cloudwatch-logs": "3.986.0",
29
29
  "@aws-sdk/client-service-quotas": "3.986.0",
30
30
  "@aws-sdk/lib-storage": "3.986.0",
31
- "@remotion/bundler": "4.0.424",
32
- "@remotion/cli": "4.0.424",
33
- "@remotion/lambda-client": "4.0.424",
34
- "@remotion/renderer": "4.0.424",
35
- "@remotion/serverless": "4.0.424",
36
- "@remotion/streaming": "4.0.424",
31
+ "@remotion/bundler": "4.0.426",
32
+ "@remotion/cli": "4.0.426",
33
+ "@remotion/lambda-client": "4.0.426",
34
+ "@remotion/renderer": "4.0.426",
35
+ "@remotion/serverless": "4.0.426",
36
+ "@remotion/streaming": "4.0.426",
37
37
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.424",
39
- "zod": "3.22.3"
38
+ "remotion": "4.0.426",
39
+ "zod": "4.3.6"
40
40
  },
41
41
  "devDependencies": {
42
- "@remotion/bundler": "4.0.424",
42
+ "@remotion/bundler": "4.0.426",
43
43
  "@types/express": "^5.0.0",
44
44
  "express": "4.21.0",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.424",
46
- "@remotion/eslint-config-internal": "4.0.424",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.426",
46
+ "@remotion/eslint-config-internal": "4.0.426",
47
47
  "mime-types": "2.1.34",
48
48
  "@types/mime-types": "2.1.1",
49
49
  "@types/minimist": "1.2.2",
@@ -55,7 +55,7 @@
55
55
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@remotion/bundler": "4.0.424"
58
+ "@remotion/bundler": "4.0.426"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"
Binary file