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_meta_data("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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9629dea4a89821237133f51dd8a67627a44fb7a931a3f287e7102e840ec6131e |
|
MD5 | fdb4fbd68f1f12eba392ecfcfdb53688 |
|
BLAKE2b-256 | dde1e25c6c79d3249140c9937ca9d011113e91e60df14859354c455246839355 |
Close
Hashes for bondzai.media_handler-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a3e6d3196bbbf642beea7d79181fe8086ff479fd7aeceeacb42a1e75c97cfe |
|
MD5 | 4fd6028e2890862472feabb400f4ffeb |
|
BLAKE2b-256 | e8cd82fef73de14961c10ecf937fb20aebc59f3e11520fb94a2ef70e9606fa5b |