Skip to main content

A simple Python wrapper for FFmpeg

Project description

Tests Coverage Documentation 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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffmpy-0.4.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

ffmpy-0.4.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page