FFMpeg

A DSL for building and executing ffmpeg commands.

Requirements

It requires that you already have ffmpeg installed, obviously :)

Install

gem install polly-ffmpeg —source http://gems.github.com

Usage

To build and execute a command you would use the FFMpeg::convert method and then call the FFMpeg::run method like this:

include FFMpeg

convert “file.ext”, :to => “new_file.ext” do     seek “00:01:13”     duration “00:10:01” end.run

For more information checkout the documentation

Credit where credit’s due

Thank’s to jwthompson2, there’s now support for all of the standard video and audio options from the ffmpeg documentation as well as improved and refactored specs.