Bondzai Media Handler
=====================
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
.. code:: bash
apt-get install ffmpeg
MacOS (Homebrew)
.. code:: bash
brew install ffmpeg
bondzai.media-handler
'''''''''''''''''''''
.. code:: bash
pip install bondzai.media-handler
Usage
~~~~~
.. code:: python
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")
Raw data
{
"_id": null,
"home_page": "",
"name": "bondzai.media-handler",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "davinsy,bondzai,media",
"author": "Bondzai",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/89/81/4628c904e36190f22cf22d85822af5e57fef90264334f91777e417bf79c2/bondzai.media-handler-0.0.15.tar.gz",
"platform": null,
"description": "Bondzai Media Handler\n=====================\n\nDescription\n~~~~~~~~~~~\n\nBondzai Media Handler is a tool used to convert media data (audio,\nimage, video) file to a raw binary file. For the present, the file's\nMime accepted are the following:\n\n- Audio\n\n - audio/x-wav\n - audio/mpeg\n\n- Image\n\n - image/jpeg\n - image/png\n - image/tiff\n\n- Video\n\n - video/mp4\n - video/quicktime\n - video/webm\n\nInstallation\n~~~~~~~~~~~~\n\nffmpeg\n''''''\n\nIn order to work, this tool needs ``ffmpeg`` installed\n\nLinux/Ubuntu\n\n.. code:: bash\n\n apt-get install ffmpeg\n\nMacOS (Homebrew)\n\n.. code:: bash\n\n brew install ffmpeg\n \n\nbondzai.media-handler\n'''''''''''''''''''''\n\n.. code:: bash\n\n pip install bondzai.media-handler\n\nUsage\n~~~~~\n\n.. code:: python\n\n from bondzai.media_handler import get_raw_data, get_metadata, \\\n save_binary, load_binary\n\n # Getting raw data from a media file\n data = get_raw_data(\"path/to/file.[mp3|mp4|wav|webm|jpg|png|...]\")\n\n # Getting meta data from a media file\n meta = get_metadata(\"path/to/file.[mp3|mp4|wav|webm|jpg|png|...]\")\n\n # Saving raw data in a binary file\n save_binary(\"path/to/file.bin\", data)\n\n # Loading raw data from a binary file\n data = load_binary(\"path/to/file.bin\")\n\n\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "Bondzai Media Handler",
"version": "0.0.15",
"project_urls": null,
"split_keywords": [
"davinsy",
"bondzai",
"media"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ac7ff218ee5e3b13a9480b98c42f20927b1d2531339c384e78adef4ab87ffd44",
"md5": "20479cf00b03ea53a989ce8d19b468bb",
"sha256": "159c5750b2b5d6a55d5a645baa4ac67af2a628ac968d3fb0b85975ba098c7d2e"
},
"downloads": -1,
"filename": "bondzai.media_handler-0.0.15-py3-none-any.whl",
"has_sig": false,
"md5_digest": "20479cf00b03ea53a989ce8d19b468bb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 34310,
"upload_time": "2023-08-29T17:05:44",
"upload_time_iso_8601": "2023-08-29T17:05:44.062308Z",
"url": "https://files.pythonhosted.org/packages/ac/7f/f218ee5e3b13a9480b98c42f20927b1d2531339c384e78adef4ab87ffd44/bondzai.media_handler-0.0.15-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "89814628c904e36190f22cf22d85822af5e57fef90264334f91777e417bf79c2",
"md5": "715e3f150e473f1889aa13aee4f909e5",
"sha256": "b5a379d1eb5f1f0cb669dbd82384bb4000127b18cb633ea8475c5ed00b44f138"
},
"downloads": -1,
"filename": "bondzai.media-handler-0.0.15.tar.gz",
"has_sig": false,
"md5_digest": "715e3f150e473f1889aa13aee4f909e5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18738,
"upload_time": "2023-08-29T17:05:46",
"upload_time_iso_8601": "2023-08-29T17:05:46.538146Z",
"url": "https://files.pythonhosted.org/packages/89/81/4628c904e36190f22cf22d85822af5e57fef90264334f91777e417bf79c2/bondzai.media-handler-0.0.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-29 17:05:46",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bondzai.media-handler"
}