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) usingpotrace - 📦 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:
- Download from ffmpeg.org/download
- Extract the ZIP
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mp4tolottie-0.1.0.tar.gz.
File metadata
- Download URL: mp4tolottie-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb5fe3a022bd276f2ba7302a0850132397b934fa1ee9c747c499f1e3e0cd2788
|
|
| MD5 |
18784d44de840a40ce675a2d7adeadc7
|
|
| BLAKE2b-256 |
54df3c0b5b65241c6c04d0c978518899eee27b6634acb8bc0a7aad635a6bd4e9
|
File details
Details for the file mp4tolottie-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mp4tolottie-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6814f486b06a6d62e6d3bc4e256fd23961c84ebc8867278bd976d73452206022
|
|
| MD5 |
57ea6490203095b72c347d4086706eda
|
|
| BLAKE2b-256 |
c65dddbae37d57e1b4c24fceecd07a219fc04bf822bd9bf61dcd448152a32c4b
|