Skip to main content

ffmpeg-asyncio

A fork of the excellent python-ffmpeg 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:

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())

Metadata

Release files for ffmpeg-asyncio 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffmpeg-asyncio 0.1.3
File Size Uploaded
ffmpeg_asyncio-0.1.3.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ffmpeg-asyncio 0.1.3
File Interpreter ABI Platform
ffmpeg_asyncio-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / ffmpeg_asyncio-0.1.3.tar.gz

Download URL ffmpeg_asyncio-0.1.3.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
58813a8609c64c03b53470a555e817fd3ba6f59445890d808bb81aa4d42742a0
BLAKE2b-256 checksum
How to use checksums
e9dbf211ef2582b02aef5332c3e40abc421c333316e6307b49317a37a4548617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / ffmpeg_asyncio-0.1.3-py3-none-any.whl

Download URL ffmpeg_asyncio-0.1.3-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c74331bc39c4b3f1f9395de3c347a6e6824588baf00541c9a4902b3a13ac18a
BLAKE2b-256 checksum
How to use checksums
b7777cda70883c66cbe1453291ab0eca6f447a01c87064f217250ac704cd2641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page