Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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")
Metadata
Release files for bondzai.media-handler 0.0.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bondzai.media-handler-0.0.19.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bondzai.media_handler-0.0.19-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / bondzai.media-handler-0.0.19.tar.gz
| Download URL | bondzai.media-handler-0.0.19.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71c9f61a2cd8f31d3574269b4a123c4901512191f6cf2ed8f0a5d39385f221c1
|
|
BLAKE2b-256 checksum How to use checksums |
3e6d83427f104dde46645e1eb97fdebc7d615eb26496891f7a9e0f262badc529
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.15
|
Release files / bondzai.media_handler-0.0.19-py3-none-any.whl
| Download URL | bondzai.media_handler-0.0.19-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcfd6e4ca8fde87e3381dc4213e6ea4f67e1cbad9da21ff2fa5b6e188e050cd1
|
|
BLAKE2b-256 checksum How to use checksums |
8fa8e0646ca4b00a0e29100d091fb2a26c7336cbfb62e18f34642cd7b75ae413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.15
|