A simple wrapper for ffmpeg-cli. Currently unmaintained
Go to file
Mathias Köhler be2216e40c
Merge pull request #6 from lxylxy123456/master
Fix Issue 5: allow file name to start with '-'
Thanks lxylxy123456 :)
2018-01-08 13:28:05 +01:00
docs Rename Option to Parameter 2012-03-16 23:10:09 +01:00
ffmpegwrapper Fix Issue 5: allow file name to start with '-' 2018-01-04 23:45:29 +08:00
.gitignore Add .gitignore entry 2012-03-16 23:10:40 +01:00
LICENSE It's 2013 2013-01-19 10:20:41 +01:00
README.rst Add a README and a LICENSE file 2012-03-16 23:12:23 +01:00
setup.cfg Make a test for FFmpegProcess 2012-01-18 22:11:52 +01:00
setup.py Change some string literals for consistency 2013-01-19 10:17:19 +01:00
test.py Use bytes in output queue 2014-09-04 18:37:48 +02:00

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']>