Skip to content

Renders animated SVGs to video using Puppeteer and FFmpeg.

Notifications You must be signed in to change notification settings

freder/svg-animation-to-video

Repository files navigation

Renders animated SVGs to video using Puppeteer and FFmpeg. Only tested with SMIL animations so far.

Setup

npm install

Run

npx vite-node src/main.ts \
	--input=../animation.svg \
	--duration=20 \
	--fps=30

This will create animation.mov in the same directory. The codec used is ProRes 4444, 10 Bit.

Build

npm run build

About

Renders animated SVGs to video using Puppeteer and FFmpeg.

Topics

Resources

Stars

Watchers

Forks