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.18.tar.gz
.
File metadata
- Download URL: bondzai.media-handler-0.0.18.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f863f397c06d5a5592a0f9a1940deadf8cc6c7d33feaa6eec8c0d09b5a8292f |
|
MD5 | 7ab3346a589b4ce6c6d40c63d66f7617 |
|
BLAKE2b-256 | 6b0396935b049ab8178074aff566b4b1996ec187176de4ac0e37dae4caea125e |
File details
Details for the file bondzai.media_handler-0.0.18-py3-none-any.whl
.
File metadata
- Download URL: bondzai.media_handler-0.0.18-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6947fa52a921cf06988a46e5cbe45a0fd3b52f7da427df14cb9e623aaab4f7 |
|
MD5 | b7fc316b7839b29f34bee9a71905f5c3 |
|
BLAKE2b-256 | 0a6ad40cf5bb101f4ff3e0a0421d4d3b7f82502a45db77e90a89647231665d30 |