Pythonic interface for FFmpeg/FFprobe command line
Switch branches/tags
Clone or download
Pull request Compare This branch is 1 commit ahead, 4 commits behind Ch00k:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debian
docs
tests
.gitignore
.travis.yml
.venv
LICENSE
README.rst
dev-requirements.txt
ffmpy.py
setup.cfg
setup.py
tox.ini

README.rst

Latest version Travis-CI Documentation Status

ffmpy

ffmpy is a simplystic FFmpeg command line wrapper. It implements a Pythonic interface for FFmpeg command line compilation and uses Python subprocess module to execute compiled command line.

Installation

You guessed it:

pip install ffmpy

Quick example

>>> 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.readthedocs.io/en/latest

See Examples section for usage examples.

License

ffmpy is licensed under the terms of MIT license