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
File details
Details for the file bondzai.media-handler-0.0.13.tar.gz
.
File metadata
- Download URL: bondzai.media-handler-0.0.13.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947509f4b4763c89178105fc1f2fc18b5c089eafff5238f62664265c6459beed |
|
MD5 | d881f56c1e9e925d464f996635151735 |
|
BLAKE2b-256 | f39a2279beef6296c074088a7876968eba8707df68f2baf7c452b88f74b04f9c |
File details
Details for the file bondzai.media_handler-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: bondzai.media_handler-0.0.13-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da77caccfa3a1f0b3da210dea8d1c4b7cbc23350cf9d68f7ff96fa160d4e3dbf |
|
MD5 | a3ffe0264c8e956c1ee8627dfe8efcbc |
|
BLAKE2b-256 | dfe28bb4af69d0f1bbe2c47f2b5cc4e9654b6b3c4e2319f8409debd7db5589e9 |