remotion-dev / remotion

🎥 Make videos programmatically with React
https://remotion.dev
Other
20.83k stars 1.05k forks source link

Implementing download video - Issue with AWS Lambda #4433

Closed kaloraat closed 3 weeks ago

kaloraat commented 3 weeks ago

Does it not work in MacOS? Image

JonnyBurger commented 3 weeks ago

Indeed it is not exposed as part of the light client.

I think this is not something we want to endorse either - a Next.js function has limited amount of RAM and you could run into a memory issue.

It's better to just return the URL then the user can download it directly.

Saving to disk makes no sense either because after the invocation the video is lost.

If you still want to download the video in a Next.js function, fetch() the video URL. If the video is private in S3, generate a presigned URL then fetch() is.