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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f863f397c06d5a5592a0f9a1940deadf8cc6c7d33feaa6eec8c0d09b5a8292f |
|
MD5 | 7ab3346a589b4ce6c6d40c63d66f7617 |
|
BLAKE2b-256 | 6b0396935b049ab8178074aff566b4b1996ec187176de4ac0e37dae4caea125e |
Close
Hashes for bondzai.media_handler-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6947fa52a921cf06988a46e5cbe45a0fd3b52f7da427df14cb9e623aaab4f7 |
|
MD5 | b7fc316b7839b29f34bee9a71905f5c3 |
|
BLAKE2b-256 | 0a6ad40cf5bb101f4ff3e0a0421d4d3b7f82502a45db77e90a89647231665d30 |