Metadata-Version: 2.1
Name: ffmpy
Version: 0.4.0
Summary: A simple Python wrapper for FFmpeg
Home-page: https://github.com/Ch00k/ffmpy
License: MIT
Keywords: ffmpeg,ffprobe,ffplay,ffserver,wrapper,media,audio,video,transcoding
Author: Andrii Yurchuk
Author-email: ay@mntw.re
Requires-Python: >=3.8.1,<4.0.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Multimedia :: Sound/Audio
Project-URL: Documentation, https://ffmpy.readthedocs.io
Project-URL: Repository, https://github.com/Ch00k/ffmpy
Description-Content-Type: text/x-rst
.. image:: https://github.com/Ch00k/ffmpy/workflows/test/badge.svg
:target: https://github.com/Ch00k/ffmpy/actions
:alt: Tests
.. image:: https://codecov.io/gh/Ch00k/ffmpy/branch/master/graphs/badge.svg
:target: https://codecov.io/github/Ch00k/ffmpy
:alt: Coverage
.. image:: https://readthedocs.org/projects/ffmpy/badge/?version=latest
:target: http://ffmpy.readthedocs.io/en/latest/?badge=latest
:alt: Documentation
.. image:: https://img.shields.io/pypi/v/ffmpy.svg
:target: https://pypi.python.org/pypi/ffmpy
:alt: Latest version
ffmpy
=====
*ffmpy* is a simple `FFmpeg `_ command line wrapper. It implements a Pythonic interface for FFmpeg command line compilation and uses Python's `subprocess `_ to execute the compiled command line.
*ffmpy* requires Python 3.8 or greater.
Installation
------------
::
pip install ffmpy
Quick example
-------------
.. code:: python
from ffmpy import FFmpeg
ff = FFmpeg(
inputs={'input.mp4': None},
outputs={'output.avi': None}
)
ff.run()
This will take the ``input.mp4`` file in the current directory as the input, change the video container from MP4 to AVI without changing any other video parameters, and create a new output file ``output.avi`` in the current directory.
Documentation
-------------
http://ffmpy.rtfd.io
See `Examples `_ section for usage examples.
License
-------
ffmpy is licensed under the terms of MIT license