Skip to content

🎥 Make videos programmatically with React

docs update

Jonny Burger3b7aba39aa05
diff --git a/packages/docs/docs/lambda/checklist.md b/packages/docs/docs/lambda/checklist.md
index 395e4c22da..173eb790ad 100644
--- a/packages/docs/docs/lambda/checklist.md
+++ b/packages/docs/docs/lambda/checklist.md
@@ -20,12 +20,12 @@ Adding too much memory to your Lambda functions can make rendering more costly.
### Maximum file size
-Lambda is constrained to a maximum output file size of approximately 250MB. Test the file sizes of your outputs and make sure they don't run at risk of exceeding the limit.
+Lambda is constrained to a maximum output file size of approximately [half the disk space](/docs/lambda/disk-size). Adjust the disk space parameter of Lambda to accomodate for the maximum video length that you would like to support. Test the file sizes of your outputs and make sure they don't run at risk of exceeding the limit.
If your video is based on user input, prevent your users from rendering very long videos that would exceed the space available in Remotion Lambda.
### Permissions
-Make sure your AWS permissions only have as many permissions as needed and store your credentials as environment variables. Review the [Permissions](/docs/lambda/permissions) page to see what the minimum amount of permissions is.
+Make sure your AWS user only has as many permissions as needed and store your credentials as environment variables. Review the [Permissions](/docs/lambda/permissions) page to see what the minimum amount of permissions is.
### AWS burst limit
@@ -37,11 +37,11 @@ The maximum payload for invoking a Lambda function is 256KB. Ensure that in your
### Selecting the right concurrency
-If you are using the [`framesPerLambda`](/docs/lambda/rendermediaonlambda#framesperlambda) option, make sure that for each video you render, the parameter is set in a way that it stays within the allowed bounds (no more than 200 lambda functions per render).
+If you are using the [`framesPerLambda`](/docs/lambda/rendermediaonlambda#framesperlambda) option, make sure that for each video you render, the parameter is set in a way that it stays within the allowed bounds (no more than 200 lambda functions per render). See: [Concurrency](/docs/lambda/concurrency)
### Bucket privacy
-By default the rendered videos are publicly accessible in your bucket. Use the `privacy` setting in [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) to make renders private if you'd like so.
+By default the rendered videos are publicly accessible in your bucket. Use the `privacy` setting in [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) to make renders private if you'd like so.
### Rate limiting
diff --git a/packages/docs/docs/lambda/chunkoptimization.md b/packages/docs/docs/lambda/chunkoptimization.md
deleted file mode 100644
index cce10ce1b6..0000000000
--- a/packages/docs/docs/lambda/chunkoptimization.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-id: chunkoptimization
-title: Chunk optimization
-slug: /lambda/chunk-optimization
----
-
-**Text description coming later** (TODO)
-
-<img src="/img/chunk-optimization.png" />
-<img src="/img/chunk-optimization-2.png" />
diff --git a/packages/docs/docs/lambda/faq.md b/packages/docs/docs/lambda/faq.md
index 7d24f7f373..0f42293551 100644
--- a/packages/docs/docs/lambda/faq.md
+++ b/packages/docs/docs/lambda/faq.md
@@ -14,7 +14,7 @@ There are three exceptions when it is possible to deploy multiple functions:
- If you are using multiple regions, you need to deploy a function for each region.
- If you are upgrading to a newer version of Remotion Lambda, you need to deploy a new function. You can then run the new and the old function side-by-side. The `@remotion/lambda` CLI will always choose the function in your AWS account that has the same version as the client package. If you use the [`getFunctions()`](/docs/lambda/getfunctions) Node.JS API, set the [`compatibleOnly`](/docs/lambda/getfunctions#compatibleonly) flag to `true` to filter out functions that don't match the version of the `@remotion/lambda` package.
-- If you are deploying a function with a different memory size or timeout, a new function can be created. However, currently if multiple suitable functions are available, Remotion will choose one at random. So you should only use this strategy to change the parameters of the function without causing downtime.
+- If you are deploying a function with a different memory size, disk size or timeout, a new function can be created. However, currently if multiple suitable functions are available, Remotion will choose one at random. So you should only use this strategy to change the parameters of the function without causing downtime.
### Do I need to create multiple buckets?
@@ -22,11 +22,11 @@ Only one bucket per region is required.
### Do I need to deploy multiple sites?
-You can render one project and use it for as many renders as you need. If you have multiple projects, you can deploy all of them and reuse the same Lambda function.
+You can deploy one site and use it for as many renders as you need. If you have multiple sites, you can deploy all of them and reuse the same Lambda function.
### What if I want to render longer videos?
-You don't need to worry about the timeout of a Lambda function because Remotion splits the video in many parts and renders them in parallel. However, you need to be aware of the 512MB storage limit that may not be exceeded. See: [Storage space](/docs/lambda/runtime#storage-space)
+You don't need to worry about the timeout of a Lambda function because Remotion splits the video in many parts and renders them in parallel. However, you need to be aware of the storages limit that may not be exceeded. See: [Disk size](/docs/lambda/disk-size)
### Why are you not using Amazon EFS?
diff --git a/packages/docs/docs/lambda/runtime.md b/packages/docs/docs/lambda/runtime.md
index 95cc32e1b7..62193e3dd3 100644
--- a/packages/docs/docs/lambda/runtime.md
+++ b/packages/docs/docs/lambda/runtime.md
@@ -25,14 +25,14 @@ Note that you probably don't need to increase it - Since the video is rendered b
## Storage space
-The function only has 512MB of storage space in total. available for video rendering. Keep in mind that the concatenations of various chunks into one video takes place within a Lambda function, so the space must suffice for both the chunks and the output video.
+The function has between [512MB and 10GB of storage space](/docs/lambda/disk-size) in total available for video rendering depending on your configuration. Keep in mind that the concatenations of various chunks into one video takes place within a Lambda function, so the space must suffice for both the chunks and the output video.
## Chromium
The function already includes a running version of Chromium.
The browser was compiled including the proprietary codecs, so you can include MP4 videos into your project.
-**Chromium revision**: `97.0.4692.65`
+**Chromium revision**: `98.0.4758.139`
## FFMPEG
diff --git a/packages/docs/static/img/chunk-optimization-2.png b/packages/docs/static/img/chunk-optimization-2.png
deleted file mode 100644
index 0779b13bb1..0000000000
Binary files a/packages/docs/static/img/chunk-optimization-2.png and /dev/null differ
diff --git a/packages/docs/static/img/chunk-optimization.png b/packages/docs/static/img/chunk-optimization.png
deleted file mode 100644
index 5d70752675..0000000000
Binary files a/packages/docs/static/img/chunk-optimization.png and /dev/null differ
diff --git a/packages/lambda/README.md b/packages/lambda/README.md
index 63a1c80e29..8cdcb1377b 100644
--- a/packages/lambda/README.md
+++ b/packages/lambda/README.md
@@ -1,12 +1,3 @@
# @remotion/lambda
-This package provides Node.JS APIs and a CLI for rendering Remotion videos on AWS Lambda. Currently the status of the package is highly experimental, but we are actively developing the library.
-
-Visit the `#lambda` channel on Remotions Discord to chat about Lambda.
-
-## Lambda restrictions
-
-Note the following restrictions are put in place by AWS Lambda:
-
-- Only 512 MB of data can be written to disk.
-- A maximum of 3000 ([or 1000 or 500 dependending on the region](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html)) lambdas can be spawned in a short amount of time.
+This package provides Node.JS APIs and a CLI for rendering Remotion videos on AWS Lambda. See https://v3.remotion.dev/docs/lambda for documentation.
diff --git a/packages/lambda/src/functions/helpers/inspect-errors.ts b/packages/lambda/src/functions/helpers/inspect-errors.ts
index c96cad4ec8..9a87caa906 100644
--- a/packages/lambda/src/functions/helpers/inspect-errors.ts
+++ b/packages/lambda/src/functions/helpers/inspect-errors.ts
@@ -34,7 +34,7 @@ const getExplanation = (stack: string) => {
}
if (errorIsOutOfSpaceError(stack)) {
- return 'Your lambda function reached the 512MB storage limit. Reduce the amount of space needed per lambda function. Feel free to reach out to #lambda Discord for help';
+ return `Your lambda function reached the storage limit. Reduce the amount of space needed per lambda function or increase the storage limit: ${DOCS_URL}/docs/lambda/disk-size.`;
}
if (isErrInsufficientResourcesErr(stack)) {