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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd924ed5984c3a10f01cea3e0b01077f9ae9fec564867e7c5ec3d4c0987b3dc |
|
MD5 | ef6d6fda7d74570f00705da65f1914b7 |
|
BLAKE2b-256 | da66d6c4a28d5e10a50e29e9a87a2c1a95ce54bec5c920b6c5622e7f2734a2f6 |
Close
Hashes for bondzai.media_handler-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d09451ce77d2e8ddb0238fb53c0943178f2fefb4ec4c1aae6b0c0dda9fbcbafa |
|
MD5 | 11389f372e326bf405a4f8e5dd6b76d7 |
|
BLAKE2b-256 | 764cfbf238b14f854207447aad368d9fa8c4a6cfffa5a5d0b1f6703e6c04f194 |