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.1.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.1-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SVGVideoMaker-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c95bfa56021495908b9a4dd7cb138566682dd962084dd080a7506b333fb97beb
MD5 3451bfc370944856af21e6d21aa42cd9
BLAKE2b-256 b877cc547222a96b9d96010155d883524bc46b8954d3ff05086b5b64357c591f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SVGVideoMaker-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c1ce79098e65b8eb1e12f7318c0f8dcf3487b3fbad392c64f7d8523d364d4b7
MD5 6244a2ad51731d1db69ac3cc4c92ad21
BLAKE2b-256 a6b5472f4bbfe112970927e637e19a24e1546a2c5c10999bd7008556d8f06763

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