No commit activity in last 3 years
No release in over 3 years
A Rails plugin that let's you temporarily suppress ActiveRecord validations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

FFMpeg

A DSL for building and executing ffmpeg commands.

Requirements

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

Install

gem install ffmpeg —source http://gemcutter.org

Usage

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

require “rubygems”
require “ffmpeg”
include FFMpeg

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

If you want the output file to have the same name as the input file it’s enough to just specify the new file extension like this:

require “rubygems”
require “ffmpeg”
include FFMpeg

convert “finding_that_nemo_dude.avi”, :to => :flv do
    …
end

This will produce an output file called finding_that_nemo_dude.flv

For more information checkout the documentation or my blog

Credit where credit’s due

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

Thanks to jamesdaniels for fixing a nasty output path error while using the :to => extension option