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.

Misc

This example illustrate divers function you can use with this API. Misc Gif

Voronoi

This example is an implementation of Voronoi diagram. Voronoi Gif

Game

This example is an implementation of territory battle. Game 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.2.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SVGVideoMaker-0.2-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file SVGVideoMaker-0.2.tar.gz.

File metadata

  • Download URL: SVGVideoMaker-0.2.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for SVGVideoMaker-0.2.tar.gz
Algorithm Hash digest
SHA256 1c8f717e19840be07234594d8995958d33eb955b00e28f4c9b8031e56f99838d
MD5 5d63106e142c7844198078826959fa7d
BLAKE2b-256 d95815478b58426fd387728d83929e47eb4c36be1e8b2ebb3d79bc496c878fef

See more details on using hashes here.

File details

Details for the file SVGVideoMaker-0.2-py3-none-any.whl.

File metadata

  • Download URL: SVGVideoMaker-0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for SVGVideoMaker-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69149b671f925bbe7f1baa56ad4b1ec2ef9fc14edfc833d6d1a0bf69c1186b51
MD5 9114c7b9f7968e7d6ac3973455330881
BLAKE2b-256 6fb6e1d9d777ac3e356de393e56859efd8af9cbf41bef259e8c854ede4577584

See more details on using hashes here.

Supported by

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