Skip to main content

Creator of video from svg with cairosvg, ffmpeg

Project description

SVGVideoMaker

About

The aim of this project is to write easy animation from description of position. To do that, we use svg structure.
You create shape like circle, point, polygon, rectangle... and add animation by key time (in second).

Documentation

You can have full documentation if you execute command :

python -m sphinx -b /path/to/SVGVideoMaker/Documentation /path/to/SVGVideoMaker/Documentation/html

Shapes

Available shapes :

  • Circle
  • Rectangle
  • Polygon
  • Arc
  • Segment

You can also made group who contain shape.

Available operation on shape

  • Translation
  • Inflation
  • Reshaping (for polygon)

Debug your program

Warnings

Terminal supported for image displaying : Terminology, Kitty and others terminal can display pseudo image if you have viu installed. For viu, you can see the git here.

You can get all keyframe for an element with display_animations() method on svg element. You can display a svg element in terminal with display(svg_element) and you can display specific frame of a SVGVideoMaker with print_frame(nb_frame:int) and the number of frame to display.

Examples

See video in examples file.

Polygon

Utilisation of polygon of this API. Misc Gif

Ellipse

Utilisation of ellipse of this API. Voronoi Gif

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SVGVideoMaker-0.4.3.tar.gz (27.8 kB view hashes)

Uploaded Source

Built Distribution

SVGVideoMaker-0.4.3-py3-none-any.whl (36.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page