🎥 Make videos programmatically with React
update docs for lambda
Jonny Burgerc3127119a56a
diff --git a/packages/docs/docs/lambda/cli/functions.md b/packages/docs/docs/lambda/cli/functions.mdindex af70ffa847..8ccac5230c 100644--- a/packages/docs/docs/lambda/cli/functions.md+++ b/packages/docs/docs/lambda/cli/functions.md@@ -37,7 +37,7 @@ Example output<pre>Region = eu-central-1,Memory = 2048MB,-Disk = 512MB,+Disk = 2048MB,Timeout = 120sec,Version = 2021-12-17,CloudWatch Enabled = true,diff --git a/packages/docs/docs/lambda/custom-layers.md b/packages/docs/docs/lambda/custom-layers.mdindex 741ee2cb06..8a5315950c 100644--- a/packages/docs/docs/lambda/custom-layers.md+++ b/packages/docs/docs/lambda/custom-layers.md@@ -118,7 +118,7 @@ import { AwsRegion, getAwsClient } from "@remotion/lambda";// Customize these parametersconst REGION: AwsRegion = "us-east-1";-const FUNCTION_NAME = "remotion-render-2022-06-02-mem3000mb-disk512mb-120sec";+const FUNCTION_NAME = "remotion-render-2022-06-02-mem3000mb-disk2048mb-120sec";const LAYER_TO_REMOVE = /fonts/;const LAYER_TO_ADD = "arn:aws:lambda:us-east-1:1234567891:layer:apple-emoji:1";diff --git a/packages/docs/docs/lambda/deployfunction.md b/packages/docs/docs/lambda/deployfunction.mdindex bbd4f8946b..1245e147c7 100644--- a/packages/docs/docs/lambda/deployfunction.md+++ b/packages/docs/docs/lambda/deployfunction.md@@ -66,7 +66,7 @@ Retention period for the CloudWatch Logs. Default: 14 days._optional_-Sets the amount of disk storage that is available in the Lambda function. Must be between 512MB and 10240MB (10GB). Set this higher if you want to render longer videos. See also: [Disk size](/docs/lambda/disk-size)+Sets the amount of disk storage that is available in the Lambda function. Must be between 512MB and 10240MB (10GB). Default: 2048MB. Set this higher if you want to render longer videos. See also: [Disk size](/docs/lambda/disk-size)### `customRoleArn`diff --git a/packages/docs/docs/lambda/disk-size.md b/packages/docs/docs/lambda/disk-size.mdindex 36a44a7d3b..6ee931fd6c 100644--- a/packages/docs/docs/lambda/disk-size.md+++ b/packages/docs/docs/lambda/disk-size.md@@ -3,7 +3,7 @@ id: disk-sizetitle: Disk size----By default, each Lambda function comes with an ephemereal disk size of 512MB. This is enough storage to render a video of approximately 8 minutes of Full HD video.+By default, each Lambda function comes with an ephemereal disk size of 2048MB. This is enough storage to render a video of approximately 32 minutes of Full HD video.If you want to render longer videos, you can increase the disk size, and [potentially also increase the timeout](/docs/timeout).@@ -13,14 +13,14 @@ The minimum disk size is 512MB, and the maximum disk size is 10240MB.The approximate maximum video duration length is therefore around ~160 minutes at Full HD (not yet practically confirmed).-| Disk size | Approximate Maximum video length |-| ---------------- | -------------------------------- |-| 512 MB (default) | 8 min - 1080p |-| 1024 MB | 16 min - 1080p |-| 2048 MB | 32 min - 1080p |-| 4096 MB | 1h 4min - 1080p |-| 8192 MB | 2h 8min - 1080p |-| 10240 MB | 2h 40min - 1080p |+| Disk size | Approximate Maximum video length |+| ----------------- | -------------------------------- |+| 512 MB | 8 min - 1080p |+| 1024 MB | 16 min - 1080p |+| 2048 MB (default) | 32 min - 1080p |+| 4096 MB | 1h 4min - 1080p |+| 8192 MB | 2h 8min - 1080p |+| 10240 MB | 2h 40min - 1080p |> These are approximate values and will not exactly match your scenario. Video output size is dependant on the video content and audio. Measure and find the values that work best for you.diff --git a/packages/docs/docs/lambda/estimateprice.md b/packages/docs/docs/lambda/estimateprice.mdindex 353b13d264..ccc69e6cb6 100644--- a/packages/docs/docs/lambda/estimateprice.md+++ b/packages/docs/docs/lambda/estimateprice.md@@ -27,7 +27,7 @@ console.log(region: "us-east-1",durationInMiliseconds: 20000,memorySizeInMb: 2048,- diskSizeInMb: 512,+ diskSizeInMb: 2048,architecture: "x86_64",lambdasInvoked: 1,})diff --git a/packages/docs/docs/lambda/getfunctioninfo.md b/packages/docs/docs/lambda/getfunctioninfo.mdindex bb294c6f22..d5fe64ae49 100644--- a/packages/docs/docs/lambda/getfunctioninfo.md+++ b/packages/docs/docs/lambda/getfunctioninfo.md@@ -24,7 +24,7 @@ const info = await getFunctionInfo({});console.log(info.functionName); // remotion-render-d7nd2a9fconsole.log(info.memorySizeInMb); // 1500-console.log(info.diskSizeInMb); // 512+console.log(info.diskSizeInMb); // 2048console.log(info.version); // '2021-07-14'console.log(info.timeoutInSeconds); // 120```diff --git a/packages/docs/docs/lambda/getfunctions.md b/packages/docs/docs/lambda/getfunctions.mdindex 4133b1d51d..8c3f716f24 100644--- a/packages/docs/docs/lambda/getfunctions.md+++ b/packages/docs/docs/lambda/getfunctions.md@@ -27,7 +27,7 @@ for (const fn of info) {console.log(fn.functionName); // "remotion-render-d8a03x"console.log(fn.memorySizeInMb); // 1536console.log(fn.timeoutInSeconds); // 120- console.log(fn.diskSizeInMb); // 512+ console.log(fn.diskSizeInMb); // 2048console.log(fn.version); // "2021-07-25"}```