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

Uploaded Source

Built Distribution

bondzai.media_handler-0.0.14-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bondzai.media-handler-0.0.14.tar.gz
Algorithm Hash digest
SHA256 74f6a0eb1fdb54c4e38fb820db36602816215cee0900e26d1d41358081953149
MD5 f4e2c8135dcbdda56f3e335cae1d18ea
BLAKE2b-256 23d1287e970aa0f280070480715bc31bab5fdd878ea2db589e4a46942556d4d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bondzai.media_handler-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 44022d49d7f38b0738f57c44ef881a48a9fe1ff87d8549fe1a5f972dae48b33f
MD5 ae70d468281d76c3e9cd367b6a0f0709
BLAKE2b-256 732998a14691f547e9303ae5d64db9708c6b158ecb24b277a8dfd532fbc083ae

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