# pyffmpeg | [![Downloads](https://static.pepy.tech/personalized-badge/pyffmpeg?period=week&units=international_system&left_color=black&right_color=brightgreen&left_text=Downloads/week)](https://pepy.tech/project/pyffmpeg)
FFmpeg wrapper for python. It uses the most up-to-date FFmpeg binary to provide both FFmpeg and FFprobe functionality. So you can kill two birds with one stone.
The beautiful thing about this is that it comes with it's own FFmpeg executable. It is compressed, making it the smallest one you can find. Becuase it's cross-platform and python 3, it is the only option available for building cross-platform apps with ffmpeg in python.
## FFmpeg Version
Uses current FFmpeg version
## Installation
pip install pyffmpeg
## Usage
### FFmpeg
```python
from pyffmpeg import FFmpeg
inp = 'path/to/music_folder/f.mp4'
out = 'path/to/music_folder/f.mp3'
ff = FFmpeg()
output_file = ff.convert(inp, out)
print(output_file)
```
### FFprobe
Provides FFprobe functions and values
```python
from pyffmpeg import FFprobe
input_file = 'path/to/music.mp3'
fp = FFprobe(input_file)
print(fp.duration)
```
will print
```shell
> 00:04:32:32
```
NB: The above digits are just for illustration purposes.
## Wiki
The wiki can be located [here](https://github.com/deuteronomy-works/pyffmpeg/wiki)
## Contributing
Please read [Contributing](https://github.com/deuteronomy-works/pyffmpeg/wiki/How-to-Contribute)
## Legal
This library uses prebuilt binaries of <a href=http://ffmpeg.org>FFmpeg</a> licensed under the <a href=http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>LGPLv2.1</a> and can be downloaded via the following links:
* Mac - <a href="https://evermeet.cx/ffmpeg/">here</a>
* Linux - <a href="https://johnvansickle.com/ffmpeg/">here</a>
* Windows - <a href="https://www.gyan.dev/ffmpeg/builds/">here</a>
Raw data
{
"_id": null,
"home_page": "https://github.com/deuteronomy-works/pyffmpeg",
"name": "pyffmpeg",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "ffmpeg,FFmpeg,ffprobe,FFprobe,album art,cover art,metadata,conversion,converting,audio,video",
"author": "Amoh - Gyebi Godwin Ampofo Michael",
"author_email": "amohgyebigodwin@gmail.com",
"download_url": "",
"platform": null,
"description": "# pyffmpeg | [![Downloads](https://static.pepy.tech/personalized-badge/pyffmpeg?period=week&units=international_system&left_color=black&right_color=brightgreen&left_text=Downloads/week)](https://pepy.tech/project/pyffmpeg)\n\n\nFFmpeg wrapper for python. It uses the most up-to-date FFmpeg binary to provide both FFmpeg and FFprobe functionality. So you can kill two birds with one stone.\n\nThe beautiful thing about this is that it comes with it's own FFmpeg executable. It is compressed, making it the smallest one you can find. Becuase it's cross-platform and python 3, it is the only option available for building cross-platform apps with ffmpeg in python.\n\n## FFmpeg Version\nUses current FFmpeg version\n\n## Installation\n pip install pyffmpeg\n\n## Usage\n### FFmpeg\n```python\nfrom pyffmpeg import FFmpeg\n\ninp = 'path/to/music_folder/f.mp4'\nout = 'path/to/music_folder/f.mp3'\n\nff = FFmpeg()\n\noutput_file = ff.convert(inp, out)\n\nprint(output_file)\n\n```\n\n### FFprobe\nProvides FFprobe functions and values\n\n\n```python\nfrom pyffmpeg import FFprobe\n\ninput_file = 'path/to/music.mp3'\nfp = FFprobe(input_file)\n\nprint(fp.duration)\n```\nwill print\n```shell\n> 00:04:32:32\n```\nNB: The above digits are just for illustration purposes.\n\n\n## Wiki\nThe wiki can be located [here](https://github.com/deuteronomy-works/pyffmpeg/wiki)\n\n\n## Contributing\nPlease read [Contributing](https://github.com/deuteronomy-works/pyffmpeg/wiki/How-to-Contribute)\n\n## Legal\nThis library uses prebuilt binaries of <a href=http://ffmpeg.org>FFmpeg</a> licensed under the <a href=http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>LGPLv2.1</a> and can be downloaded via the following links:\n * Mac - <a href=\"https://evermeet.cx/ffmpeg/\">here</a>\n * Linux - <a href=\"https://johnvansickle.com/ffmpeg/\">here</a>\n * Windows - <a href=\"https://www.gyan.dev/ffmpeg/builds/\">here</a>\n",
"bugtrack_url": null,
"license": "",
"summary": "FFmpeg wrapper for python",
"version": "2.4.2.18.1",
"project_urls": {
"Homepage": "https://github.com/deuteronomy-works/pyffmpeg"
},
"split_keywords": [
"ffmpeg",
"ffmpeg",
"ffprobe",
"ffprobe",
"album art",
"cover art",
"metadata",
"conversion",
"converting",
"audio",
"video"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2e71f61359785db0c305613f7f5c2b65ebf87c8b10abd35d3f9e7c1ed7b5f0ab",
"md5": "86b9735cb94c7ef57a9fe20406f7177f",
"sha256": "c6b5148ee7aca95fb6756919b54d59fe4d417a6b0d5acfa92bc7f5a97cd15973"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_universal2.whl",
"has_sig": false,
"md5_digest": "86b9735cb94c7ef57a9fe20406f7177f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17511523,
"upload_time": "2023-10-06T04:13:50",
"upload_time_iso_8601": "2023-10-06T04:13:50.753960Z",
"url": "https://files.pythonhosted.org/packages/2e/71/f61359785db0c305613f7f5c2b65ebf87c8b10abd35d3f9e7c1ed7b5f0ab/pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "380d1d79ef56994be6831cd3bf4b2865bcfc05acc2b15d46a20cce5065e01488",
"md5": "6eb55fe95cc96a02c3742a6c765766ca",
"sha256": "9347a1ae00225b4561dcb7543b91bc9ee3d36cbdfcefa7897e3672af0d299362"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "6eb55fe95cc96a02c3742a6c765766ca",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17511523,
"upload_time": "2023-10-06T04:13:54",
"upload_time_iso_8601": "2023-10-06T04:13:54.067487Z",
"url": "https://files.pythonhosted.org/packages/38/0d/1d79ef56994be6831cd3bf4b2865bcfc05acc2b15d46a20cce5065e01488/pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "78da2f5fe8413098595ccf5937ea34dab67859dc37566b2c8846078f134bad02",
"md5": "19abf0c934efb2ed38b7c082d64b8a66",
"sha256": "72c720ef7ae24866de810160f45ddbcef2e43e5c2eae64cff1515c65f07d4312"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "19abf0c934efb2ed38b7c082d64b8a66",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17511523,
"upload_time": "2023-10-06T04:13:57",
"upload_time_iso_8601": "2023-10-06T04:13:57.659189Z",
"url": "https://files.pythonhosted.org/packages/78/da/2f5fe8413098595ccf5937ea34dab67859dc37566b2c8846078f134bad02/pyffmpeg-2.4.2.18.1-py3-none-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8f8d05b55d123d9cc67c7d247752a8d75184788f36a137188230850887572053",
"md5": "1bfd3578b7492a6dff31a3bb5e63bb75",
"sha256": "4a2b98be15f442150cd33decea53e94e2b279fe69de30c3d94715b76bfbdc696"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "1bfd3578b7492a6dff31a3bb5e63bb75",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 16976649,
"upload_time": "2023-10-06T04:30:30",
"upload_time_iso_8601": "2023-10-06T04:30:30.115970Z",
"url": "https://files.pythonhosted.org/packages/8f/8d/05b55d123d9cc67c7d247752a8d75184788f36a137188230850887572053/pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "93e7622c67c34a8ff1464b0047637aecdf9cb0377c26ec430fff725eecf0e9e5",
"md5": "a24bd0937f614c3b220d00cb3b6751ae",
"sha256": "d613a38ed716e33c67c851382061ef1ae5cbaa8b010db73adac7745f885b0b99"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "a24bd0937f614c3b220d00cb3b6751ae",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 16976649,
"upload_time": "2023-10-06T04:30:33",
"upload_time_iso_8601": "2023-10-06T04:30:33.835470Z",
"url": "https://files.pythonhosted.org/packages/93/e7/622c67c34a8ff1464b0047637aecdf9cb0377c26ec430fff725eecf0e9e5/pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "794f40d63a9fd3927fc3d1c3ee6309c0eb65edc4ff0df8192e42dc7859735a3e",
"md5": "1e1bf090cf8d440fabfb74b53b91d732",
"sha256": "ce40aedc88ebdc2095afe44fa95ebb0221d57696a943373962bfb20532a48ea6"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-win32.whl",
"has_sig": false,
"md5_digest": "1e1bf090cf8d440fabfb74b53b91d732",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 41008844,
"upload_time": "2023-10-06T04:15:50",
"upload_time_iso_8601": "2023-10-06T04:15:50.170583Z",
"url": "https://files.pythonhosted.org/packages/79/4f/40d63a9fd3927fc3d1c3ee6309c0eb65edc4ff0df8192e42dc7859735a3e/pyffmpeg-2.4.2.18.1-py3-none-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "673917391146ef0673569a443e6921bedb2712cc92656dd7334fefd78fc02fe1",
"md5": "8dc40e041fbaa9aa07bcaf992c85488d",
"sha256": "0f04fa1c3f730442eaccf9fe09341fb463419a5ec6b8f8c854c10eeadd082dd5"
},
"downloads": -1,
"filename": "pyffmpeg-2.4.2.18.1-py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "8dc40e041fbaa9aa07bcaf992c85488d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 41008844,
"upload_time": "2023-10-06T04:15:53",
"upload_time_iso_8601": "2023-10-06T04:15:53.935463Z",
"url": "https://files.pythonhosted.org/packages/67/39/17391146ef0673569a443e6921bedb2712cc92656dd7334fefd78fc02fe1/pyffmpeg-2.4.2.18.1-py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-06 04:13:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "deuteronomy-works",
"github_project": "pyffmpeg",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pyffmpeg"
}