Project: ffmpy

A simple Python wrapper for ffmpeg

Project Details

Latest version
0.3.1
Home Page
https://github.com/Ch00k/ffmpy
PyPI Page
https://pypi.org/project/ffmpy/

Project Popularity

PageRank
0.001489686220474292
Number of downloads
2045842

.. 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 simplistic FFmpeg <http://ffmpeg.org/>_ command line wrapper. It implements a Pythonic interface for FFmpeg command line compilation and uses Python subprocess <https://docs.python.org/2/library/subprocess.html>_ module to execute compiled command line.

Installation

You guessed it::

pip install ffmpy

Quick example

.. code:: python

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

This will take 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 <http://ffmpy.readthedocs.io/en/latest/examples.html>_ section for usage examples.

License

ffmpy is licensed under the terms of MIT license