Encoding media into multiple qualities
Project description
Mediaify
A library designed to make encoding media simple and easy.
import mediaify
with open('fractal.gif', 'rb') as f:
data = f.read()
files = mediaify.encode_media(data)
>>> [
ImageFile(128x128, image/webp),
ImageFile(500x500, image/webp),
AnimationFile(500x500 600ms, image/webp),
AnimationFile(500x500 600ms, image/gif)
]
Installation
https://pypi.org/project/mediaify/
python -m pip install mediaify
Dependencies
- ffmpeg
- Ensure ffmpeg is on PATH, try running
ffmpeg
to check - Debain/Ubuntu:
sudo apt-get install ffmpeg
- Other: https://ffmpeg.org/download.html
- Ensure ffmpeg is on PATH, try running
- libmagic
- Windows: N/A, installed automatically
- Debian/Ubuntu:
sudo apt-get install libmagic1
- Homebrew:
brew install libmagic
- macports:
port install file
Documentation
Unfinished.
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
mediaify-1.1.1.tar.gz
(7.0 kB
view hashes)