This repository contains an demonstration of how to create a video using Mux Data and Remotion.
Make sure to set your Mux access token and secret key!
Copy the .env.example
file to a new file called .env
and add your keys there.
You'll also need to install ffmpeg to render your video locally. You can do that on MacOS with homebrew by running brew install ffmpeg
. This will take a few minutes to download and install, so now is a good time to go check your mail or do a few laps around the block.
This demo uses date-fns
to help easily calculate timeframes for which we'd like to pull stats from.
- Setting a
durationInFrames
prop on theSequence
component in theTimeline
specifies how long each component should display for.
Start Preview
npm start
Render video
npm run build
Server render demo
npm run server
See docs for server-side rendering here.
Upgrade Remotion
npm run upgrade
Get started with Remotion by reading the fundamentals page.
Remotion provides help on our Discord server.
Found an issue with Remotion? File an issue here.
Notice that for some entities a company license is needed. Read the terms here.