@remotion/lambda 4.0.424 → 4.0.425

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.
@@ -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, } = 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,32 @@ 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, height, width, fps, durationInFrames, } = cli_1.CliInternals.getCliOptions({
40
40
  isStill: false,
41
41
  logLevel,
42
42
  indent: false,
43
43
  });
44
+ const pixelFormat = pixelFormatOption.getValue({
45
+ commandLine: cli_1.CliInternals.parsedCli,
46
+ }).value;
47
+ const browserExecutable = browserExecutableOption.getValue({
48
+ commandLine: cli_1.CliInternals.parsedCli,
49
+ }).value;
50
+ const everyNthFrame = everyNthFrameOption.getValue({
51
+ commandLine: cli_1.CliInternals.parsedCli,
52
+ }).value;
53
+ const proResProfile = proResProfileOption.getValue({
54
+ commandLine: cli_1.CliInternals.parsedCli,
55
+ }).value;
56
+ const userAgent = userAgentOption.getValue({
57
+ commandLine: cli_1.CliInternals.parsedCli,
58
+ }).value;
59
+ const disableWebSecurity = disableWebSecurityOption.getValue({
60
+ commandLine: cli_1.CliInternals.parsedCli,
61
+ }).value;
62
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
63
+ commandLine: cli_1.CliInternals.parsedCli,
64
+ }).value;
44
65
  const x264Preset = x264Option.getValue({
45
66
  commandLine: cli_1.CliInternals.parsedCli,
46
67
  }).value;
@@ -148,6 +169,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
148
169
  chromiumOptions,
149
170
  envVariables,
150
171
  height,
172
+ width,
173
+ fps,
174
+ durationInFrames,
151
175
  indent,
152
176
  serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
153
177
  indent: undefined,
@@ -159,7 +183,6 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
159
183
  serveUrlOrWebpackUrl: serveUrl,
160
184
  timeoutInMilliseconds,
161
185
  logLevel,
162
- width,
163
186
  server,
164
187
  offthreadVideoCacheSizeInBytes,
165
188
  offthreadVideoThreads,
@@ -233,6 +256,8 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
233
256
  encodingMaxRate,
234
257
  forceHeight: height,
235
258
  forceWidth: width,
259
+ forceFps: fps,
260
+ forceDurationInFrames: durationInFrames,
236
261
  webhook: args_1.parsedLambdaCli.webhook
237
262
  ? {
238
263
  url: args_1.parsedLambdaCli.webhook,
@@ -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, } = 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,21 @@ 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, height, width, fps, durationInFrames, } = getCliOptions({
38
38
  isStill: true,
39
39
  logLevel,
40
40
  indent: false,
41
41
  });
42
+ const browserExecutable = browserExecutableOption.getValue({
43
+ commandLine: parsedCli,
44
+ }).value;
45
+ const userAgent = userAgentOption.getValue({ commandLine: parsedCli }).value;
46
+ const disableWebSecurity = disableWebSecurityOption.getValue({
47
+ commandLine: parsedCli,
48
+ }).value;
49
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
50
+ commandLine: parsedCli,
51
+ }).value;
42
52
  const region = (0, get_aws_region_1.getAwsRegion)();
43
53
  let composition = args[1];
44
54
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
@@ -110,6 +120,8 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
110
120
  timeoutInMilliseconds,
111
121
  height,
112
122
  width,
123
+ fps,
124
+ durationInFrames,
113
125
  server,
114
126
  offthreadVideoCacheSizeInBytes,
115
127
  offthreadVideoThreads,
@@ -170,6 +182,8 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
170
182
  scale,
171
183
  forceHeight: height,
172
184
  forceWidth: width,
