ffmpy3


Nameffmpy3 JSON
Version 0.2.4 PyPI version JSON
download
home_pagehttps://github.com/wchill/ffmpy3
SummaryA simple asynchronous Python wrapper for ffmpeg
upload_time2021-06-24 22:47:37
maintainer
docs_urlNone
authorEric Ahn
requires_python
licenseMIT
keywords ffmpeg ffprobe wrapper audio video transcoding
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/pypi/v/ffmpy3.svg
    :target: https://pypi.python.org/pypi/ffmpy3
    :alt: Latest version

.. image:: https://travis-ci.org/wchill/ffmpy3.svg?branch=master
    :target: https://travis-ci.org/wchill/ffmpy3
    :alt: Travis-CI

.. image:: https://readthedocs.org/projects/ffmpy3/badge/?version=latest
    :target: http://ffmpy3.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


ffmpy3
======
ffmpy3 is a fork of ffmpy, a simplistic `FFmpeg <http://ffmpeg.org/>`_ command line wrapper. ffmpy implements a Pythonic interface for executing FFmpeg via command line and uses Python's `subprocess <https://docs.python.org/3/library/subprocess.html>`_ module for synchronous execution. Asynchronous execution using `yield from` or `await` is also supported using Python's `asyncio.subprocess <https://docs.python.org/3/library/asyncio-subprocess.html>`_ module.

Installation
------------
You guessed it::

  pip install ffmpy3

Quick example
-------------
The following code snippet executes FFmpeg synchronously, taking ``input.mp4`` from the current directory as the input. It remuxes the contents of ``input.mp4`` into a new file called ``output.avi`` which is saved in the current directory.

.. code:: python

  >>> import ffmpy3
  >>> ff = ffmpy3.FFmpeg(
  ...     inputs={'input.mp4': None},
  ...     outputs={'output.avi': None}
  ... )
  >>> ff.run()

The following code snippet does the same thing as above, but executes FFmpeg asynchronously.

.. code:: python

  >>> ff = ffmpy3.FFmpeg(
  ...     inputs={'input.mp4': None},
  ...     outputs={'output.avi': None}
  ... )
  >>> ff.run_async()
  >>> await ff.wait()

Documentation
-------------
http://ffmpy3.rtfd.io

See `Examples <http://ffmpy3.readthedocs.io/en/latest/examples.html>`_ section for usage examples.

License
-------
ffmpy3 is licensed under the terms of the MIT license.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wchill/ffmpy3",
    "name": "ffmpy3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ffmpeg ffprobe wrapper audio video transcoding",
    "author": "Eric Ahn",
    "author_email": "w@chill.dev",
    "download_url": "https://files.pythonhosted.org/packages/77/4c/acd9dd8efb0907bacab30176ab443e552b10dd8b7a8dc5f82e4e43fe5277/ffmpy3-0.2.4.tar.gz",
    "platform": "",
    "description": ".. image:: https://img.shields.io/pypi/v/ffmpy3.svg\n    :target: https://pypi.python.org/pypi/ffmpy3\n    :alt: Latest version\n\n.. image:: https://travis-ci.org/wchill/ffmpy3.svg?branch=master\n    :target: https://travis-ci.org/wchill/ffmpy3\n    :alt: Travis-CI\n\n.. image:: https://readthedocs.org/projects/ffmpy3/badge/?version=latest\n    :target: http://ffmpy3.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n\nffmpy3\n======\nffmpy3 is a fork of ffmpy, a simplistic `FFmpeg <http://ffmpeg.org/>`_ command line wrapper. ffmpy implements a Pythonic interface for executing FFmpeg via command line and uses Python's `subprocess <https://docs.python.org/3/library/subprocess.html>`_ module for synchronous execution. Asynchronous execution using `yield from` or `await` is also supported using Python's `asyncio.subprocess <https://docs.python.org/3/library/asyncio-subprocess.html>`_ module.\n\nInstallation\n------------\nYou guessed it::\n\n  pip install ffmpy3\n\nQuick example\n-------------\nThe following code snippet executes FFmpeg synchronously, taking ``input.mp4`` from the current directory as the input. It remuxes the contents of ``input.mp4`` into a new file called ``output.avi`` which is saved in the current directory.\n\n.. code:: python\n\n  >>> import ffmpy3\n  >>> ff = ffmpy3.FFmpeg(\n  ...     inputs={'input.mp4': None},\n  ...     outputs={'output.avi': None}\n  ... )\n  >>> ff.run()\n\nThe following code snippet does the same thing as above, but executes FFmpeg asynchronously.\n\n.. code:: python\n\n  >>> ff = ffmpy3.FFmpeg(\n  ...     inputs={'input.mp4': None},\n  ...     outputs={'output.avi': None}\n  ... )\n  >>> ff.run_async()\n  >>> await ff.wait()\n\nDocumentation\n-------------\nhttp://ffmpy3.rtfd.io\n\nSee `Examples <http://ffmpy3.readthedocs.io/en/latest/examples.html>`_ section for usage examples.\n\nLicense\n-------\nffmpy3 is licensed under the terms of the MIT license.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple asynchronous Python wrapper for ffmpeg",
    "version": "0.2.4",
    "project_urls": {
        "Homepage": "https://github.com/wchill/ffmpy3"
    },
    "split_keywords": [
        "ffmpeg",
        "ffprobe",
        "wrapper",
        "audio",
        "video",
        "transcoding"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a55fbb239b798da618428674b849334b2c6971f8e23c95e4436ec71fea66135c",
                "md5": "463e3ee9ef5f34b7c523131546163255",
                "sha256": "092521e5f0e1974a1b4850d0e283d9d893d0b830216ddd2a44c6eaf463f8a365"
            },
            "downloads": -1,
            "filename": "ffmpy3-0.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "463e3ee9ef5f34b7c523131546163255",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6032,
            "upload_time": "2021-06-24T22:47:36",
            "upload_time_iso_8601": "2021-06-24T22:47:36.162088Z",
            "url": "https://files.pythonhosted.org/packages/a5/5f/bb239b798da618428674b849334b2c6971f8e23c95e4436ec71fea66135c/ffmpy3-0.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "774cacd9dd8efb0907bacab30176ab443e552b10dd8b7a8dc5f82e4e43fe5277",
                "md5": "734a1bd820a9d22381b2d549adcc9235",
                "sha256": "fffb1b9e3efc95e94a02b01f29f24ee8177b86329aec8a8af078bf2a42b03094"
            },
            "downloads": -1,
            "filename": "ffmpy3-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "734a1bd820a9d22381b2d549adcc9235",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5700,
            "upload_time": "2021-06-24T22:47:37",
            "upload_time_iso_8601": "2021-06-24T22:47:37.519371Z",
            "url": "https://files.pythonhosted.org/packages/77/4c/acd9dd8efb0907bacab30176ab443e552b10dd8b7a8dc5f82e4e43fe5277/ffmpy3-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-06-24 22:47:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wchill",
    "github_project": "ffmpy3",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "ffmpy3"
}
        
Elapsed time: 3.47459s