Name | ffmpeg-asyncio JSON |
Version |
0.1.3
JSON |
| download |
home_page | None |
Summary | A fork of the excellent python-ffmpeg binding for FFmpeg, updated for native async API support only. |
upload_time | 2024-07-09 11:26:42 |
maintainer | None |
docs_url | None |
author | Bruce Cutler |
requires_python | >=3.6 |
license | Copyright 2023 Bruce Cutler Copyright 2023 Jonghwan Hyeon Copyright for portions of this project are held by Jonghwan Hyeon as part of project ffmpeg-python. All other copyright for this project are held by Bruce Cutler. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
ffmpeg
asyncio
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# ffmpeg-asyncio
A fork of the excellent [`python-ffmpeg`](https://python-ffmpeg.readthedocs.io) binding for FFmpeg, updated for native async API support only.
The primary difference from the upstream library's async API is handling of abnormal exit by FFmpeg. Rather than raising an exception, an event will be emitted, allowing async handling.
Example usage:
```python
import asyncio
from ffmpeg_asyncio import FFmpeg, Progress
async def main():
ffmpeg = (
FFmpeg()
.input("input.mp4")
.output("output.mp4")
)
@ffmpeg.on("progress")
def on_progress(progress: Progress):
print(progress)
@ffmpeg.on("completed")
def completed():
print("Finished!")
@ffmpeg.on("terminated")
def exited(return_code: int):
print("Oh no!")
await ffmpeg.execute()
if __name__ == "__main__":
asyncio.run(main())
```
Raw data
{
"_id": null,
"home_page": null,
"name": "ffmpeg-asyncio",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "ffmpeg, asyncio",
"author": "Bruce Cutler",
"author_email": "Bruce Cutler <bruce@sumebrius.net>",
"download_url": "https://files.pythonhosted.org/packages/e9/db/f211ef2582b02aef5332c3e40abc421c333316e6307b49317a37a4548617/ffmpeg_asyncio-0.1.3.tar.gz",
"platform": null,
"description": "# ffmpeg-asyncio\n\nA fork of the excellent [`python-ffmpeg`](https://python-ffmpeg.readthedocs.io) binding for FFmpeg, updated for native async API support only.\n\nThe primary difference from the upstream library's async API is handling of abnormal exit by FFmpeg. Rather than raising an exception, an event will be emitted, allowing async handling.\n\nExample usage:\n\n```python\nimport asyncio\n\nfrom ffmpeg_asyncio import FFmpeg, Progress\n\n\nasync def main():\n ffmpeg = (\n FFmpeg()\n .input(\"input.mp4\")\n .output(\"output.mp4\")\n )\n\n @ffmpeg.on(\"progress\")\n def on_progress(progress: Progress):\n print(progress)\n\n @ffmpeg.on(\"completed\")\n def completed():\n print(\"Finished!\")\n\n @ffmpeg.on(\"terminated\")\n def exited(return_code: int):\n print(\"Oh no!\")\n\n await ffmpeg.execute()\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "Copyright 2023 Bruce Cutler Copyright 2023 Jonghwan Hyeon Copyright for portions of this project are held by Jonghwan Hyeon as part of project ffmpeg-python. All other copyright for this project are held by Bruce Cutler. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "A fork of the excellent python-ffmpeg binding for FFmpeg, updated for native async API support only.",
"version": "0.1.3",
"project_urls": null,
"split_keywords": [
"ffmpeg",
" asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b7777cda70883c66cbe1453291ab0eca6f447a01c87064f217250ac704cd2641",
"md5": "b8cbcaf50cd252f7e59da3156dd71d11",
"sha256": "8c74331bc39c4b3f1f9395de3c347a6e6824588baf00541c9a4902b3a13ac18a"
},
"downloads": -1,
"filename": "ffmpeg_asyncio-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8cbcaf50cd252f7e59da3156dd71d11",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9894,
"upload_time": "2024-07-09T11:26:41",
"upload_time_iso_8601": "2024-07-09T11:26:41.416562Z",
"url": "https://files.pythonhosted.org/packages/b7/77/7cda70883c66cbe1453291ab0eca6f447a01c87064f217250ac704cd2641/ffmpeg_asyncio-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e9dbf211ef2582b02aef5332c3e40abc421c333316e6307b49317a37a4548617",
"md5": "0dbea7347d42974dae17cbd6db9153e9",
"sha256": "58813a8609c64c03b53470a555e817fd3ba6f59445890d808bb81aa4d42742a0"
},
"downloads": -1,
"filename": "ffmpeg_asyncio-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "0dbea7347d42974dae17cbd6db9153e9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 9619,
"upload_time": "2024-07-09T11:26:42",
"upload_time_iso_8601": "2024-07-09T11:26:42.862754Z",
"url": "https://files.pythonhosted.org/packages/e9/db/f211ef2582b02aef5332c3e40abc421c333316e6307b49317a37a4548617/ffmpeg_asyncio-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-09 11:26:42",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ffmpeg-asyncio"
}