Skip to main content

Bondzai Media Handler

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bondzai.media_handler-0.0.19-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bondzai.media-handler-0.0.19.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.15

File hashes

Hashes for bondzai.media-handler-0.0.19.tar.gz
Algorithm Hash digest
SHA256 71c9f61a2cd8f31d3574269b4a123c4901512191f6cf2ed8f0a5d39385f221c1
MD5 c1ddbb9990f4bb9135825f20ea5bfebe
BLAKE2b-256 3e6d83427f104dde46645e1eb97fdebc7d615eb26496891f7a9e0f262badc529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bondzai.media_handler-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 bcfd6e4ca8fde87e3381dc4213e6ea4f67e1cbad9da21ff2fa5b6e188e050cd1
MD5 4215203c9c2f541e0f27f1263e26c189
BLAKE2b-256 8fa8e0646ca4b00a0e29100d091fb2a26c7336cbfb62e18f34642cd7b75ae413

See more details on using hashes here.

Supported by

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