Skip to main content

Convert MP4 videos to vector-based Lottie JSON animations

Project description

🎞️ mp4tolottie

Convert MP4 video clips into lightweight Lottie animations automatically — frame-by-frame, vectorized, and optimized.


🚀 Features

  • 🎥 Extract frames from MP4 videos using ffmpeg
  • 🖼️ Convert raster frames to vector graphics (SVG) using potrace
  • 📦 Generate optimized Lottie JSON animation
  • 🧩 CLI interface for ease of use
  • 🔧 Modular design for customization

📦 Installation

Install via PyPI:

pip install mp4tolottie

⚙️ Requirements

mp4tolottie depends on the following system tools:

✅ FFmpeg

Install FFmpeg and ensure it's accessible in your system's PATH.

macOS:

brew install ffmpeg

Ubuntu / Debian:

sudo apt update && sudo apt install ffmpeg

Windows:

  1. Download from ffmpeg.org/download
  2. Extract the ZIP
  3. Add the bin/ folder to your System PATH

✅ Potrace

potrace is required to vectorize raster images into SVGs.

macOS:

brew install potrace

Ubuntu / Debian:

sudo apt install potrace

Windows:

Download from potrace.sourceforge.net and add it to PATH.

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

mp4tolottie-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

mp4tolottie-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file mp4tolottie-0.1.1.tar.gz.

File metadata

  • Download URL: mp4tolottie-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for mp4tolottie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1befb8c3fee8efada917fc915deec3c586af66fb085b1bfbee814f055f29ecbd
MD5 c4744100a8787ec7edb633f436fb2630
BLAKE2b-256 3aead27b25f75448f902522cc382c5598b6498d3bbd447e084ccfef50e7c12b7

See more details on using hashes here.

File details

Details for the file mp4tolottie-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mp4tolottie-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for mp4tolottie-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43090f71c37a312555c0f0238a154c32c5d52d1509c9c82411b5e9e1db11ee59
MD5 35b95ba26ff59e2402c756a5b81a4cdf
BLAKE2b-256 920631717b1d13925b7e437d5a6473f9c256f17a4413582ce204bb7d376b4448

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