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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f9e184fd134580d97fa0ece66d8dd743a3ee064fc02cd0a0120ecfc4f34531 |
|
MD5 | 596c50e5d41e5c3df04b8a56f0b5e086 |
|
BLAKE2b-256 | c4aea4922535e51a86285775896df345b4d03b8b0886de8d01c8dc0038c8b63e |
Close
Hashes for bondzai.media_handler-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1814a1deba1f3e189023b9d336e83b9d7e2e2196c6c1de3867b37b544627dc5 |
|
MD5 | 3d67d3efc10e0676be27df1aceaf9892 |
|
BLAKE2b-256 | 4e46d16b35f7085d271a267708da078215a5386ea7e84f83739ab1849a4aee81 |