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.11.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

bondzai.media_handler-0.0.11-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bondzai.media-handler-0.0.11.tar.gz
Algorithm Hash digest
SHA256 46771e27f437298b35dcff85a3a2cc082806d2195b89417903998b38b642e0ae
MD5 fb3df2580294659069f1390ac931931c
BLAKE2b-256 bd964b2036bec2962738cfffc73cb78e9a95c481537d16a40643db903d920a37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bondzai.media_handler-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3622eeed432567aa51ea3a1fd7b83adf795bd9e82e42d135cb76c50c11b0256b
MD5 bd98c8c858a869b54cacbe6346909442
BLAKE2b-256 e4b82138047aeee017999def85a5fee92077735e7543de8d29750aa62cce8f29

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