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.
If you want to render longer videos, you can increase the disk size, and potentially also increase the timeout.
Disk space need increases linearly with the length of your video, meaning that for each 8 minutes of Full HD video, you approximately need another 512MB of video.
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|
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.
Setting the disk size
- Use the
deployFunction()to set the disk size when you deploy.
- Use the
--diskflag if you use the
remotion lambda functions deploycommand.