Skip to content

A few scripts for converting animated SVGs to MP4.

License

Notifications You must be signed in to change notification settings

DestyNova/svg2mp4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG2MP4

What is it?

A wrapper that uses PhantomJS and FFmpeg to take an animated SVG file and convert it to an MP4 with a few parameters.

Also included is a similar PhantomJS script (svg-to-png.js) that creates a numbered PNG sequence which you can important into a video editor or whatnot.

Why would you want this?

I wanted to use LibreOffice Impress to generate animated text and diagrams for use in videos. Impress can export animated SVG but my video editor of choice, Blender VSE, only imports raster video formats.

Dependencies

  • PhantomJS
  • FFmpeg
  • Perl

You can get them on Debian-based systems like Ubuntu with:

sudo apt install phantomjs ffmpeg

"Inspired" by:

License

zlib


TODO

  • Reduce PNG compression to make frame export faster
  • Other FFmpeg options?

About

A few scripts for converting animated SVGs to MP4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published