185
+ forceFps: fps,
186
+ forceDurationInFrames: durationInFrames,
173
187
  onInit: ({ cloudWatchLogs, lambdaInsightsUrl }) => {
174
188
  log_1.Log.verbose({ indent: false, logLevel }, `${cli_1.CliInternals.makeHyperlink({
175
189
  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.425",
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",
@@ -11072,7 +11072,10 @@ var {
11072
11072
  glOption,
11073
11073
  delayRenderTimeoutInMillisecondsOption,
11074
11074
  headlessOption,
11075
- darkModeOption
11075
+ darkModeOption,
11076
+ userAgentOption,
11077
+ disableWebSecurityOption,
11078
+ ignoreCertificateErrorsOption
11076
11079
  } = BrowserSafeApis.options;
11077
11080
  var compositionsCommand = async ({
11078
11081
  args,
@@ -11087,17 +11090,20 @@ var compositionsCommand = async ({
11087
11090
  Log.info({ indent: false, logLevel }, `${BINARY_NAME4} ${COMPOSITIONS_COMMAND} <serve-url>`);
11088
11091
  quit(1);
11089
11092
  }
11090
- const {
11091
- envVariables,
11092
- inputProps,
11093
- ignoreCertificateErrors,
11094
- userAgent,
11095
- disableWebSecurity
11096
- } = CliInternals8.getCliOptions({
11093
+ const { envVariables, inputProps } = CliInternals8.getCliOptions({
11097
11094
  isStill: false,
11098
11095
  logLevel,
11099
11096
  indent: false
11100
11097
  });
11098
+ const userAgent = userAgentOption.getValue({
11099
+ commandLine: CliInternals8.parsedCli
11100
+ }).value;
11101
+ const disableWebSecurity = disableWebSecurityOption.getValue({
11102
+ commandLine: CliInternals8.parsedCli
11103
+ }).value;
11104
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
11105
+ commandLine: CliInternals8.parsedCli
11106
+ }).value;
11101
11107
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
11102
11108
  commandLine: CliInternals8.parsedCli
11103
11109
  }).value;
@@ -11622,7 +11628,14 @@ var {
11622
11628
  preferLosslessOption,
11623
11629
  metadataOption,
11624
11630
  mediaCacheSizeInBytesOption,
11625
- darkModeOption: darkModeOption2
11631
+ darkModeOption: darkModeOption2,
11632
+ pixelFormatOption,
11633
+ browserExecutableOption,
11634
+ everyNthFrameOption,
11635
+ proResProfileOption,
11636
+ userAgentOption: userAgentOption2,
11637
+ disableWebSecurityOption: disableWebSecurityOption2,
11638
+ ignoreCertificateErrorsOption: ignoreCertificateErrorsOption2
11626
11639
  } = BrowserSafeApis3.options;
11627
11640
  var renderCommand = async ({
11628
11641
  args,
@@ -11643,20 +11656,36 @@ var renderCommand = async ({
11643
11656
  envVariables,
11644
11657
  frameRange,
11645
11658
  inputProps,
11646
- pixelFormat,
11647
- proResProfile,
11648
- everyNthFrame,
11649
11659
  height,
11650
11660
  width,
11651
- browserExecutable,
11652
- ignoreCertificateErrors,
11653
- userAgent,
11654
- disableWebSecurity
11661
+ fps,
11662
+ durationInFrames
11655
11663
  } = CliInternals14.getCliOptions({
11656
11664
  isStill: false,
11657
11665
  logLevel,
11658
11666
  indent: false
11659
11667
  });
11668
+ const pixelFormat = pixelFormatOption.getValue({
11669
+ commandLine: CliInternals14.parsedCli
11670
+ }).value;
11671
+ const browserExecutable = browserExecutableOption.getValue({
11672
+ commandLine: CliInternals14.parsedCli
11673
+ }).value;
11674
+ const everyNthFrame = everyNthFrameOption.getValue({
11675
+ commandLine: CliInternals14.parsedCli
11676
+ }).value;
11677
+ const proResProfile = proResProfileOption.getValue({
11678
+ commandLine: CliInternals14.parsedCli
11679
+ }).value;
11680
+ const userAgent = userAgentOption2.getValue({
11681
+ commandLine: CliInternals14.parsedCli
11682
+ }).value;
11683
+ const disableWebSecurity = disableWebSecurityOption2.getValue({
11684
+ commandLine: CliInternals14.parsedCli
11685
+ }).value;
11686
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption2.getValue({
11687
+ commandLine: CliInternals14.parsedCli
11688
+ }).value;
11660
11689
  const x264Preset = x264Option.getValue({
11661
11690
  commandLine: CliInternals14.parsedCli
11662
11691
  }).value;
@@ -11765,6 +11794,9 @@ var renderCommand = async ({
11765
11794
  chromiumOptions,
11766
11795
  envVariables,
11767
11796
  height,
11797
+ width,
11798
+ fps,
11799
+ durationInFrames,
11768
11800
  indent,
11769
11801
  serializedInputPropsWithCustomSchema: NoReactInternals2.serializeJSONWithSpecialTypes({
11770
11802
  indent: undefined,
@@ -11776,7 +11808,6 @@ var renderCommand = async ({
11776
11808
  serveUrlOrWebpackUrl: serveUrl,
11777
11809
  timeoutInMilliseconds,
11778
11810
  logLevel,
11779
- width,
11780
11811
  server,
11781
11812
  offthreadVideoCacheSizeInBytes,
11782
11813
  offthreadVideoThreads,
@@ -11852,6 +11883,8 @@ var renderCommand = async ({
11852
11883
  encodingMaxRate,
11853
11884
  forceHeight: height,
11854
11885
  forceWidth: width,
11886
+ forceFps: fps,
11887
+ forceDurationInFrames: durationInFrames,
11855
11888
  webhook: parsedLambdaCli.webhook ? {
11856
11889
  url: parsedLambdaCli.webhook,
11857
11890
  secret: parsedLambdaCli["webhook-secret"] ?? null,
@@ -12515,7 +12548,11 @@ var {
12515
12548
  delayRenderTimeoutInMillisecondsOption: delayRenderTimeoutInMillisecondsOption3,
12516
12549
  binariesDirectoryOption: binariesDirectoryOption2,
12517
12550
  mediaCacheSizeInBytesOption: mediaCacheSizeInBytesOption2,
12518
- darkModeOption: darkModeOption3
12551
+ darkModeOption: darkModeOption3,
12552
+ browserExecutableOption: browserExecutableOption2,
12553
+ userAgentOption: userAgentOption3,
12554
+ disableWebSecurityOption: disableWebSecurityOption3,
12555
+ ignoreCertificateErrorsOption: ignoreCertificateErrorsOption3
12519
12556
  } = BrowserSafeApis5.options;
12520
12557
  var {
12521
12558
  parsedCli,
@@ -12546,15 +12583,23 @@ var stillCommand = async ({
12546
12583
  stillFrame,
12547
12584
  height,
12548
12585
  width,
12549
- browserExecutable,
12550
- userAgent,
12551
- disableWebSecurity,
12552
- ignoreCertificateErrors
12586
+ fps,
12587
+ durationInFrames
12553
12588
  } = getCliOptions({
12554
12589
  isStill: true,
12555
12590
  logLevel,
12556
12591
  indent: false
12557
12592
  });
12593
+ const browserExecutable = browserExecutableOption2.getValue({
12594
+ commandLine: parsedCli
12595
+ }).value;
12596
+ const userAgent = userAgentOption3.getValue({ commandLine: parsedCli }).value;
12597
+ const disableWebSecurity = disableWebSecurityOption3.getValue({
12598
+ commandLine: parsedCli
12599
+ }).value;
12600
+ const ignoreCertificateErrors = ignoreCertificateErrorsOption3.getValue({
12601
+ commandLine: parsedCli
12602
+ }).value;
12558
12603
  const region = getAwsRegion();
12559
12604
  let composition = args[1];
12560
12605
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption3.getValue({
@@ -12627,6 +12672,8 @@ var stillCommand = async ({
12627
12672
  timeoutInMilliseconds,
12628
12673
  height,
12629
12674
  width,
12675
+ fps,
12676
+ durationInFrames,
12630
12677
  server,
12631
12678
  offthreadVideoCacheSizeInBytes,
12632
12679
  offthreadVideoThreads,
@@ -12689,6 +12736,8 @@ var stillCommand = async ({
12689
12736
  scale,
12690
12737
  forceHeight: height,
12691
12738
  forceWidth: width,
12739
+ forceFps: fps,
12740
+ forceDurationInFrames: durationInFrames,
12692
12741
  onInit: ({ cloudWatchLogs, lambdaInsightsUrl }) => {
12693
12742
  Log.verbose({ indent: false, logLevel }, `${CliInternals21.makeHyperlink({
12694
12743
  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.425",
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.425",
32
+ "@remotion/cli": "4.0.425",
33
+ "@remotion/lambda-client": "4.0.425",
34
+ "@remotion/renderer": "4.0.425",
35
+ "@remotion/serverless": "4.0.425",
36
+ "@remotion/streaming": "4.0.425",
37
37
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.424",
38
+ "remotion": "4.0.425",
39
39
  "zod": "3.22.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@remotion/bundler": "4.0.424",
42
+ "@remotion/bundler": "4.0.425",
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.425",
46
+ "@remotion/eslint-config-internal": "4.0.425",
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.425"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"
Binary file