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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5a379d1eb5f1f0cb669dbd82384bb4000127b18cb633ea8475c5ed00b44f138 |
|
MD5 | 715e3f150e473f1889aa13aee4f909e5 |
|
BLAKE2b-256 | 89814628c904e36190f22cf22d85822af5e57fef90264334f91777e417bf79c2 |
Close
Hashes for bondzai.media_handler-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 159c5750b2b5d6a55d5a645baa4ac67af2a628ac968d3fb0b85975ba098c7d2e |
|
MD5 | 20479cf00b03ea53a989ce8d19b468bb |
|
BLAKE2b-256 | ac7ff218ee5e3b13a9480b98c42f20927b1d2531339c384e78adef4ab87ffd44 |