Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js template for building programmatic video apps with Remotion Player and Lambda rendering built in.
The Remotion Next.js Template is a starter repository for building programmatic video apps, combining Next.js with the Remotion Player for in-browser playback and Remotion Lambda for server-side rendering on AWS.
This template is a Next.js project that uses the Pages directory (a separate App directory version is available) and includes both the @remotion/player and @remotion/lambda packages by the Remotion team. It takes React components written as Remotion compositions as input and produces rendered video files—either locally on your machine or on AWS Lambda in the cloud. The template also ships with Remotion Studio, a visual editor for previewing and iterating on video compositions inside the Next.js app.
npx remotion render to render a video locally using your machine's CPU.npx remotion studio to open the visual editing environment for building and tweaking video compositions.node deploy.mjs script sets up your Remotion Bundle and Lambda function after you edit config.mjs with your Lambda preferences.npx create-video@latest --next-pages-dir to create a new project.Developers who want a starting point for a web app that generates videos programmatically will find the Pages Router setup ready to extend. Teams that need on-demand video rendering in a Next.js app benefit from the pre-configured Lambda deployment, which removes the need to manage render workers yourself. Remotion users looking for a reference implementation of the Player and Lambda together can treat this template as a working example.
You start by cloning the template via the GitHub "Use this template" button or by running npx create-video@latest --next-pages-dir, then install dependencies with npm i. During development you run npm run dev for the Next.js app and npx remotion studio for the video editor. When you're ready to render to AWS Lambda, copy .env.example to .env, follow the Remotion Lambda setup guide to get AWS credentials, edit config.mjs with your desired Lambda settings, and run node deploy.mjs to deploy the bundle and function.
Use the GitHub "Use this template" link or run npx create-video@latest --next-pages-dir in your terminal, then install the dependencies with npm i.
It uses the Pages directory. The Remotion team also maintains a separate App directory version of the template, which you can find on the same GitHub repository.
Yes. Run npx remotion render to render a video locally. The AWS Lambda integration is optional and only needed for server-side or bulk rendering.
Copy the .env.example file to .env, complete the Lambda setup guide to obtain AWS credentials, edit config.mjs with your Lambda preferences, and run node deploy.mjs to deploy the Remotion Bundle and Lambda function.
The template is part of the Remotion project. For some entities a company license is required; you can read the full terms in the Remotion LICENSE.md file referenced in the repository.
