Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bondzai.media-handler-0.0.13.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

bondzai.media_handler-0.0.13-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file bondzai.media-handler-0.0.13.tar.gz.

File metadata

File hashes

Hashes for bondzai.media-handler-0.0.13.tar.gz
Algorithm Hash digest
SHA256 947509f4b4763c89178105fc1f2fc18b5c089eafff5238f62664265c6459beed
MD5 d881f56c1e9e925d464f996635151735
BLAKE2b-256 f39a2279beef6296c074088a7876968eba8707df68f2baf7c452b88f74b04f9c

See more details on using hashes here.

File details

Details for the file bondzai.media_handler-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for bondzai.media_handler-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 da77caccfa3a1f0b3da210dea8d1c4b7cbc23350cf9d68f7ff96fa160d4e3dbf
MD5 a3ffe0264c8e956c1ee8627dfe8efcbc
BLAKE2b-256 dfe28bb4af69d0f1bbe2c47f2b5cc4e9654b6b3c4e2319f8409debd7db5589e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page