in ,

kkroening / ffmpeg-python, Hacker News

kkroening / ffmpeg-python, Hacker News


                    

        

[dev] ************

[dev] ********************** [dev]

Build status************************

There are tons of Python FFmpeg wrappers out there but they seem to lack complex filter support. ffmpeg-python

works well for simple as well as complex signal graphs.

**************************** [dev] **************************** (******************** Quickstart

Flip a video horizontally:

) ffmpeg.run (stream)

Or if you prefer a fluent interface:

************

The corresponding command-line arguments are pretty gnarly:

ffmpeg -i input.mp4 -i overlay.png -filter_complex

),     )     .overlay (overlay_file.hflip ())     .drawbox (

********************************************************************************************************************************** (**********************************,

Real-world signal graphs can get a heck of a lot more complex, but (ffmpeg-python) handles arbitrarily large (directed-acyclic) signal graphs.

****************************************

********************** (Installation

The latest version offfmpeg-pythoncan be acquired via a typical pip install : (********************************** [dev] pip install ffmpeg-python

Or the source can be cloned and installed from locally:

git clone [email protected]: kkroening / ffmpeg-python.git pip install -e ./ffmpeg-python**************************************

****************************************

When in doubt, take a look at the examplesBuild statusto see if there's something that's close to whatever you're trying to do.Build status

Here are a few:

(Convert video to numpy arrayBuild status