Sheet to videos
View as MarkdownThis example app is a web page you run on your own computer. It turns a product sheet into one video ad per row, and renders them all as one batch. Each row puts a product's photo, name and price into a 9-second sale spot.
The code is open source: github.com/CodeArtworks/blitframe-sheet-to-videos.
What you can do with it
- Edit the sheet in the page, or import a CSV file of your own products.
- Press Render. Each tile plays its video while it renders.
- Download every video as one ZIP.
Run it
You need Node.js 22.18 or later and an API key from the console. To run it:
git clone https://github.com/CodeArtworks/blitframe-sheet-to-videos.git
cd blitframe-sheet-to-videos
npm install
npm start
Open http:/ in your browser and paste your API key when the page asks for it. The app's server, which runs on your computer, saves the key in a .env file, so the next start connects by itself.
The app also works without the page. Once the key is in .env, this command renders every row of products.csv and saves the videos in the out/ folder:
npm run cli

How it uses the API
The API behind each feature:
| Step | API |
|---|---|
| The app sends the template folder to a project, which holds the composition and its files. Every later run reuses that project. | Projects and versions |
| The app asks which layers of the template can be changed, and finds the layer each column changes by its name. | Editable layers |
| Each row's photo is sent to Blitframe as its own upload. | Uploads and ZIP import |
| Render queues one render per row, all in one batch request. Each render carries replacements, which put that row's text and photo into its video only. | Many videos from a data sheet |
| One request reads the status of every render in the batch. Each tile plays its video as an HLS stream while it renders. | Live HLS |
| Download all as ZIP asks for one ZIP of every finished video. | Download many videos as one ZIP |
Make it yours
To render your own design from your own sheet:
- Name the layers you want to change, in After Effects or in
data.json. - Put your composition and its files in the
template/folder. - List which column changes which layer, in the app's code. The repository's README says where.
Add text fitting rules to your template to keep longer names and prices inside the design, as the sample template does.