Bondzai Media Handler
Project description
Description
Bondzai Media Handler is a tool used to convert media data (audio, image, video) file to a raw binary file. For the present, the file’s Mime accepted are the following:
Audio
audio/x-wav
audio/mpeg
Image
image/jpeg
image/png
image/tiff
Video
video/mp4
video/quicktime
video/webm
Installation
ffmpeg
In order to work, this tool needs ffmpeg installed
Linux/Ubuntu
apt-get install ffmpeg
MacOS (Homebrew)
brew install ffmpeg
bondzai.media-handler
pip install bondzai.media-handler
Usage
from bondzai.media_handler import get_raw_data, get_metadata, \
save_binary, load_binary
# Getting raw data from a media file
data = get_raw_data("path/to/file.[mp3|mp4|wav|webm|jpg|png|...]")
# Getting meta data from a media file
meta = get_metadata("path/to/file.[mp3|mp4|wav|webm|jpg|png|...]")
# Saving raw data in a binary file
save_binary("path/to/file.bin", data)
# Loading raw data from a binary file
data = load_binary("path/to/file.bin")
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
Close
Hashes for bondzai.media-handler-0.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ae6ada20d8142579c4a56cc9d3458d204c1b743f07851e2b1571937a65194f |
|
MD5 | 4b3ea02bd993b5789873cff0b92c09cc |
|
BLAKE2b-256 | 857512af911d742962e979b0b1e84531967fbbf9b80c4d92c6809a44da2cae9b |
Close
Hashes for bondzai.media_handler-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4f7ef6f056c621d41c4eaa93e3f9b1da467f502f820dc6f1f1d149f9e2fded |
|
MD5 | bd65bde0c60ef75345795c543726031a |
|
BLAKE2b-256 | 935cbcd1703ed3b558906a97807613929c6a61059ec94b05a4188ac2b36ba92d |