A simple wrapper for ffmpeg-cli
Python Shell
Permalink
Failed to load latest commit information.
docs Rename Option to Parameter Mar 16, 2012
ffmpegwrapper
.gitignore Add .gitignore entry Mar 16, 2012
LICENSE It's 2013 Jan 19, 2013
README.rst Add a README and a LICENSE file Mar 16, 2012
setup.cfg Make a test for FFmpegProcess Jan 18, 2012
setup.py
test.py

README.rst

FFmpegWrapper

FFmpegWrapper is a small wrapper for the ffmpeg encoder. You can append Codec, Filters and other parameterStores to the FFmpeg class and then run the resulting command.

>>> from ffmpegwrapper import FFmpeg, Input, Output, VideoCodec, VideoFilter
>>> videofilter = VideoFilter().crop(300, 200)
>>> codec = VideoCodec('webm')
>>> input_video = Input('old')
>>> output_video = Output('new', videofilter, codec)
>>> FFmpeg('ffmpeg', input_video, output_video)
<FFmpeg ['ffmpeg', '-i', 'old', '-vf', 'crop=300:200', '-vcodec', 'webm', 'new']>